46 lines
1.3 KiB
HTML
46 lines
1.3 KiB
HTML
<mg-ajax path="TicketTrackings/changeState" options="vnPost"></mg-ajax>
|
|
<vn-watcher
|
|
vn-id="watcher"
|
|
data="$ctrl.params"
|
|
form="form">
|
|
</vn-watcher>
|
|
<vn-crud-model
|
|
auto-load="true"
|
|
url="States"
|
|
data="states">
|
|
</vn-crud-model>
|
|
<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.stateFk"
|
|
data="states"
|
|
label="State"
|
|
vn-focus>
|
|
</vn-autocomplete>
|
|
<vn-autocomplete
|
|
vn-one
|
|
url="Clients/activeWorkersWithRole"
|
|
ng-if="$ctrl.isPickerDesignedState"
|
|
ng-model="$ctrl.workerFk"
|
|
show-field="nickname"
|
|
search-function="{firstName: $search}"
|
|
value-field="id"
|
|
where="{role: 'employee'}"
|
|
label="Worker">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit
|
|
disabled="!watcher.dataChanged()"
|
|
label="Save">
|
|
</vn-submit>
|
|
<vn-button
|
|
class="cancel"
|
|
label="Cancel"
|
|
ui-sref="ticket.card.tracking.index">
|
|
</vn-button>
|
|
</vn-button-bar>
|
|
</form> |