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>
|
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()">
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield vn-two vn-focus
|
|
|
|
label="Name"
|
|
|
|
field="$ctrl.zone.name">
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
field="$ctrl.zone.warehouseFk"
|
|
|
|
url="/agency/api/Warehouses"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Warehouse">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
field="$ctrl.zone.agencyModeFk"
|
|
|
|
url="/agency/api/AgencyModes"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Agency">
|
|
|
|
</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"
|
|
|
|
min="0" step="1">
|
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-04-10 10:04:11 +00:00
|
|
|
model="$ctrl.zone.hour">
|
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"
|
|
|
|
min="0" step="0.01">
|
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"
|
|
|
|
min="0" step="0.01">
|
2019-01-21 10:45:53 +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>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|