salix/modules/agency/front/edit/index.html

81 lines
2.3 KiB
HTML
Raw Normal View History

2018-09-25 06:53:57 +00:00
<mg-ajax path="/agency/api/Zones/{{patch.params.id}}" options="vnPatch"></mg-ajax>
2018-09-24 08:43:54 +00:00
<vn-watcher
vn-id="watcher"
data="$ctrl.zone"
form="form"
save="patch">
</vn-watcher>
<form
name="form"
2019-10-11 15:38:04 +00:00
ng-submit="$ctrl.onSubmit()">
<vn-card class="vn-pa-lg">
2018-09-24 08:43:54 +00:00
<vn-horizontal>
<vn-textfield
vn-one
vn-focus
2018-09-24 08:43:54 +00:00
label="Name"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.zone.name"
rule>
2018-09-24 08:43:54 +00:00
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
vn-one
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.zone.warehouseFk"
2018-09-25 06:53:57 +00:00
url="/agency/api/Warehouses"
2018-09-24 08:43:54 +00:00
show-field="name"
value-field="id"
label="Warehouse"
rule>
2018-09-24 08:43:54 +00:00
</vn-autocomplete>
<vn-autocomplete
vn-one
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.zone.agencyModeFk"
url="/agency/api/AgencyModes/isActive"
2018-09-24 08:43:54 +00:00
show-field="name"
value-field="id"
label="Agency"
rule>
2018-09-24 08:43:54 +00:00
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-input-number
vn-one
2018-09-24 08:43:54 +00:00
min="0"
step="1"
label="Traveling days"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.zone.travelingDays"
rule>
2018-09-24 08:43:54 +00:00
</vn-input-number>
<vn-input-time
vn-one
2018-09-24 08:43:54 +00:00
label="Estimated hour (ETD)"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.zone.hour"
rule>
2018-09-24 08:43:54 +00:00
</vn-input-time>
</vn-horizontal>
<vn-horizontal>
<vn-input-number
vn-one
2018-09-24 08:43:54 +00:00
label="Price"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.zone.price"
2018-09-24 08:43:54 +00:00
min="0.00"
step="0.50"
rule>
2018-09-24 08:43:54 +00:00
</vn-input-number>
<vn-input-number
vn-one
2018-09-24 08:43:54 +00:00
label="Bonus"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.zone.bonus"
2018-09-24 08:43:54 +00:00
min="0.00"
step="0.50"
rule>
2018-09-24 08:43:54 +00:00
</vn-input-number>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
<vn-button ui-sref="zone.card.location" label="Cancel"></vn-button>
2018-09-24 08:43:54 +00:00
</vn-button-bar>
</form>