2018-08-29 07:45:37 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.claim"
|
|
|
|
form="form"
|
2019-01-29 10:14:01 +00:00
|
|
|
url="/api/Claims/{{$ctrl.$stateParams.id}}/updateClaim"
|
2018-09-19 05:41:07 +00:00
|
|
|
save="post">
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-watcher>
|
2019-04-08 07:01:10 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-08-29 07:45:37 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
disabled="true"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.claim.clientFk"
|
2018-08-29 07:45:37 +00:00
|
|
|
url="/client/api/Clients"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2019-01-11 07:03:36 +00:00
|
|
|
label="Client"
|
|
|
|
order="id">
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-autocomplete>
|
2019-06-04 09:00:05 +00:00
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
disabled="true"
|
|
|
|
label="Created"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.claim.created"
|
2019-10-08 21:57:02 +00:00
|
|
|
options="{enableTime: true}">
|
2019-06-04 09:00:05 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
</vn-horizontal>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-horizontal>
|
2019-01-31 13:14:39 +00:00
|
|
|
<vn-autocomplete
|
2018-08-29 07:45:37 +00:00
|
|
|
vn-one
|
2019-01-31 13:14:39 +00:00
|
|
|
disabled="false"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.claim.workerFk"
|
2019-01-31 13:14:39 +00:00
|
|
|
url="/api/Clients/activeWorkersWithRole"
|
|
|
|
show-field="nickname"
|
|
|
|
search-function="{firstName: $search}"
|
2018-08-29 07:45:37 +00:00
|
|
|
value-field="id"
|
2019-01-31 13:14:39 +00:00
|
|
|
where="{role: 'employee'}"
|
2019-09-02 10:23:49 +00:00
|
|
|
label="Attended by">
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.claim.claimStateFk"
|
2018-08-29 07:45:37 +00:00
|
|
|
url="/claim/api/ClaimStates"
|
|
|
|
show-field="description"
|
|
|
|
value-field="id"
|
2018-08-29 09:43:25 +00:00
|
|
|
label="Claim state"
|
|
|
|
vn-focus>
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-horizontal>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-horizontal>
|
2018-08-29 07:45:37 +00:00
|
|
|
<vn-textarea
|
2019-10-09 22:47:29 +00:00
|
|
|
vn-one
|
2018-08-29 07:45:37 +00:00
|
|
|
label="Observation"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.claim.observation"
|
|
|
|
rule>
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-textarea>
|
2019-10-09 22:47:29 +00:00
|
|
|
</vn-horizontal>
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
2019-09-18 07:41:25 +00:00
|
|
|
<vn-button label="Undo changes" ng-if="$ctrl.$scope.form.$dirty" ng-click="watcher.loadOriginalData()"></vn-button>
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|