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

86 lines
2.6 KiB
HTML
Raw Normal View History

2022-03-09 22:54:23 +00:00
<vn-crud-model
vn-id="model"
url="SupplierAgencyTerms"
link="{supplierFk: $ctrl.$params.id}"
2022-03-10 09:35:35 +00:00
primary-key="agencyFk"
2022-03-17 13:27:55 +00:00
filter="$ctrl.filter"
2022-03-09 22:54:23 +00:00
data="$ctrl.supplierAgencyTerms"
auto-load="true">
</vn-crud-model>
<vn-watcher
vn-id="watcher"
data="$ctrl.supplierAgencyTerms"
form="form">
</vn-watcher>
2022-03-10 09:35:35 +00:00
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-lg">
2022-03-09 22:54:23 +00:00
<vn-card class="vn-pa-lg">
<vn-horizontal ng-repeat="supplierAgencyTerm in $ctrl.supplierAgencyTerms">
2022-03-17 13:27:55 +00:00
<vn-textfield
disabled="true"
2022-03-15 08:36:48 +00:00
vn-id="agency"
2022-03-09 22:54:23 +00:00
label="Agency"
2022-03-17 13:27:55 +00:00
ng-model="supplierAgencyTerm.agency.name"
2022-03-09 22:54:23 +00:00
rule>
2022-03-17 13:27:55 +00:00
</vn-textfield>
2022-03-09 22:54:23 +00:00
<vn-input-number
type="number"
label="Minimum M3"
ng-model="supplierAgencyTerm.minimumM3"
rule>
</vn-input-number>
<vn-input-number
type="number"
label="Package Price"
ng-model="supplierAgencyTerm.packagePrice"
rule>
</vn-input-number>
<vn-input-number
type="number"
label="Km Price"
ng-model="supplierAgencyTerm.kmPrice"
rule>
</vn-input-number>
<vn-input-number
type="number"
label="M3 Price"
ng-model="supplierAgencyTerm.m3Price"
rule>
</vn-input-number>
<vn-input-number
type="number"
label="Route Price"
ng-model="supplierAgencyTerm.routePrice"
rule>
</vn-input-number>
<vn-input-number
type="number"
label="Minimum Km"
ng-model="supplierAgencyTerm.minimumKm"
rule>
</vn-input-number>
<vn-none>
<vn-icon-button
vn-tooltip="Remove row"
icon="delete"
ng-click="model.remove($index)"
tabindex="-1">
</vn-icon-button>
</vn-none>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit
disabled="!watcher.dataChanged()"
label="Save">
</vn-submit>
</vn-button-bar>
2022-03-15 08:36:48 +00:00
</form>
<vn-float-button
vn-bind="+"
fixed-bottom-right
2022-04-28 06:13:43 +00:00
vn-tooltip="Add row"
2022-03-15 08:36:48 +00:00
ui-sref="supplier.card.agencyTerm.create"
icon="add"
label="Add">
</vn-float-button>