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

58 lines
1.7 KiB
HTML
Raw Normal View History

2019-03-22 15:47:20 +00:00
<vn-watcher
vn-id="watcher"
url="Routes"
2019-03-22 15:47:20 +00:00
data="$ctrl.route"
insert-mode="true"
form="form">
2019-03-22 15:47:20 +00:00
</vn-watcher>
2019-11-10 10:08:44 +00:00
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-autocomplete
label="Worker"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.route.workerFk"
url="Workers/activeWithInheritedRole"
2019-11-10 10:08:44 +00:00
show-field="nickname"
search-function="{firstName: $search}"
where="{role: 'employee'}">
2019-11-10 10:08:44 +00:00
</vn-autocomplete>
<vn-date-picker
label="Created"
ng-model="$ctrl.route.created">
</vn-date-picker>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
label="Vehicle"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.route.vehicleFk"
url="Vehicles"
2020-12-18 14:12:52 +00:00
where="{warehouseFk: $ctrl.vnConfig.warehouseFk}"
show-field="numberPlate">
2019-11-10 10:08:44 +00:00
</vn-autocomplete>
<vn-autocomplete
label="Agency"
2019-11-10 10:08:44 +00:00
ng-model="$ctrl.route.agencyModeFk"
url="AgencyModes">
2019-11-10 10:08:44 +00:00
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
label="Description"
ng-model="$ctrl.route.description"
rule>
</vn-textfield>
</vn-horizontal>
</vn-card>
<vn-button-bar>
2020-12-16 09:21:35 +00:00
<vn-submit
disabled="!watcher.dataChanged()"
label="Create">
</vn-submit>
<vn-button
class="cancel"
label="Cancel"
ui-sref="route.index">
</vn-button>
2019-11-10 10:08:44 +00:00
</vn-button-bar>
</form>