salix/modules/claim/front/basic-data/index.html

65 lines
2.2 KiB
HTML
Raw Normal View History

2018-08-29 07:45:37 +00:00
<vn-watcher
vn-id="watcher"
data="$ctrl.claim"
form="form"
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>
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
<vn-card class="vn-pa-lg">
2018-08-29 07:45:37 +00:00
<vn-horizontal>
<vn-autocomplete
vn-one
disabled="true"
field="$ctrl.claim.clientFk"
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>
<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 class="vn-py-sm">
<vn-autocomplete
2018-08-29 07:45:37 +00:00
vn-one
disabled="false"
2018-08-29 07:45:37 +00:00
field="$ctrl.claim.workerFk"
url="/api/Clients/activeWorkersWithRole"
show-field="nickname"
search-function="{firstName: $search}"
2018-08-29 07:45:37 +00:00
value-field="id"
where="{role: 'employee'}"
label="Attended by">
2018-08-29 07:45:37 +00:00
</vn-autocomplete>
<vn-autocomplete
vn-one
field="$ctrl.claim.claimStateFk"
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>
<vn-horizontal class="vn-py-sm">
2018-08-29 07:45:37 +00:00
<vn-textarea
vn-three
label="Observation"
2018-08-29 09:43:25 +00:00
field="$ctrl.claim.observation">
2018-08-29 07:45:37 +00:00
</vn-textarea>
</vn-horizontal>
</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>