74 lines
2.3 KiB
HTML
74 lines
2.3 KiB
HTML
<vn-watcher
|
|
vn-id="watcher"
|
|
url="SupplierAgencyTerms"
|
|
primary-key="agencyFk"
|
|
data="$ctrl.supplierAgencyTerm"
|
|
insert-mode="true"
|
|
form="form">
|
|
</vn-watcher>
|
|
<vn-crud-model
|
|
auto-load="true"
|
|
url="Suppliers/freeAgencies"
|
|
data="$ctrl.agencies">
|
|
</vn-crud-model>
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
|
<vn-card class="vn-pa-lg">
|
|
<vn-horizontal>
|
|
<vn-autocomplete vn-one
|
|
label="Agency"
|
|
ng-model="$ctrl.supplierAgencyTerm.agencyFk"
|
|
data="$ctrl.agencies"
|
|
show-field="name"
|
|
value-field="id"
|
|
rule>
|
|
</vn-autocomplete>
|
|
<vn-input-number
|
|
type="number"
|
|
label="Minimum M3"
|
|
ng-model="$ctrl.supplierAgencyTerm.minimumM3"
|
|
rule>
|
|
</vn-input-number>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-input-number
|
|
type="number"
|
|
label="Package Price"
|
|
ng-model="$ctrl.supplierAgencyTerm.packagePrice"
|
|
rule>
|
|
</vn-input-number>
|
|
<vn-input-number
|
|
type="number"
|
|
label="Km Price"
|
|
ng-model="$ctrl.supplierAgencyTerm.kmPrice"
|
|
rule>
|
|
</vn-input-number>
|
|
<vn-input-number
|
|
type="number"
|
|
label="M3 Price"
|
|
ng-model="$ctrl.supplierAgencyTerm.m3Price"
|
|
rule>
|
|
</vn-input-number>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-input-number
|
|
type="number"
|
|
label="Route Price"
|
|
ng-model="$ctrl.supplierAgencyTerm.routePrice"
|
|
rule>
|
|
</vn-input-number>
|
|
<vn-input-number
|
|
type="number"
|
|
label="Minimum Km"
|
|
ng-model="$ctrl.supplierAgencyTerm.minimumKm"
|
|
rule>
|
|
</vn-input-number>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit label="Save"></vn-submit>
|
|
<vn-button
|
|
label="Cancel"
|
|
ui-sref="supplier.card.agencyTerm.index">
|
|
</vn-button>
|
|
</vn-button-bar>
|
|
</form> |