From 509de4fa0aca935f6b302e8b2858e8656fd7fb08 Mon Sep 17 00:00:00 2001 From: Jorge Padawan Date: Tue, 12 Jan 2021 10:11:37 +0100 Subject: [PATCH] Fix for good practique code --- modules/account/front/summary/index.html | 13 +++-- modules/claim/front/summary/index.html | 33 +++++------ modules/client/front/summary/index.html | 59 +++++++++---------- modules/item/front/summary/index.html | 70 ++++++++++++----------- modules/route/front/summary/index.html | 10 ++-- modules/supplier/front/summary/index.html | 40 ++++++------- modules/travel/front/summary/index.html | 10 ++-- modules/zone/front/summary/index.html | 3 +- 8 files changed, 122 insertions(+), 116 deletions(-) diff --git a/modules/account/front/summary/index.html b/modules/account/front/summary/index.html index 3f6798db9..41632aef6 100644 --- a/modules/account/front/summary/index.html +++ b/modules/account/front/summary/index.html @@ -1,6 +1,7 @@
- @@ -12,15 +13,15 @@

+ ui-sref="account.card.basicData({id:summary.id})" + target="_self"> Basic Data

- Basic Data + translate + ng-show="!$ctrl.isHr"> + Basic Data

- @@ -56,15 +57,15 @@

+ ui-sref="claim.card.detail({id:$ctrl.claim.id})" + target="_self"> Detail

- Detail + ng-show="!$ctrl.isSalesPerson" + translate> + Detail

@@ -118,15 +119,15 @@

+ ui-sref="claim.card.development({id:$ctrl.claim.id})" + target="_self"> Development

- Development + translate + ng-show="!$ctrl.isClaimManager"> + Development

@@ -160,15 +161,15 @@

+ ui-sref="claim.card.action({id:$ctrl.claim.id})" + target="_self"> Action

- Action + translate + ng-show="!$ctrl.isClaimManager"> + Action

diff --git a/modules/client/front/summary/index.html b/modules/client/front/summary/index.html index a56c3b680..3e8f4f705 100644 --- a/modules/client/front/summary/index.html +++ b/modules/client/front/summary/index.html @@ -14,15 +14,15 @@

+ ui-sref="client.card.basicData({id:$ctrl.client.id})" + target="_self"> Basic data

- Basic data + translate + ng-show="!$ctrl.isEmployee"> + Basic data

@@ -56,15 +56,15 @@

+ ui-sref="client.card.fiscalData({id:$ctrl.client.id})" + target="_self"> Fiscal address

- Fiscal address + translate + ng-show="!$ctrl.isEmployee"> + Fiscal address

@@ -91,15 +91,15 @@

+ ui-sref="client.card.fiscalData({id:$ctrl.client.id})" + target="_self"> Fiscal data

- Fiscal data + translate + ng-show="!$ctrl.isEmployee"> + Fiscal data

+ ui-sref="client.card.billingData({id:$ctrl.client.id})" + target="_self"> Billing data

- Billing data + translate + ng-show="!$ctrl.isEmployee"> + Billing data

@@ -182,15 +182,15 @@

+ ui-sref="client.card.address.index({id:$ctrl.client.id})" + target="_self"> Address

- Address + translate + ng-show="!$ctrl.isEmployee"> + Address

@@ -205,13 +205,14 @@

+ ui-sref="client.card.webAccess({id:$ctrl.client.id})" + target="_self"> Web access

-

Web access +

Web access

diff --git a/modules/item/front/summary/index.html b/modules/item/front/summary/index.html index 79c0d6bfb..59ceaebbe 100644 --- a/modules/item/front/summary/index.html +++ b/modules/item/front/summary/index.html @@ -27,15 +27,15 @@

+ ui-sref="item.card.basicData({id:$ctrl.item.id})" + target="_self"> Basic data

- Basic data + translate + ng-show="!$ctrl.isBuyer"> + Basic data

@@ -66,15 +66,15 @@

+ ui-sref="item.card.basicData({id:$ctrl.item.id})" + target="_self"> Other data

- Other data + translate + ng-show="!$ctrl.isBuyer"> + Other data

@@ -101,15 +101,15 @@

+ ui-sref="item.card.tags({id:$ctrl.item.id})" + target="_self"> Tags

- Tags + translate + ng-show="!$ctrl.isBuyer || !$ctrl.isReplenisher"> + Tags

- + Tax

- Tax + translate + ng-show="!$ctrl.isBuyer || !$ctrl.isAdministrative"> + Tax

+ ui-sref="item.card.niche({id:$ctrl.item.id})" + target="_self"> Niche

- Niche + translate + ng-show="!$ctrl.isBuyer || !$ctrl.isReplenisher"> + Niche

+ ui-sref="item.card.botanical({id:$ctrl.item.id})" + target="_self"> Botanical

- Botanical + translate + ng-show="!$ctrl.isBuyer"> + Botanical

@@ -177,15 +179,15 @@

+ ui-sref="item.card.itemBarcode({id:$ctrl.item.id})" + target="_self"> Barcode

- Barcode + translate + ng-show="!$ctrl.isBuyer || !$ctrl.isReplenisher"> + Barcode

{{barcode.code}} diff --git a/modules/route/front/summary/index.html b/modules/route/front/summary/index.html index 9bd83a14d..b284851a0 100644 --- a/modules/route/front/summary/index.html +++ b/modules/route/front/summary/index.html @@ -63,15 +63,15 @@

+ ui-sref="route.card.tickets({id:$ctrl.route.id})" + target="_self"> Ticket

- Ticket + translate + ng-show="!$ctrl.isDelivery"> + Ticket

diff --git a/modules/supplier/front/summary/index.html b/modules/supplier/front/summary/index.html index 9ac79fd27..b089f25e9 100644 --- a/modules/supplier/front/summary/index.html +++ b/modules/supplier/front/summary/index.html @@ -12,15 +12,15 @@

+ ui-sref="supplier.card.basicData({id:$ctrl.supplier.id})" + target="_self"> Basic data

- Basic data + translate + ng-show="!$ctrl.isAdministrative"> + Basic data

+ ui-sref="supplier.card.billingData({id:$ctrl.supplier.id})" + target="_self"> Billing data

- Billing data + translate + ng-show="!$ctrl.isAdministrative"> + Billing data

+ ui-sref="supplier.card.fiscalData({id:$ctrl.supplier.id})" + target="_self"> Fiscal data

- Fiscal data + translate + ng-show="!$ctrl.isAdministrative"> + Fiscal data

+ ui-sref="supplier.card.fiscalData({id:$ctrl.supplier.id})" + target="_self"> Fiscal address

- Fiscal address + translate + ng-show="!$ctrl.isAdministrative"> + Fiscal address

+ ui-sref="travel.card.thermograph.index({id:$ctrl.travelData.id})" + target="_self"> Thermograph

- Thermograph + translate + ng-show="!$ctrl.isBuyer"> + Thermograph

diff --git a/modules/zone/front/summary/index.html b/modules/zone/front/summary/index.html index d891fd9d1..2633ebbd2 100644 --- a/modules/zone/front/summary/index.html +++ b/modules/zone/front/summary/index.html @@ -37,7 +37,8 @@

- + Warehouse