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>
|
2023-07-13 10:59:39 +00:00
|
|
|
<vn-worker-autocomplete
|
2019-11-10 10:08:44 +00:00
|
|
|
ng-model="$ctrl.route.workerFk"
|
2023-07-13 10:59:39 +00:00
|
|
|
show-field="nickname">
|
|
|
|
</vn-worker-autocomplete>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-date-picker
|
2023-07-13 10:59:39 +00:00
|
|
|
label="Created"
|
2019-11-10 10:08:44 +00:00
|
|
|
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-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>
|