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>
|
|
|
|
<vn-input-number
|
|
|
|
vn-two
|
|
|
|
min="0"
|
|
|
|
step="1"
|
|
|
|
label="Traveling days"
|
2019-04-09 11:18:55 +00:00
|
|
|
field="$ctrl.zone.travelingDays">
|
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)"
|
|
|
|
field="$ctrl.zone.hour">
|
|
|
|
</vn-input-time>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-number vn-one
|
|
|
|
label="Price"
|
|
|
|
field="$ctrl.zone.price"
|
|
|
|
min="0.00"
|
2019-04-09 11:18:55 +00:00
|
|
|
step="0.10">
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number vn-one
|
|
|
|
label="Bonus"
|
|
|
|
field="$ctrl.zone.bonus"
|
|
|
|
min="0.00"
|
2019-04-09 11:18:55 +00:00
|
|
|
step="0.10">
|
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>
|