Add tooltip and modified sref for previews

This commit is contained in:
Jorge Padawan 2021-01-11 10:36:20 +01:00
parent 5a30bf5fa4
commit af55e2cc32
11 changed files with 121 additions and 53 deletions

View File

@ -52,6 +52,7 @@ Suppliers: Proveedores
Summary: Vista previa
Basic data: Datos básicos
List: Listado
Go to: Ir a
# Misc

View File

@ -11,8 +11,10 @@
<vn-horizontal class="vn-pa-md">
<vn-one>
<h4>
<a ui-sref="account.card.basicData">
<span translate vn-tooltip="Edit basic data">Basic Data</span>
<a
ui-sref="account.card.basicData({id:summary.id})"
target="_self">
<span translate vn-tooltip="Go to">Basic Data</span>
</a>
</h4>
<vn-label-value

View File

@ -54,7 +54,13 @@
</vn-range>
</vn-one>
<vn-auto>
<h4 translate>Detail</h4>
<h4>
<a
ui-sref="claim.card.detail({id:$ctrl.claim.id})"
target="_self">
<span translate vn-tooltip="Go to">Detail</span>
</a>
</h4>
<vn-data-viewer data="::$ctrl.summary.salesClaimed">
<vn-table>
<vn-thead>
@ -105,7 +111,13 @@
</vn-horizontal>
</vn-auto>
<vn-auto>
<h4 translate>Development</h4>
<h4>
<a
ui-sref="claim.card.development({id:$ctrl.claim.id})"
target="_self">
<span translate vn-tooltip="Go to">Development</span>
</a>
</h4>
<vn-data-viewer data="::$ctrl.summary.developments">
<vn-table>
<vn-thead>
@ -136,7 +148,13 @@
</vn-data-viewer>
</vn-auto>
<vn-auto>
<h4 translate>Action</h4>
<h4>
<a
ui-sref="claim.card.action({id:$ctrl.claim.id})"
target="_self">
<span translate vn-tooltip="Go to">Action</span>
</a>
</h4>
<vn-data-viewer data="::$ctrl.summary.actions">
<vn-table>
<vn-thead>

View File

@ -13,8 +13,10 @@
<vn-horizontal>
<vn-one>
<h4>
<a ui-sref="client.card.basicData">
<span translate vn-tooltip="Edit basic data">Basic data</span>
<a
ui-sref="client.card.basicData({id:$ctrl.client.id})"
target="_self">
<span translate vn-tooltip="Go to">Basic data</span>
</a>
</h4>
<vn-label-value label="Id"
@ -48,8 +50,10 @@
</vn-one>
<vn-one>
<h4>
<a ui-sref="client.card.fiscalData">
<span translate vn-tooltip="Edit address data">Fiscal address</span>
<a
ui-sref="client.card.fiscalData({id:$ctrl.client.id})"
target="_self">
<span translate vn-tooltip="Go to">Fiscal address</span>
</a>
</h4>
<vn-label-value label="Social name"
@ -76,8 +80,10 @@
</vn-one>
<vn-one>
<h4>
<a ui-sref="client.card.fiscalData">
<span translate vn-tooltip="Edit fiscal data">Fiscal data</span>
<a
ui-sref="client.card.fiscalData({id:$ctrl.client.id})"
target="_self">
<span translate vn-tooltip="Go to">Fiscal data</span>
</a>
</h4>
<vn-vertical>
@ -120,8 +126,10 @@
</vn-one>
<vn-one>
<h4>
<a ui-sref="client.card.billingData">
<span translate vn-tooltip="Edit billing data">Billing data</span>
<a
ui-sref="client.card.billingData({id:$ctrl.client.id})"
target="_self">
<span translate vn-tooltip="Go to">Billing data</span>
</a>
</h4>
<vn-label-value label="Pay method"
@ -153,8 +161,10 @@
</vn-one>
<vn-one>
<h4>
<a ui-sref="client.card.address.index">
<span translate vn-tooltip="Edit default address">Address</span>
<a
ui-sref="client.card.address.index({id:$ctrl.client.id})"
target="_self">
<span translate vn-tooltip="Go to">Address</span>
</a>
</h4>
<vn-label-value label="Name"
@ -169,8 +179,10 @@
</vn-one>
<vn-one>
<h4>
<a ui-sref="client.card.webAccess">
<span translate vn-tooltip="Edit web access">Web access</span>
<a
ui-sref="client.card.webAccess({id:$ctrl.client.id})"
target="_self">
<span translate vn-tooltip="Go to">Web access</span>
</a>
</h4>
<vn-label-value label="User"

