2018-08-29 07:45:37 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.claim"
|
|
|
|
form="form"
|
2018-09-19 05:41:07 +00:00
|
|
|
url="/claim/api/Claims/updateClaim"
|
|
|
|
save="post">
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-watcher>
|
2018-12-14 11:56:21 +00:00
|
|
|
<form name="form" ng-submit="watcher.submit()" compact>
|
2018-08-29 07:45:37 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-title>Basic data</vn-title>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
disabled="true"
|
|
|
|
field="$ctrl.claim.clientFk"
|
|
|
|
url="/client/api/Clients"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Client">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
disabled="true"
|
|
|
|
field="$ctrl.claim.workerFk"
|
|
|
|
url="/client/api/Workers"
|
2018-10-18 07:24:20 +00:00
|
|
|
fields="['firstName', 'name']"
|
2018-08-29 07:45:37 +00:00
|
|
|
value-field="id"
|
|
|
|
label="Worker">
|
|
|
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
2018-11-30 10:43:12 +00:00
|
|
|
disabled="true"
|
2018-08-29 07:45:37 +00:00
|
|
|
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
|
|
|
|
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-check
|
|
|
|
vn-one
|
|
|
|
label="Is paid with mana"
|
2018-09-19 05:41:07 +00:00
|
|
|
field="$ctrl.claim.isChargedToMana"
|
2018-10-02 12:16:37 +00:00
|
|
|
vn-acl="salesAssistant">
|
2018-08-29 07:45:37 +00:00
|
|
|
</vn-check>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal pad-small-v>
|
|
|
|
<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>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|