salix/modules/supplier/front/agency-term/create/index.html

75 lines
2.3 KiB
HTML
Raw Normal View History

2022-03-15 08:36:48 +00:00
<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"
2022-03-17 13:27:55 +00:00
url="Suppliers/freeAgencies"
2022-03-15 13:50:09 +00:00
data="$ctrl.agencies">
2022-03-15 08:36:48 +00:00
</vn-crud-model>
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
2022-03-17 13:27:55 +00:00
<vn-autocomplete vn-one
2022-03-15 08:36:48 +00:00
label="Agency"
ng-model="$ctrl.supplierAgencyTerm.agencyFk"
2022-03-15 13:50:09 +00:00
data="$ctrl.agencies"
2022-03-15 08:36:48 +00:00
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"
2022-12-02 10:24:08 +00:00
step="0.01"
2022-03-15 08:36:48 +00:00
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>