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

61 lines
1.9 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="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-11-10 10:08:44 +00:00
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
2018-08-29 07:45:37 +00:00
<vn-horizontal>
2019-10-15 14:19:35 +00:00
<vn-textfield
2018-08-29 07:45:37 +00:00
vn-one
2019-01-11 07:03:36 +00:00
label="Client"
2019-10-15 14:19:35 +00:00
ng-model="$ctrl.claim.client.name"
readonly="true">
</vn-textfield>
<vn-textfield
vn-one
label="Created"
2019-11-14 13:40:19 +00:00
field="::$ctrl.claim.created | date:'yyyy-MM-dd HH:mm'"
2019-10-15 14:19:35 +00:00
readonly="true">
</vn-textfield>
</vn-horizontal>
2019-10-09 22:47:29 +00:00
<vn-horizontal>
<vn-autocomplete
2018-08-29 07:45:37 +00:00
vn-one
disabled="false"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.claim.workerFk"
url="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
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.claim.claimStateFk"
url="ClaimStates"
2018-08-29 07:45:37 +00:00
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>