View File

@ -26,8 +26,10 @@
</vn-one>
<vn-one name="basicData">
<h4>
<a ui-sref="item.card.basicData">
<span translate vn-tooltip="Edit basic data">Basic data</span>
<a
ui-sref="item.card.basicData({id:$ctrl.item.id})"
target="_self">
<span translate vn-tooltip="Go to">Basic data</span>
</a>
</h4>
<vn-label-value label="Name"
@ -58,8 +60,10 @@
</vn-one>
<vn-one name="otherData">
<h4>
<a ui-sref="item.card.basicData">
<span translate vn-tooltip="Edit other data">Other data</span>
<a
ui-sref="item.card.basicData({id:$ctrl.item.id})"
target="_self">
<span translate vn-tooltip="Go to">Other data</span>
</a>
</h4>
<vn-label-value label="Intrastat code"
@ -86,8 +90,10 @@
</vn-one>
<vn-one name="tags">
<h4>
<a ui-sref="item.card.tags">
<span translate vn-tooltip="Edit tags">Tags</span>
<a
ui-sref="item.card.tags({id:$ctrl.item.id})"
target="_self">
<span translate vn-tooltip="Go to">Tags</span>
</a>
</h4>
<vn-label-value
@ -99,7 +105,7 @@
<vn-one name="tax">
<h4>
<a ui-sref="item.card.tax">
<span translate vn-tooltip="Edit tax">Tax</span>
<span translate vn-tooltip="Go to">Tax</span>
</a>
</h4>
<vn-label-value label="{{tax.country.country}}"
@ -109,8 +115,10 @@
</vn-one>
<vn-one name="niche">
<h4>
<a ui-sref="item.card.niche">
<span translate vn-tooltip="Edit niche">Niche</span>
<a
ui-sref="item.card.niche({id:$ctrl.item.id})"
target="_self">
<span translate vn-tooltip="Go to">Niche</span>
</a>
</h4>
<vn-label-value label="{{niche.warehouse.name}}"
@ -120,8 +128,10 @@
</vn-one>
<vn-one name="botanical">
<h4>
<a ui-sref="item.card.botanical">
<span translate vn-tooltip="Edit botanical">Botanical</span>
<a
ui-sref="item.card.botanical({id:$ctrl.item.id})"
target="_self">
<span translate vn-tooltip="Go to">Botanical</span>
</a>
</h4>
<vn-label-value label="Botanical"
@ -136,8 +146,10 @@
</vn-one>
<vn-one name="barcode">
<h4>
<a ui-sref="item.card.itemBarcode">
<span translate vn-tooltip="Edit barcode">Barcode</span>
<a
ui-sref="item.card.itemBarcode({id:$ctrl.item.id})"
target="_self">
<span translate vn-tooltip="Go to">Barcode</span>
</a>
</h4>
<p ng-repeat="barcode in $ctrl.summary.item.itemBarcode track by $index">

View File

@ -62,8 +62,10 @@
</vn-one>
<vn-auto>
<h4>
<a ui-sref="route.card.tickets">
<span translate vn-tooltip="Edit ticket">Ticket</span>
<a
ui-sref="route.card.tickets({id:$ctrl.route.id})"
target="_self">
<span translate vn-tooltip="Go to">Ticket</span>
</a>
</h4>
<vn-table model="model">

View File

