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

78 lines
2.3 KiB
HTML
Raw Permalink 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>
2023-04-06 06:05:37 +00:00
<vn-input-number
2022-03-15 08:36:48 +00:00
type="number"
label="Minimum M3"
ng-model="$ctrl.supplierAgencyTerm.minimumM3"
2022-12-02 10:26:21 +00:00
step="0.01"
2022-03-15 08:36:48 +00:00
rule>
</vn-input-number>
</vn-horizontal>
<vn-horizontal>
2023-04-06 06:05:37 +00:00
<vn-input-number
2022-03-15 08:36:48 +00:00
type="number"
label="Package Price"
ng-model="$ctrl.supplierAgencyTerm.packagePrice"
rule>
</vn-input-number>
2023-04-06 06:05:37 +00:00
<vn-input-number
2022-03-15 08:36:48 +00:00
type="number"
label="Km Price"
ng-model="$ctrl.supplierAgencyTerm.kmPrice"
2023-04-06 06:05:37 +00:00
step="0.01"
2022-03-15 08:36:48 +00:00
rule>
</vn-input-number>
2023-04-06 06:05:37 +00:00
<vn-input-number
2022-03-15 08:36:48 +00:00
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>
2023-04-06 06:05:37 +00:00
<vn-input-number
2022-03-15 08:36:48 +00:00
type="number"
label="Route Price"
ng-model="$ctrl.supplierAgencyTerm.routePrice"
rule>
</vn-input-number>
2023-04-06 06:05:37 +00:00
<vn-input-number
2022-03-15 08:36:48 +00:00
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>
2023-04-06 06:05:37 +00:00
</form>