zone add buttons show only for deliveryBoss #1480
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-06-07 09:09:29 +02:00
parent de6283ac1b
commit 372ad15f26
2 changed files with 28 additions and 11 deletions

View File

@ -10,7 +10,8 @@
<vn-horizontal>
<vn-textfield vn-two vn-focus
label="Name"
field="$ctrl.zone.name">
field="$ctrl.zone.name"
vn-acl="deliveryBoss">
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
@ -20,7 +21,8 @@
url="/agency/api/Warehouses"
show-field="name"
value-field="id"
label="Warehouse">
label="Warehouse"
vn-acl="deliveryBoss">
</vn-autocomplete>
<vn-autocomplete
vn-one
@ -28,37 +30,47 @@
url="/agency/api/AgencyModes"
show-field="name"
value-field="id"
label="Agency">
label="Agency"
vn-acl="deliveryBoss">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-input-number vn-two
label="Traveling days"
model="$ctrl.zone.travelingDays"
min="0" step="1">
min="0" step="1"
vn-acl="deliveryBoss">
</vn-input-number>
<vn-input-time vn-two
label="Estimated hour (ETD)"
model="$ctrl.zone.hour">
model="$ctrl.zone.hour"
vn-acl="deliveryBoss">
</vn-input-time>
</vn-horizontal>
<vn-horizontal>
<vn-input-number vn-one
label="Price"
model="$ctrl.zone.price"
min="0" step="0.01">
min="0" step="0.01"
vn-acl="deliveryBoss">
</vn-input-number>
<vn-input-number vn-one
label="Bonus"
model="$ctrl.zone.bonus"
min="0" step="0.01">
min="0" step="0.01"
vn-acl="deliveryBoss">
</vn-input-number>
</vn-horizontal>
<vn-horizontal>
<vn-check field="$ctrl.zone.isVolumetric" label="Volumetric"></vn-check>
<vn-check label="Volumetric"
field="$ctrl.zone.isVolumetric"
vn-acl="deliveryBoss">
</vn-check>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
<vn-submit label="Save"
vn-acl="deliveryBoss">
</vn-submit>
</vn-button-bar>
</form>

View File

@ -44,7 +44,9 @@
<vn-icon-button
ng-click="$ctrl.clone($event, zone)"
vn-tooltip="Clone"
icon="icon-clone">
icon="icon-clone"
vn-acl="deliveryBoss"
vn-acl-action="remove">
</vn-icon-button>
<vn-icon-button
ng-click="$ctrl.preview($event, zone)"
@ -75,5 +77,8 @@
</vn-confirm>
<!-- End clone confirmation -->
<a ui-sref="zone.create" vn-tooltip="New zone" vn-bind="+" fixed-bottom-right>
<vn-float-button icon="add"></vn-float-button>
<vn-float-button icon="add"
vn-acl="deliveryBoss"
vn-acl-action="remove">
</vn-float-button>
</a>