57 lines
1.9 KiB
HTML
57 lines
1.9 KiB
HTML
<vn-watcher
|
|
vn-id="watcher"
|
|
url="Entries"
|
|
data="$ctrl.entry"
|
|
insert-mode="true"
|
|
form="form">
|
|
</vn-watcher>
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
|
<vn-card class="vn-pa-lg">
|
|
<vn-icon color-marginal
|
|
icon="info"
|
|
vn-tooltip="Required fields (*)">
|
|
</vn-icon>
|
|
<vn-horizontal>
|
|
<vn-autocomplete
|
|
label="Supplier"
|
|
ng-model="$ctrl.entry.supplierFk"
|
|
url="Suppliers"
|
|
show-field="nickname"
|
|
search-function="{or: [{id: $search}, {nickname: {like: '%'+ $search +'%'}}]}"
|
|
order="nickname"
|
|
required="true">
|
|
<tpl-item>
|
|
{{::id}} - {{::nickname}}
|
|
</tpl-item>
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-autocomplete
|
|
label="Travel"
|
|
ng-model="$ctrl.entry.travelFk"
|
|
url="Travels/filter"
|
|
search-function="$ctrl.searchFunction($search)"
|
|
order="id"
|
|
required="true">
|
|
<tpl-item>
|
|
{{::agencyModeName}} - {{::warehouseInName}} ({{::shipped | date: 'dd/MM/yyyy'}}) →
|
|
{{::warehouseOutName}} ({{::landed | date: 'dd/MM/yyyy'}})
|
|
</tpl-item>
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-autocomplete
|
|
label="Company"
|
|
ng-model="$ctrl.entry.companyFk"
|
|
url="Companies"
|
|
show-field="code"
|
|
required="true">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit label="Create"></vn-submit>
|
|
<vn-button ui-sref="entry.index" label="Cancel"></vn-button>
|
|
</vn-button-bar>
|
|
</form>
|