salix/modules/ticket/front/request/create/index.html

56 lines
1.8 KiB
HTML
Raw Normal View History

2018-11-21 07:58:34 +00:00
<vn-watcher
vn-id="watcher"
url="TicketRequests"
2018-11-21 07:58:34 +00:00
data="$ctrl.ticketRequest"
insert-mode="true"
form="form">
2018-11-21 07:58:34 +00:00
</vn-watcher>
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-ma-md">
2019-11-10 10:08:44 +00:00
<div class="vn-w-md">
<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>
<vn-autocomplete
label="Buyer"
2019-10-22 11:44:36 +00:00
ng-model="$ctrl.ticketRequest.attenderFk"
url="Clients/activeWorkersWithRole"
show-field="nickname"
where="{role: 'buyer'}"
search-function="{firstName: $search}">
2018-11-21 07:58:34 +00:00
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-input-number
label="Quantity"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.ticketRequest.quantity"
min="1"
rule>
</vn-input-number>
<vn-input-number
label="Price"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.ticketRequest.price"
step="0.01"
min="0"
rule>
</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>