salix/modules/ticket/front/tracking/edit/index.html

46 lines
1.3 KiB
HTML
Raw Normal View History

<mg-ajax path="TicketTrackings/changeState" options="vnPost"></mg-ajax>
2018-03-27 12:26:20 +00:00
<vn-watcher
vn-id="watcher"
2019-01-22 09:04:42 +00:00
data="$ctrl.params"
form="form">
2018-03-27 12:26:20 +00:00
</vn-watcher>
2020-09-17 18:12:52 +00:00
<vn-crud-model
auto-load="true"
url="States"
data="states">
</vn-crud-model>
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">
2018-03-27 12:26:20 +00:00
<vn-horizontal>
2018-04-04 13:02:01 +00:00
<vn-autocomplete
vn-one
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.stateFk"
2020-09-17 18:12:52 +00:00
data="states"
label="State"
vn-focus>
</vn-autocomplete>
2019-01-22 09:04:42 +00:00
<vn-autocomplete
vn-one
url="Workers/activeWithInheritedRole"
2019-01-22 09:04:42 +00:00
ng-if="$ctrl.isPickerDesignedState"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.workerFk"
2019-01-30 14:10:52 +00:00
show-field="nickname"
2019-01-22 09:04:42 +00:00
search-function="{firstName: $search}"
value-field="id"
where="{role: 'employee'}"
label="Worker">
</vn-autocomplete>
2018-03-27 12:26:20 +00:00
</vn-horizontal>
</vn-card>
<vn-button-bar>
2020-12-16 09:21:20 +00:00
<vn-submit
disabled="!watcher.dataChanged()"
label="Save">
</vn-submit>
<vn-button
class="cancel"
label="Cancel"
ui-sref="ticket.card.tracking.index">
</vn-button>
2018-03-27 12:26:20 +00:00
</vn-button-bar>
</form>