65 lines
2.1 KiB
HTML
65 lines
2.1 KiB
HTML
<vn-watcher
|
|
vn-id="watcher"
|
|
data="$ctrl.claim"
|
|
form="form"
|
|
url="/api/Claims/{{$ctrl.$stateParams.id}}/updateClaim"
|
|
save="post">
|
|
</vn-watcher>
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
|
<vn-card pad-large>
|
|
<vn-horizontal>
|
|
<vn-autocomplete
|
|
vn-one
|
|
disabled="true"
|
|
field="$ctrl.claim.clientFk"
|
|
url="/client/api/Clients"
|
|
show-field="name"
|
|
value-field="id"
|
|
label="Client"
|
|
order="id">
|
|
</vn-autocomplete>
|
|
<vn-date-picker
|
|
vn-one
|
|
disabled="true"
|
|
label="Created"
|
|
model="$ctrl.claim.created"
|
|
ini-options="{enableTime: true, dateFormat: 'd-m-Y', time_24hr: true}">
|
|
</vn-date-picker>
|
|
</vn-horizontal>
|
|
<vn-horizontal pad-small-v>
|
|
<vn-autocomplete
|
|
vn-one
|
|
disabled="false"
|
|
field="$ctrl.claim.workerFk"
|
|
url="/api/Clients/activeWorkersWithRole"
|
|
show-field="nickname"
|
|
search-function="{firstName: $search}"
|
|
value-field="id"
|
|
where="{role: 'employee'}"
|
|
label="Attended by">
|
|
</vn-autocomplete>
|
|
<vn-autocomplete
|
|
vn-one
|
|
field="$ctrl.claim.claimStateFk"
|
|
url="/claim/api/ClaimStates"
|
|
show-field="description"
|
|
value-field="id"
|
|
label="Claim state"
|
|
vn-focus>
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
</vn-horizontal>
|
|
<vn-horizontal pad-small-v>
|
|
<vn-textarea
|
|
vn-three
|
|
label="Observation"
|
|
field="$ctrl.claim.observation">
|
|
</vn-textarea>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit label="Save"></vn-submit>
|
|
<vn-button label="Undo changes" ng-if="$ctrl.$scope.form.$dirty" ng-click="watcher.loadOriginalData()"></vn-button>
|
|
</vn-button-bar>
|
|
</form>
|