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

70 lines
2.2 KiB
HTML

<vn-watcher
vn-id="watcher"
data="$ctrl.claim"
form="form"
url="/claim/api/Claims/updateClaim"
save="post">
</vn-watcher>
<form name="form" ng-submit="watcher.submit()" compact>
<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"
order="id">
</vn-autocomplete>
<vn-autocomplete
vn-one
disabled="true"
field="$ctrl.claim.workerFk"
url="/client/api/Workers"
fields="['firstName', 'name']"
value-field="id"
label="Worker">
<tpl-item>{{firstName}} {{name}}</tpl-item>
</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
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-acl="salesAssistant">
</vn-check>
</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-bar>
</form>