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

49 lines
1.6 KiB
HTML

<vn-watcher
vn-id="watcher"
url="TicketRequests"
data="$ctrl.ticketRequest"
insert-mode="true"
form="form">
</vn-watcher>
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-ma-md">
<div class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-textfield
label="Description"
ng-model="$ctrl.ticketRequest.description"
rule
vn-focus>
</vn-textfield>
<vn-autocomplete
label="Buyer"
ng-model="$ctrl.ticketRequest.attenderFk"
url="Clients/activeWorkersWithRole"
show-field="nickname"
where="{role: 'buyer'}"
search-function="{firstName: $search}">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-input-number
label="Quantity"
ng-model="$ctrl.ticketRequest.quantity"
min="1"
rule>
</vn-input-number>
<vn-input-number
label="Price"
ng-model="$ctrl.ticketRequest.price"
step="0.01"
min="0"
rule>
</vn-input-number>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Create"></vn-submit>
<vn-button ui-sref="ticket.card.request.index" label="Cancel"></vn-button>
</vn-button-bar>
</div>
</form>