salix/modules/zone/front/create/index.html

99 lines
2.6 KiB
HTML
Raw Permalink Normal View History

2018-09-19 13:05:07 +00:00
<vn-watcher
vn-id="watcher"
url="Zones"
2018-09-19 13:05:07 +00:00
data="$ctrl.zone"
insert-mode="true"
form="form">
2018-09-19 13:05:07 +00:00
</vn-watcher>
2020-09-17 18:12:52 +00:00
<vn-crud-model
auto-load="true"
url="Warehouses"
data="warehouses"
order="name">
</vn-crud-model>
<vn-crud-model
auto-load="true"
url="AgencyModes/isActive"
data="activeAgencyModes"
order="name">
</vn-crud-model>
2019-11-10 10:08:44 +00:00
<form
name="form"
vn-http-submit="$ctrl.onSubmit()"
class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-textfield
label="Name"
ng-model="$ctrl.zone.name"
rule
vn-focus>
2019-11-10 10:08:44 +00:00
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
label="Warehouse"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.zone.warehouseFk"
2020-09-17 18:12:52 +00:00
data="warehouses"
2019-11-10 10:08:44 +00:00
show-field="name"
value-field="id"
label="Warehouse"
rule>
</vn-autocomplete>
<vn-autocomplete
label="Agency"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.zone.agencyModeFk"
2020-09-17 18:12:52 +00:00
data="activeAgencyModes"
2019-11-10 10:08:44 +00:00
show-field="name"
value-field="id"
label="Agency"
rule>
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-input-number
label="Traveling days"
ng-model="$ctrl.zone.travelingDays"
min="0"
step="1"
rule>
</vn-input-number>
<vn-input-time
label="Closing hour"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.zone.hour"
rule>
</vn-input-time>
</vn-horizontal>
<vn-horizontal>
<vn-input-number
label="Price"
ng-model="$ctrl.zone.price"
min="0"
step="0.01"
rule>
</vn-input-number>
<vn-input-number
label="Bonus"
ng-model="$ctrl.zone.bonus"
min="0"
step="0.01"
rule>
</vn-input-number>
</vn-horizontal>
<vn-horizontal>
<vn-check ng-model="$ctrl.zone.isVolumetric" label="Volumetric"></vn-check>
</vn-horizontal>
</vn-card>
2020-12-16 10:22:13 +00:00
<vn-button-bar>
<vn-submit
disabled="!watcher.dataChanged()"
label="Create">
</vn-submit>
<vn-button
class="cancel"
label="Cancel"
ui-sref="zone.index">
</vn-button>
</vn-button-bar>
2019-11-10 10:08:44 +00:00
</form>