Fix for good practique code
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a9eb0355d4
commit
509de4fa0a
|
@ -1,6 +1,7 @@
|
|||
<vn-card class="summary">
|
||||
<h5>
|
||||
<a ng-if="::summary.id"
|
||||
<a
|
||||
ng-if="::summary.id"
|
||||
vn-tooltip="Go to the user"
|
||||
ui-sref="account.card.summary({id: {{::summary.id}}})"
|
||||
name="goToSummary">
|
||||
|
@ -12,15 +13,15 @@
|
|||
<vn-one>
|
||||
<h4 ng-show="$ctrl.isHr">
|
||||
<a
|
||||
ui-sref="account.card.basicData({id:summary.id})"
|
||||
target="_self">
|
||||
ui-sref="account.card.basicData({id:summary.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Basic Data</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isHr">
|
||||
Basic Data
|
||||
translate
|
||||
ng-show="!$ctrl.isHr">
|
||||
Basic Data
|
||||
</h4>
|
||||
<vn-label-value
|
||||
label="Id"
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
</vn-crud-model>
|
||||
<vn-card class="summary">
|
||||
<h5>
|
||||
<a ng-if="::$ctrl.summary.claim.id"
|
||||
<a
|
||||
ng-if="::$ctrl.summary.claim.id"
|
||||
vn-tooltip="Go to the claim"
|
||||
ui-sref="claim.card.summary({id: {{::$ctrl.summary.claim.id}}})"
|
||||
name="goToSummary">
|
||||
|
@ -56,15 +57,15 @@
|
|||
<vn-auto>
|
||||
<h4 ng-show="$ctrl.isSalesPerson">
|
||||
<a
|
||||
ui-sref="claim.card.detail({id:$ctrl.claim.id})"
|
||||
target="_self">
|
||||
ui-sref="claim.card.detail({id:$ctrl.claim.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Detail</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
ng-show="!$ctrl.isSalesPerson"
|
||||
translate>
|
||||
Detail
|
||||
ng-show="!$ctrl.isSalesPerson"
|
||||
translate>
|
||||
Detail
|
||||
</h4>
|
||||
<vn-data-viewer data="::$ctrl.summary.salesClaimed">
|
||||
<vn-table>
|
||||
|
@ -118,15 +119,15 @@
|
|||
<vn-auto>
|
||||
<h4 ng-show="$ctrl.isClaimManager">
|
||||
<a
|
||||
ui-sref="claim.card.development({id:$ctrl.claim.id})"
|
||||
target="_self">
|
||||
ui-sref="claim.card.development({id:$ctrl.claim.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Development</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isClaimManager">
|
||||
Development
|
||||
translate
|
||||
ng-show="!$ctrl.isClaimManager">
|
||||
Development
|
||||
</h4>
|
||||
<vn-data-viewer data="::$ctrl.summary.developments">
|
||||
<vn-table>
|
||||
|
@ -160,15 +161,15 @@
|
|||
<vn-auto>
|
||||
<h4 ng-show="$ctrl.isClaimManager">
|
||||
<a
|
||||
ui-sref="claim.card.action({id:$ctrl.claim.id})"
|
||||
target="_self">
|
||||
ui-sref="claim.card.action({id:$ctrl.claim.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Action</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isClaimManager">
|
||||
Action
|
||||
translate
|
||||
ng-show="!$ctrl.isClaimManager">
|
||||
Action
|
||||
</h4>
|
||||
<vn-data-viewer data="::$ctrl.summary.actions">
|
||||
<vn-table>
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
<vn-one>
|
||||
<h4 ng-show="$ctrl.isEmployee">
|
||||
<a
|
||||
ui-sref="client.card.basicData({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
ui-sref="client.card.basicData({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Basic data</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isEmployee">
|
||||
Basic data
|
||||
translate
|
||||
ng-show="!$ctrl.isEmployee">
|
||||
Basic data
|
||||
</h4>
|
||||
<vn-label-value label="Id"
|
||||
value="{{$ctrl.summary.id}}">
|
||||
|
@ -56,15 +56,15 @@
|
|||
<vn-one>
|
||||
<h4 ng-show="$ctrl.isEmployee">
|
||||
<a
|
||||
ui-sref="client.card.fiscalData({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
ui-sref="client.card.fiscalData({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Fiscal address</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isEmployee">
|
||||
Fiscal address
|
||||
translate
|
||||
ng-show="!$ctrl.isEmployee">
|
||||
Fiscal address
|
||||
</h4>
|
||||
<vn-label-value label="Social name"
|
||||
value="{{$ctrl.summary.socialName}}">
|
||||
|
@ -91,15 +91,15 @@
|
|||
<vn-one>
|
||||
<h4 ng-show="$ctrl.isEmployee">
|
||||
<a
|
||||
ui-sref="client.card.fiscalData({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
ui-sref="client.card.fiscalData({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Fiscal data</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isEmployee">
|
||||
Fiscal data
|
||||
translate
|
||||
ng-show="!$ctrl.isEmployee">
|
||||
Fiscal data
|
||||
</h4>
|
||||
<vn-vertical>
|
||||
<vn-check
|
||||
|
@ -142,15 +142,15 @@
|
|||
<vn-one>
|
||||
<h4 ng-show="$ctrl.isEmployee">
|
||||
<a
|
||||
ui-sref="client.card.billingData({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
ui-sref="client.card.billingData({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Billing data</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isEmployee">
|
||||
Billing data
|
||||
translate
|
||||
ng-show="!$ctrl.isEmployee">
|
||||
Billing data
|
||||
</h4>
|
||||
<vn-label-value label="Pay method"
|
||||
value="{{$ctrl.summary.payMethod.name}}">
|
||||
|
@ -182,15 +182,15 @@
|
|||
<vn-one>
|
||||
<h4 ng-show="$ctrl.isEmployee">
|
||||
<a
|
||||
ui-sref="client.card.address.index({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
ui-sref="client.card.address.index({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Address</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isEmployee">
|
||||
Address
|
||||
translate
|
||||
ng-show="!$ctrl.isEmployee">
|
||||
Address
|
||||
</h4>
|
||||
<vn-label-value label="Name"
|
||||
value="{{$ctrl.summary.defaultAddress.nickname}}">
|
||||
|
@ -205,13 +205,14 @@
|
|||
<vn-one>
|
||||
<h4 ng-show="$ctrl.isEmployee">
|
||||
<a
|
||||
ui-sref="client.card.webAccess({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
ui-sref="client.card.webAccess({id:$ctrl.client.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Web access</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4 translate
|
||||
ng-show="!$ctrl.isEmployee">Web access
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isEmployee">Web access
|
||||
</h4>
|
||||
<vn-label-value label="User"
|
||||
value="{{$ctrl.summary.account.name}}">
|
||||
|
|
|
@ -27,15 +27,15 @@
|
|||
<vn-one name="basicData">
|
||||
<h4 ng-show="$ctrl.isBuyer">
|
||||
<a
|
||||
ui-sref="item.card.basicData({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
ui-sref="item.card.basicData({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Basic data</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer">
|
||||
Basic data
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer">
|
||||
Basic data
|
||||
</h4>
|
||||
<vn-label-value label="Name"
|
||||
value="{{$ctrl.summary.item.name}}">
|
||||
|
@ -66,15 +66,15 @@
|
|||
<vn-one name="otherData">
|
||||
<h4 ng-show="$ctrl.isBuyer">
|
||||
<a
|
||||
ui-sref="item.card.basicData({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
ui-sref="item.card.basicData({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Other data</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer">
|
||||
Other data
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer">
|
||||
Other data
|
||||
</h4>
|
||||
<vn-label-value label="Intrastat code"
|
||||
value="{{$ctrl.summary.item.intrastat.id}}">
|
||||
|
@ -101,15 +101,15 @@
|
|||
<vn-one name="tags">
|
||||
<h4 ng-show="$ctrl.isBuyer || $ctrl.isReplenisher">
|
||||
<a
|
||||
ui-sref="item.card.tags({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
ui-sref="item.card.tags({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Tags</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer || !$ctrl.isReplenisher">
|
||||
Tags
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer || !$ctrl.isReplenisher">
|
||||
Tags
|
||||
</h4>
|
||||
<vn-label-value
|
||||
label="{{tag.priority}} {{tag.tag.name}}"
|
||||
|
@ -119,14 +119,16 @@
|
|||
</vn-one>
|
||||
<vn-one name="tax">
|
||||
<h4 ng-show="$ctrl.isBuyer || $ctrl.isAdministrative">
|
||||
<a ui-sref="item.card.tax({id:$ctrl.item.id})">
|
||||
<a
|
||||
ui-sref="item.card.tax({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Tax</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer || !$ctrl.isAdministrative">
|
||||
Tax
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer || !$ctrl.isAdministrative">
|
||||
Tax
|
||||
</h4>
|
||||
<vn-label-value label="{{tax.country.country}}"
|
||||
ng-repeat="tax in $ctrl.summary.item.taxes"
|
||||
|
@ -136,15 +138,15 @@
|
|||
<vn-one name="niche">
|
||||
<h4 ng-show="$ctrl.isBuyer || $ctrl.isReplenisher">
|
||||
<a
|
||||
ui-sref="item.card.niche({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
ui-sref="item.card.niche({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Niche</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer || !$ctrl.isReplenisher">
|
||||
Niche
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer || !$ctrl.isReplenisher">
|
||||
Niche
|
||||
</h4>
|
||||
<vn-label-value label="{{niche.warehouse.name}}"
|
||||
ng-repeat="niche in $ctrl.summary.niches"
|
||||
|
@ -154,15 +156,15 @@
|
|||
<vn-one name="botanical">
|
||||
<h4 ng-show="$ctrl.isBuyer">
|
||||
<a
|
||||
ui-sref="item.card.botanical({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
ui-sref="item.card.botanical({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Botanical</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer">
|
||||
Botanical
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer">
|
||||
Botanical
|
||||
</h4>
|
||||
<vn-label-value label="Botanical"
|
||||
value="{{$ctrl.summary.botanical.botanical}}">
|
||||
|
@ -177,15 +179,15 @@
|
|||
<vn-one name="barcode">
|
||||
<h4 ng-show="$ctrl.isBuyer || $ctrl.isReplenisher">
|
||||
<a
|
||||
ui-sref="item.card.itemBarcode({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
ui-sref="item.card.itemBarcode({id:$ctrl.item.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Barcode</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer || !$ctrl.isReplenisher">
|
||||
Barcode
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer || !$ctrl.isReplenisher">
|
||||
Barcode
|
||||
</h4>
|
||||
<p ng-repeat="barcode in $ctrl.summary.item.itemBarcode track by $index">
|
||||
<b>{{barcode.code}}</b>
|
||||
|
|
|
@ -63,15 +63,15 @@
|
|||
<vn-auto>
|
||||
<h4 ng-show="$ctrl.isDelivery">
|
||||
<a
|
||||
ui-sref="route.card.tickets({id:$ctrl.route.id})"
|
||||
target="_self">
|
||||
ui-sref="route.card.tickets({id:$ctrl.route.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Ticket</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isDelivery">
|
||||
Ticket
|
||||
translate
|
||||
ng-show="!$ctrl.isDelivery">
|
||||
Ticket
|
||||
</h4>
|
||||
<vn-table model="model">
|
||||
<vn-thead>
|
||||
|
|
|
@ -12,15 +12,15 @@
|
|||
<vn-one>
|
||||
<h4 ng-show="$ctrl.isAdministrative">
|
||||
<a
|
||||
ui-sref="supplier.card.basicData({id:$ctrl.supplier.id})"
|
||||
target="_self">
|
||||
ui-sref="supplier.card.basicData({id:$ctrl.supplier.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Basic data</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isAdministrative">
|
||||
Basic data
|
||||
translate
|
||||
ng-show="!$ctrl.isAdministrative">
|
||||
Basic data
|
||||
</h4>
|
||||
<vn-vertical>
|
||||
<vn-label-value
|
||||
|
@ -50,15 +50,15 @@
|
|||
<vn-one>
|
||||
<h4 ng-show="$ctrl.isAdministrative">
|
||||
<a
|
||||
ui-sref="supplier.card.billingData({id:$ctrl.supplier.id})"
|
||||
target="_self">
|
||||
ui-sref="supplier.card.billingData({id:$ctrl.supplier.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Billing data</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isAdministrative">
|
||||
Billing data
|
||||
translate
|
||||
ng-show="!$ctrl.isAdministrative">
|
||||
Billing data
|
||||
</h4>
|
||||
<vn-label-value
|
||||
label="Pay method"
|
||||
|
@ -87,15 +87,15 @@
|
|||
<vn-one>
|
||||
<h4 ng-show="$ctrl.isAdministrative">
|
||||
<a
|
||||
ui-sref="supplier.card.fiscalData({id:$ctrl.supplier.id})"
|
||||
target="_self">
|
||||
ui-sref="supplier.card.fiscalData({id:$ctrl.supplier.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Fiscal data</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isAdministrative">
|
||||
Fiscal data
|
||||
translate
|
||||
ng-show="!$ctrl.isAdministrative">
|
||||
Fiscal data
|
||||
</h4>
|
||||
<vn-label-value
|
||||
label="Sage tax type"
|
||||
|
@ -117,15 +117,15 @@
|
|||
<vn-one>
|
||||
<h4 ng-show="$ctrl.isAdministrative">
|
||||
<a
|
||||
ui-sref="supplier.card.fiscalData({id:$ctrl.supplier.id})"
|
||||
target="_self">
|
||||
ui-sref="supplier.card.fiscalData({id:$ctrl.supplier.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Fiscal address</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isAdministrative">
|
||||
Fiscal address
|
||||
translate
|
||||
ng-show="!$ctrl.isAdministrative">
|
||||
Fiscal address
|
||||
</h4>
|
||||
<vn-label-value
|
||||
label="Social name"
|
||||
|
|
|
@ -134,15 +134,15 @@
|
|||
<vn-auto ng-if="$ctrl.travelThermographs.length != 0">
|
||||
<h4 ng-show="$ctrl.isBuyer">
|
||||
<a
|
||||
ui-sref="travel.card.thermograph.index({id:$ctrl.travelData.id})"
|
||||
target="_self">
|
||||
ui-sref="travel.card.thermograph.index({id:$ctrl.travelData.id})"
|
||||
target="_self">
|
||||
<span translate vn-tooltip="Go to">Thermograph</span>
|
||||
</a>
|
||||
</h4>
|
||||
<h4
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer">
|
||||
Thermograph
|
||||
translate
|
||||
ng-show="!$ctrl.isBuyer">
|
||||
Thermograph
|
||||
</h4>
|
||||
<vn-table>
|
||||
<vn-thead>
|
||||
|
|
|
@ -37,7 +37,8 @@
|
|||
<vn-horizontal class="vn-pa-md">
|
||||
<vn-auto>
|
||||
<h4>
|
||||
<a ui-sref="zone.card.warehouses({id:$ctrl.zone.id})">
|
||||
<a
|
||||
ui-sref="zone.card.warehouses({id:$ctrl.zone.id})">
|
||||
<span translate vn-tooltip="Go to">Warehouse</span>
|
||||
</a>
|
||||
</h4>
|
||||
|
|
Loading…
Reference in New Issue