2018-11-21 07:58:34 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2020-03-09 08:00:03 +00:00
|
|
|
url="TicketRequests"
|
2018-11-21 07:58:34 +00:00
|
|
|
data="$ctrl.ticketRequest"
|
2020-03-09 08:00:03 +00:00
|
|
|
insert-mode="true"
|
|
|
|
form="form">
|
2018-11-21 07:58:34 +00:00
|
|
|
</vn-watcher>
|
2019-10-04 22:16:57 +00:00
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-ma-md">
|
2019-11-10 10:08:44 +00:00
|
|
|
<div class="vn-w-md">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-11-21 07:58:34 +00:00
|
|
|
<vn-horizontal>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-textfield
|
|
|
|
label="Description"
|
|
|
|
ng-model="$ctrl.ticketRequest.description"
|
|
|
|
rule
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
2020-03-09 08:00:03 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
label="Buyer"
|
2019-10-22 11:44:36 +00:00
|
|
|
ng-model="$ctrl.ticketRequest.attenderFk"
|
2022-09-22 06:32:18 +00:00
|
|
|
url="TicketRequests/getItemTypeWorker"
|
2019-01-31 13:14:39 +00:00
|
|
|
show-field="nickname"
|
2020-03-09 08:00:03 +00:00
|
|
|
search-function="{firstName: $search}">
|
2018-11-21 07:58:34 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
2019-03-26 06:29:45 +00:00
|
|
|
label="Quantity"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.ticketRequest.quantity"
|
2020-03-09 08:00:03 +00:00
|
|
|
min="1"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-03-26 06:29:45 +00:00
|
|
|
</vn-input-number>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
2019-06-18 10:09:43 +00:00
|
|
|
label="Price"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.ticketRequest.price"
|
2020-03-09 08:00:03 +00:00
|
|
|
step="0.01"
|
|
|
|
min="0"
|
2019-10-08 21:57:02 +00:00
|
|
|
rule>
|
2019-03-26 06:29:45 +00:00
|
|
|
</vn-input-number>
|
2018-11-21 07:58:34 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2020-12-16 09:21:20 +00:00
|
|
|
<vn-submit
|
|
|
|
disabled="!watcher.dataChanged()"
|
|
|
|
label="Create">
|
|
|
|
</vn-submit>
|
|
|
|
<vn-button
|
|
|
|
class="cancel"
|
|
|
|
label="Cancel"
|
|
|
|
ui-sref="ticket.card.request.index">
|
|
|
|
</vn-button>
|
2018-11-21 07:58:34 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</div>
|
|
|
|
</form>
|