2018-09-25 06:53:57 +00:00
|
|
|
<mg-ajax path="/agency/api/Zones" options="vnPost"></mg-ajax>
|
2018-09-19 13:05:07 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.zone"
|
2018-09-24 12:51:27 +00:00
|
|
|
form="form"
|
|
|
|
save="post">
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-watcher>
|
2019-01-30 22:47:06 +00:00
|
|
|
<div class="content-block">
|
2019-06-20 11:50:58 +00:00
|
|
|
<form name="form" vn-http-submit="$ctrl.onSubmit()" compact>
|
2018-09-19 13:05:07 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield vn-two vn-focus
|
|
|
|
label="Name"
|
|
|
|
field="$ctrl.zone.name">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-04-11 05:29:41 +00:00
|
|
|
<vn-autocomplete vn-one
|
2018-09-19 13:05:07 +00:00
|
|
|
field="$ctrl.zone.warehouseFk"
|
2018-09-25 06:53:57 +00:00
|
|
|
url="/agency/api/Warehouses"
|
2018-09-19 13:05:07 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Warehouse">
|
|
|
|
</vn-autocomplete>
|
2019-04-11 05:29:41 +00:00
|
|
|
<vn-autocomplete vn-one
|
2018-09-19 13:05:07 +00:00
|
|
|
field="$ctrl.zone.agencyModeFk"
|
2019-01-07 15:28:18 +00:00
|
|
|
url="/agency/api/AgencyModes/isActive"
|
2018-09-19 13:05:07 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Agency">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-04-11 05:29:41 +00:00
|
|
|
<vn-input-number vn-two
|
2018-09-19 13:05:07 +00:00
|
|
|
label="Traveling days"
|
2019-04-11 05:29:41 +00:00
|
|
|
model="$ctrl.zone.travelingDays"
|
|
|
|
min="0" step="1">
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-input-number>
|
2019-04-11 05:29:41 +00:00
|
|
|
<vn-input-time vn-two
|
2018-09-19 13:05:07 +00:00
|
|
|
label="Estimated hour (ETD)"
|
2019-04-11 05:29:41 +00:00
|
|
|
model="$ctrl.zone.hour"
|
|
|
|
rule="zone.hour">
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-input-time>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-number vn-one
|
|
|
|
label="Price"
|
2019-04-11 05:29:41 +00:00
|
|
|
model="$ctrl.zone.price"
|
|
|
|
min="0" step="0.01">
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number vn-one
|
|
|
|
label="Bonus"
|
2019-04-11 05:29:41 +00:00
|
|
|
model="$ctrl.zone.bonus"
|
|
|
|
min="0" step="0.01">
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-input-number>
|
|
|
|
</vn-horizontal>
|
2019-03-13 10:27:45 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-check field="$ctrl.zone.isVolumetric" label="Volumetric"></vn-check>
|
|
|
|
</vn-horizontal>
|
2018-09-19 13:05:07 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Create"></vn-submit>
|
|
|
|
<vn-button ui-sref="zone.index" label="Cancel"></vn-button>
|
|
|
|
</vn-button-bar>
|
2019-01-30 22:47:06 +00:00
|
|
|
</form>
|
|
|
|
</div>
|