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>
|
|
|
|
<div class="content-block">
|
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2019-03-22 15:47:20 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.workerFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Clients/activeWorkersWithRole"
|
2019-03-22 15:47:20 +00:00
|
|
|
show-field="nickname"
|
|
|
|
search-function="{firstName: $search}"
|
|
|
|
value-field="id"
|
|
|
|
where="{role: 'employee'}"
|
|
|
|
label="Worker">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="Created"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.created">
|
2019-03-22 15:47:20 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.vehicleFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Vehicles"
|
2019-03-22 15:47:20 +00:00
|
|
|
show-field="numberPlate"
|
|
|
|
value-field="id"
|
|
|
|
label="Vehicle">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.agencyModeFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="AgencyModes"
|
2019-03-22 15:47:20 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Agency">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Description"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.route.description"
|
|
|
|
rule>
|
2019-03-22 15:47:20 +00:00
|
|
|
</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>
|
|
|
|
</div>
|