2018-07-09 11:54:43 +00:00
|
|
|
<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 }}"
|
2018-10-18 07:24:20 +00:00
|
|
|
fields="['nickname', 'street', 'city']"
|
2018-07-09 11:54:43 +00:00
|
|
|
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"
|
2018-07-17 11:04:24 +00:00
|
|
|
data="$ctrl._availableAgencies"
|
2018-07-09 11:54:43 +00:00
|
|
|
label="Agency"
|
|
|
|
show-field="agency"
|
|
|
|
value-field="id"
|
2018-07-24 11:48:31 +00:00
|
|
|
field="$ctrl.order.agencyModeFk">
|
2018-07-09 11:54:43 +00:00
|
|
|
</vn-autocomplete>
|