#1080 fallos de estilos en order prices-popover

This commit is contained in:
Gerard 2019-01-31 11:26:03 +01:00
parent e74b7e3118
commit aac96f4b87
5 changed files with 55 additions and 12 deletions

View File

@ -34,6 +34,7 @@ Add barcode: Añadir código de barras
Remove barcode: Quitar código de barras
Buyer: Comprador
No results: Sin resultados
Enter a new search: Introduce una nueva búsqueda
Tag: Etiqueta
Worker: Trabajador
Available: Disponible
@ -46,14 +47,16 @@ Density: Densidad
# Sections
Items: Artículos
List: Listado
New item: Nuevo artículo
Summary: Vista previa
Basic data: Datos básicos
Tax: IVA
History: Historial
Niches: Nichos
Botanical: Botánico
Barcodes: Códigos de barras
Diary: Registro
Diary: Histórico
Item diary: Registro de compra-venta
Last entries: Últimas entradas
Tags: Etiquetas

View File

@ -3,12 +3,19 @@ Catalog: Catálogo
from: desde
results: resultados
More than: Más de
No results: Sin resultados
Enter a new search: Introduce una nueva búsqueda
Plant: Planta
Flower: Flor
Handmade: Confección
Green: Verde
Lines: Lineas
Accessories: Complemento
Category: Reino
Search tag: Buscar etiqueta
Order by: Ordenar por
Order: Orden
Price: Precio
Ascendant: Ascendente
Descendant: Descendente
Created from: Creado desde

View File

@ -1,6 +1,6 @@
<vn-popover vn-id="popover" on-close="$ctrl.clear()">
<vn-card class="vn-descriptor">
<vn-horizontal class="header">
<div class="vn-descriptor">
<div class="header">
<a translate-attr="{title: 'Return to module index'}" ui-sref="item.index">
<vn-icon icon="chevron_left"></vn-icon>
</a>
@ -8,7 +8,7 @@
<a translate-attr="{title: 'Preview'}" ui-sref="item.card.summary({id: $ctrl.item.id})">
<vn-icon icon="desktop_windows"></vn-icon>
</a>
</vn-horizontal>
</div>
<div pad-medium>
<vn-horizontal>
<h5>{{$ctrl.item.id}}</h5>
@ -59,12 +59,32 @@
</vn-vertical>
</vn-horizontal>
<vn-horizontal class="buttons-bar">
<vn-one
vn-tooltip="Last entries"
tooltip-position="down">
<vn-button ui-sref="item.card.diary({id: $ctrl.item.id})" icon="icon-transaction">
</vn-button>
</vn-one>
<div class="quicklinks" vn-one>
<a ng-if="$ctrl.quicklinks.btnOne"
vn-tooltip="{{::$ctrl.quicklinks.btnOne.tooltip}}"
ui-sref="{{::$ctrl.quicklinks.btnOne.state}}" target="_blank">
<vn-icon
class="mdl-button mdl-js-button mdl-button--colored"
icon="{{::$ctrl.quicklinks.btnOne.icon}}">
</vn-icon>
</a>
<a ng-if="$ctrl.quicklinks.btnTwo"
vn-tooltip="{{::$ctrl.quicklinks.btnTwo.tooltip}}"
ui-sref="{{::$ctrl.quicklinks.btnTwo.state}}" target="_blank">
<vn-icon
class="mdl-button mdl-js-button mdl-button--colored"
icon="{{::$ctrl.quicklinks.btnTwo.icon}}">
</vn-icon>
</a>
<a ng-if="$ctrl.quicklinks.btnThree"
vn-tooltip="{{::$ctrl.quicklinks.btnThree.tooltip}}"
ui-sref="{{::$ctrl.quicklinks.btnThree.state}}" target="_blank">
<vn-icon
class="mdl-button mdl-js-button mdl-button--colored"
icon="{{::$ctrl.quicklinks.btnThree.icon}}">
</vn-icon>
</a>
</div>
<vn-one>
<vn-submit
label="Save"
@ -73,5 +93,5 @@
</vn-one>
</vn-horizontal>
</div>
</vn-card>
</div>
</vn-popover>

View File

@ -26,6 +26,13 @@ class Controller {
order: 'priority ASC',
include: {relation: 'tag'}
};
this.quicklinks = {
btnOne: {
icon: 'icon-transaction',
state: `item.card.diary({id: ${this.item.id}})`,
tooltip: 'Diary'
}
};
this.$http.get(`/item/api/ItemTags?filter=${JSON.stringify(filter)}`).then(response => {
this.tags = response.data;
});

View File

@ -44,11 +44,17 @@ vn-order-prices-popover {
vn-one.text{
padding-top:10px!important;
}
vn-horizontal.buttons-bar{
padding-top: 16px;
text-align: center;
}
.quicklinks vn-icon {
font-size: 1.8em !important;
padding: 0 !important;
& > i {
line-height: 36px
}
}
vn-one.error{
display: none;
}