2019-10-24 22:53:53 +00:00
|
|
|
<mg-ajax path="Routes" options="vnPost"></mg-ajax>
|
2019-03-22 15:47:20 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.route"
|
|
|
|
form="form"
|
|
|
|
save="post">
|
|
|
|
</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
|
|
|
|
vn-one
|
|
|
|
ng-model="$ctrl.route.workerFk"
|
|
|
|
url="Clients/activeWorkersWithRole"
|
|
|
|
show-field="nickname"
|
|
|
|
search-function="{firstName: $search}"
|
|
|
|
value-field="id"
|
|
|
|
where="{role: 'employee'}"
|
|
|
|
label="Worker">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="Created"
|
|
|
|
ng-model="$ctrl.route.created">
|
|
|
|
</vn-date-picker>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
ng-model="$ctrl.route.vehicleFk"
|
|
|
|
url="Vehicles"
|
|
|
|
show-field="numberPlate"
|
|
|
|
value-field="id"
|
|
|
|
label="Vehicle">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
ng-model="$ctrl.route.agencyModeFk"
|
|
|
|
url="AgencyModes"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Agency">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Description"
|
|
|
|
ng-model="$ctrl.route.description"
|
|
|
|
rule>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Create"></vn-submit>
|
|
|
|
<vn-button ui-sref="route.index" label="Cancel"></vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|