fixed bugs in recovery
This commit is contained in:
parent
c512faf45c
commit
fe27f0e44f
|
@ -13,14 +13,14 @@
|
|||
vn-one
|
||||
label="Since"
|
||||
model="$ctrl.recovery.started"
|
||||
ini-options="{dateFormat: 'd-m-Y'}"
|
||||
vn-focus>
|
||||
vn-focus
|
||||
ini-options="{enableTime: true}">
|
||||
</vn-date-picker>
|
||||
<vn-date-picker
|
||||
vn-one
|
||||
label="To"
|
||||
model="$ctrl.recovery.finished"
|
||||
ini-options="{dateFormat: 'd-m-Y'}">
|
||||
ini-options="{enableTime: true}">
|
||||
</vn-date-picker>
|
||||
<vn-textfield
|
||||
vn-one
|
||||
|
|
|
@ -5,7 +5,7 @@ class Controller {
|
|||
this.$ = $scope;
|
||||
this.$state = $state;
|
||||
this.recovery = {
|
||||
started: $filter('date')(new Date(), 'yyyy-MM-dd HH:mm')
|
||||
started: new Date()
|
||||
};
|
||||
}
|
||||
onSubmit() {
|
||||
|
|
|
@ -14,14 +14,14 @@
|
|||
vn-one class="list list-element text-center"
|
||||
pad-small-bottom
|
||||
ng-repeat="recovery in index.model.instances track by $index">
|
||||
<vn-none pad-medium-h style="color:#FFA410;">
|
||||
<vn-none pad-medium-h orange>
|
||||
<i class="material-icons pointer"
|
||||
vn-tooltip="Finish that recovery period"
|
||||
ng-if="!recovery.finished"
|
||||
ng-click="$ctrl.setFinished(recovery)">lock</i>
|
||||
</vn-none>
|
||||
<vn-one pad-medium-h>{{::recovery.started | date:'dd/MM/yyyy' }}</vn-one>
|
||||
<vn-one pad-medium-h>{{recovery.finished | date:'dd/MM/yyyy' }}</vn-one>
|
||||
<vn-one pad-medium-h>{{::recovery.finished | date:'dd/MM/yyyy' }}</vn-one>
|
||||
<vn-one pad-medium-h>{{::recovery.amount | currency:'€':0}}</vn-one>
|
||||
<vn-one pad-medium-h>{{::recovery.period}}</vn-one>
|
||||
</vn-horizontal>
|
||||
|
|
Loading…
Reference in New Issue