2019-01-21 10:45:53 +00:00
|
|
|
<mg-ajax path="/agency/api/Zones/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.zone"
|
|
|
|
form="form"
|
|
|
|
save="patch">
|
|
|
|
</vn-watcher>
|
2019-09-02 09:25:31 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
2019-01-21 10:45:53 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield vn-two vn-focus
|
|
|
|
label="Name"
|
2019-06-07 07:09:29 +00:00
|
|
|
field="$ctrl.zone.name"
|
|
|
|
vn-acl="deliveryBoss">
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
field="$ctrl.zone.warehouseFk"
|
|
|
|
url="/agency/api/Warehouses"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2019-06-07 07:09:29 +00:00
|
|
|
label="Warehouse"
|
|
|
|
vn-acl="deliveryBoss">
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
field="$ctrl.zone.agencyModeFk"
|
|
|
|
url="/agency/api/AgencyModes"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2019-06-07 07:09:29 +00:00
|
|
|
label="Agency"
|
|
|
|
vn-acl="deliveryBoss">
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-04-10 10:04:11 +00:00
|
|
|
<vn-input-number vn-two
|
2019-01-21 10:45:53 +00:00
|
|
|
label="Traveling days"
|
2019-04-10 10:04:11 +00:00
|
|
|
model="$ctrl.zone.travelingDays"
|
2019-06-07 07:09:29 +00:00
|
|
|
min="0" step="1"
|
|
|
|
vn-acl="deliveryBoss">
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-input-number>
|
2019-04-11 05:29:41 +00:00
|
|
|
<vn-input-time vn-two
|
2019-01-21 10:45:53 +00:00
|
|
|
label="Estimated hour (ETD)"
|
2019-06-07 07:09:29 +00:00
|
|
|
model="$ctrl.zone.hour"
|
|
|
|
vn-acl="deliveryBoss">
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-input-time>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-number vn-one
|
|
|
|
label="Price"
|
2019-04-10 10:04:11 +00:00
|
|
|
model="$ctrl.zone.price"
|
2019-06-07 07:09:29 +00:00
|
|
|
min="0" step="0.01"
|
|
|
|
vn-acl="deliveryBoss">
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number vn-one
|
|
|
|
label="Bonus"
|
2019-04-10 10:04:11 +00:00
|
|
|
model="$ctrl.zone.bonus"
|
2019-06-07 07:09:29 +00:00
|
|
|
min="0" step="0.01"
|
|
|
|
vn-acl="deliveryBoss">
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-input-number>
|
|
|
|
</vn-horizontal>
|
2019-03-13 10:27:45 +00:00
|
|
|
<vn-horizontal>
|
2019-09-02 09:25:31 +00:00
|
|
|
<vn-input-number vn-one
|
|
|
|
label="Inflation"
|
|
|
|
model="$ctrl.zone.inflation"
|
|
|
|
min="0" step="0.01"
|
|
|
|
vn-acl="deliveryBoss">
|
|
|
|
</vn-input-number>
|
|
|
|
<vn-check label="Volumetric" vn-one
|
2019-06-07 07:09:29 +00:00
|
|
|
field="$ctrl.zone.isVolumetric"
|
|
|
|
vn-acl="deliveryBoss">
|
|
|
|
</vn-check>
|
2019-03-13 10:27:45 +00:00
|
|
|
</vn-horizontal>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2019-06-07 07:09:29 +00:00
|
|
|
<vn-submit label="Save"
|
|
|
|
vn-acl="deliveryBoss">
|
|
|
|
</vn-submit>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|