@ -11,8 +11,10 @@
<vn-horizontal>
<vn-one>
<h4>
<a ui-sref="supplier.card.basicData">
<span translate vn-tooltip="Edit basic data">Basic data</span>
<a
ui-sref="supplier.card.basicData({id:$ctrl.supplier.id})"
target="_self">
<span translate vn-tooltip="Go to">Basic data</span>
</a>
</h4>
<vn-vertical>
@ -42,8 +44,10 @@
</vn-one>
<vn-one>
<h4>
<a ui-sref="supplier.card.billingData">
<span translate vn-tooltip="Edit billing data">Billing data</span>
<a
ui-sref="supplier.card.billingData({id:$ctrl.supplier.id})"
target="_self">
<span translate vn-tooltip="Go to">Billing data</span>
</a>
</h4>
<vn-label-value
@ -72,8 +76,10 @@
<vn-horizontal>
<vn-one>
<h4>
<a ui-sref="supplier.card.fiscalData">
<span translate vn-tooltip="Edit fiscal data">Fiscal data</span>
<a
ui-sref="supplier.card.fiscalData({id:$ctrl.supplier.id})"
target="_self">
<span translate vn-tooltip="Go to">Fiscal data</span>
</a>
</h4>
<vn-label-value
@ -95,8 +101,10 @@
<vn-horizontal>
<vn-one>
<h4>
<a ui-sref="supplier.card.fiscalData">
<span translate vn-tooltip="Edit fiscal address">Fiscal address</span>
<a
ui-sref="supplier.card.fiscalData({id:$ctrl.supplier.id})"
target="_self">
<span translate vn-tooltip="Go to">Fiscal address</span>
</a>
</h4>
<vn-label-value

View File

@ -104,8 +104,9 @@
</vn-one>
<vn-auto name="sales">
<h4>
<a ui-sref="ticket.card.sale">
<span translate vn-tooltip="Edit sale">Sale</span>
<a ui-sref="ticket.card.sale({id:$ctrl.ticket.id})"
target="_self">
<span translate vn-tooltip="Go to">Sale</span>
</a>
</h4>
<vn-table>
@ -163,8 +164,10 @@
</vn-auto>
<vn-one ng-if="$ctrl.summary.packagings.length != 0">
<h4>
<a ui-sref="ticket.card.package">
<span translate vn-tooltip="Edit packages">Packages</span>
<a
ui-sref="ticket.card.package({id:$ctrl.ticket.id})"
target="_self">
<span translate vn-tooltip="Go to">Packages</span>
</a>
</h4>
<vn-table model="model">
@ -186,8 +189,10 @@
</vn-one>
<vn-one class="services" ng-if="$ctrl.summary.services.length != 0">
<h4>
<a ui-sref="ticket.card.service">
<span translate vn-tooltip="Edit service">Service</span>
<a
ui-sref="ticket.card.service({id:$ctrl.ticket.id})"
target="_self">
<span translate vn-tooltip="Go to">Service</span>
</a>
</h4>
<vn-table model="model">
@ -215,8 +220,10 @@
<vn-horizontal>
<vn-auto ng-if="$ctrl.summary.requests.length != 0">
<h4>
<a ui-sref="ticket.card.request.index">
<span translate vn-tooltip="Edit purchase request">Purchase request</span>
<a
ui-sref="ticket.card.request.index({id:$ctrl.ticket.id})"
target="_self">
<span translate vn-tooltip="Go to">Purchase request</span>
</a>
</h4>
<vn-table model="model">

View File

@ -132,7 +132,13 @@
</vn-table>
</vn-auto>
<vn-auto ng-if="$ctrl.travelThermographs.length != 0">
<h4 translate>Thermographs</h4>
<h4>
<a
ui-sref="travel.card.thermograph.index({id:$ctrl.travelData.id})"
target="_self">
<span translate vn-tooltip="Go to">Thermograph</span>
</a>
</h4>
<vn-table>
<vn-thead>
<vn-tr>

View File

@ -11,8 +11,8 @@
<vn-horizontal class="vn-pa-md">
<vn-one>
<h4>
<a ui-sref="worker.card.basicData">
<span translate vn-tooltip="Edit basic data">Basic data</span>
<a ui-sref="worker.card.basicData({id:$ctrl.worker.id})">
<span translate vn-tooltip="Go to">Basic data</span>
</a>
</h4>
<vn-label-value label="Id"

View File

@ -37,8 +37,8 @@
<vn-horizontal class="vn-pa-md">
<vn-auto>
<h4>
<a ui-sref="zone.card.warehouses">
<span translate vn-tooltip="Edit warehouse">Warehouse</span>
<a ui-sref="zone.card.warehouses({id:$ctrl.zone.id})">
<span translate vn-tooltip="Go to">Warehouse</span>
</a>
</h4>
<vn-table model="model" auto-load="false">