67 lines
2.4 KiB
HTML
67 lines
2.4 KiB
HTML
<form name="form">
|
|
<vn-card pad-large>
|
|
<vn-title>Basic data</vn-title>
|
|
<vn-horizontal>
|
|
<vn-autocomplete vn-one
|
|
vn-id="client"
|
|
url="/api/Clients"
|
|
label="Client"
|
|
show-field="name"
|
|
value-field="id"
|
|
field="$ctrl.clientFk"
|
|
initial-data="$ctrl.clientFk">
|
|
</vn-autocomplete>
|
|
<vn-autocomplete vn-one
|
|
data="$ctrl.addresses"
|
|
label="Address"
|
|
show-field="nickname"
|
|
value-field="id"
|
|
field="$ctrl.ticket.addressFk">
|
|
<tpl-item>{{::nickname}}
|
|
<span ng-show="city || province">- {{::city}} ({{::province.name}})</span>
|
|
</tpl-item>
|
|
</vn-autocomplete>
|
|
<vn-autocomplete vn-one
|
|
url="/api/AgencyModes/isActive"
|
|
label="Agency"
|
|
show-field="name"
|
|
value-field="id"
|
|
field="$ctrl.ticket.agencyModeFk"
|
|
initial-data="$ctrl.ticket.agencyModeFk">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-date-picker vn-one
|
|
label="Shipped"
|
|
model="$ctrl.shipped"
|
|
ini-options="{enableTime: true, dateFormat: 'd-m-Y h:i'}">
|
|
</vn-date-picker>
|
|
<vn-date-picker vn-one
|
|
label="Landed"
|
|
model="$ctrl.landed">
|
|
</vn-date-picker>
|
|
<vn-autocomplete vn-one
|
|
url="/api/Companies"
|
|
label="Company"
|
|
show-field="code"
|
|
value-field="id"
|
|
field="$ctrl.ticket.companyFk"
|
|
initial-data="$ctrl.ticket.companyFk">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-autocomplete vn-one
|
|
url="/api/Warehouses"
|
|
label="Warehouse"
|
|
show-field="name"
|
|
value-field="id"
|
|
field="$ctrl.ticket.warehouseFk"
|
|
initial-data="$ctrl.ticket.warehouseFk">
|
|
</vn-autocomplete>
|
|
<vn-one>
|
|
<vn-check label="Deleted" field="$ctrl.ticket.isDeleted"></vn-check>
|
|
</vn-one>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
</form>
|