76 lines
2.4 KiB
HTML
76 lines
2.4 KiB
HTML
|
<vn-watcher
|
||
|
vn-id="watcher"
|
||
|
data="$ctrl.claim"
|
||
|
id-field="id"
|
||
|
form="form"
|
||
|
url="/claim/api/Claims"
|
||
|
save="patch">
|
||
|
</vn-watcher>
|
||
|
<form name="form" ng-submit="watcher.submit()">
|
||
|
<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"
|
||
|
select-fields="['firstName', 'name']"
|
||
|
value-field="id"
|
||
|
label="Worker">
|
||
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
||
|
</vn-autocomplete>
|
||
|
<vn-date-picker
|
||
|
vn-one
|
||
|
enabled="false"
|
||
|
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"
|
||
|
label="Claim state" vn-focus>
|
||
|
</vn-autocomplete>
|
||
|
<vn-check
|
||
|
vn-one
|
||
|
label="Is paid with mana"
|
||
|
field="$ctrl.claim.isChargedToMana">
|
||
|
</vn-check>
|
||
|
<vn-input-range
|
||
|
vn-one
|
||
|
label="Responsability"
|
||
|
value="$ctrl.claim.responsibility"
|
||
|
max="4"
|
||
|
min="0"
|
||
|
step="1">
|
||
|
</vn-input-range>
|
||
|
</vn-horizontal>
|
||
|
</vn-horizontal>
|
||
|
<vn-horizontal pad-small-v>
|
||
|
<vn-textarea
|
||
|
vn-three
|
||
|
label="Observation"
|
||
|
field="$ctrl.claim.observation" vn-focus>
|
||
|
</vn-textarea>
|
||
|
</vn-horizontal>
|
||
|
</vn-card>
|
||
|
<vn-button-bar>
|
||
|
<vn-submit label="Save"></vn-submit>
|
||
|
</vn-button-bar>
|
||
|
</form>
|