2019-03-22 15:47:20 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2020-03-09 08:00:03 +00:00
|
|
|
url="Routes"
|
2019-03-22 15:47:20 +00:00
|
|
|
data="$ctrl.route"
|
2020-03-09 08:00:03 +00:00
|
|
|
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>
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
label="Worker"
|
2019-11-10 10:08:44 +00:00
|
|
|
ng-model="$ctrl.route.workerFk"
|
|
|
|
url="Clients/activeWorkersWithRole"
|
|
|
|
show-field="nickname"
|
|
|
|
search-function="{firstName: $search}"
|
2020-03-09 08:00:03 +00:00
|
|
|
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>
|
2020-03-09 08:00:03 +00:00
|
|
|
<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}"
|
2020-03-09 08:00:03 +00:00
|
|
|
show-field="numberPlate">
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
2020-03-09 08:00:03 +00:00
|
|
|
label="Agency"
|
2019-11-10 10:08:44 +00:00
|
|
|
ng-model="$ctrl.route.agencyModeFk"
|
2020-03-09 08:00:03 +00:00
|
|
|
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>
|