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

View File

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