35 lines
950 B
HTML
35 lines
950 B
HTML
|
<vn-title>New order</vn-title>
|
||
|
<vn-autocomplete
|
||
|
vn-focus
|
||
|
vn-id="client"
|
||
|
url="/api/Clients"
|
||
|
label="Client"
|
||
|
show-field="name"
|
||
|
value-field="id"
|
||
|
field="$ctrl.clientFk">
|
||
|
<tpl-item>{{id}}: {{name}}</tpl-item>
|
||
|
</vn-autocomplete>
|
||
|
<vn-autocomplete
|
||
|
disabled="!$ctrl.clientFk"
|
||
|
url="{{ $ctrl.clientFk ? '/api/Clients/'+ $ctrl.clientFk +'/addresses' : null }}"
|
||
|
select-fields=["nickname","street","city"]
|
||
|
field="$ctrl.addressFk"
|
||
|
show-field="nickname"
|
||
|
value-field="id"
|
||
|
label="Address">
|
||
|
<tpl-item>{{nickname}}: {{street}}, {{city}}</tpl-item>
|
||
|
</vn-autocomplete>
|
||
|
<vn-date-picker
|
||
|
label="Landed"
|
||
|
model="$ctrl.landed"
|
||
|
ini-options="{enableTime: false}">
|
||
|
</vn-date-picker>
|
||
|
<vn-autocomplete
|
||
|
disabled="!$ctrl.clientFk || !$ctrl.landed"
|
||
|
data="$ctrl._avaibleAgencies"
|
||
|
label="Agency"
|
||
|
show-field="agency"
|
||
|
value-field="id"
|
||
|
field="$ctrl.ticket.agencyModeFk">
|
||
|
</vn-autocomplete>
|