Change page title #426

This commit is contained in:
Joan Sanchez 2018-07-25 15:14:03 +02:00
parent a2de55fae5
commit 2433d7684d
43 changed files with 230 additions and 134 deletions

View File

@ -9,17 +9,20 @@
"state": "client",
"abstract": true,
"component": "ui-view",
"description": "Clients",
"acl": ["employee"]
},
{
"url": "/index?q",
"state": "client.index",
"component": "vn-client-index"
"component": "vn-client-index",
"description": "List"
},
{
"url": "/create",
"state": "client.create",
"component": "vn-client-create"
"component": "vn-client-create",
"description": "New client"
},
{
"url": "/:id",
@ -31,6 +34,7 @@
"url": "/summary",
"state": "client.card.summary",
"component": "vn-client-summary",
"description": "Summary",
"params": {
"client": "$ctrl.client"
}
@ -39,11 +43,11 @@
"url": "/basic-data",
"state": "client.card.basicData",
"component": "vn-client-basic-data",
"description": "Basic data",
"params": {
"client": "$ctrl.client"
},
"menu": {
"description": "Basic data",
"icon": "settings"
}
},
@ -51,11 +55,11 @@
"url": "/fiscal-data",
"state": "client.card.fiscalData",
"component": "vn-client-fiscal-data",
"description": "Fiscal data",
"params": {
"client": "$ctrl.client"
},
"menu": {
"description": "Fiscal data",
"icon": "account_balance"
}
},
@ -63,11 +67,11 @@
"url": "/billing-data",
"state": "client.card.billingData",
"component": "vn-client-billing-data",
"description": "Pay method",
"params": {
"client": "$ctrl.client"
},
"menu": {
"description": "Pay method",
"icon": "icon-payment"
}
},
@ -81,33 +85,35 @@
"url": "/index",
"state": "client.card.address.index",
"component": "vn-client-address-index",
"description": "Addresses",
"params": {
"client": "$ctrl.client"
},
"menu": {
"description": "Addresses",
"icon": "local_shipping"
}
},
{
"url": "/create",
"state": "client.card.address.create",
"component": "vn-client-address-create"
"component": "vn-client-address-create",
"description": "New address"
},
{
"url": "/:addressId/edit",
"state": "client.card.address.edit",
"component": "vn-client-address-edit"
"component": "vn-client-address-edit",
"description": "Edit address"
},
{
"url": "/web-access",
"state": "client.card.webAccess",
"component": "vn-client-web-access",
"description": "Web access",
"params": {
"client": "$ctrl.client"
},
"menu": {
"description": "Web access",
"icon": "cloud"
}
},
@ -121,18 +127,19 @@
"url": "/index",
"state": "client.card.note.index",
"component": "vn-client-note",
"description": "Notes",
"params": {
"client": "$ctrl.client"
},
"menu": {
"description": "Notes",
"icon": "insert_drive_file"
}
},
{
"url": "/create",
"state": "client.card.note.create",
"component": "vn-note-create"
"component": "vn-note-create",
"description": "New note"
},
{
"url": "/credit",
@ -144,11 +151,11 @@
"url": "/index",
"state": "client.card.credit.index",
"component": "vn-client-credit-index",
"description": "Credits",
"params": {
"client": "$ctrl.client"
},
"menu": {
"description": "Credit",
"icon": "credit_card"
}
},
@ -156,6 +163,7 @@
"url": "/create",
"state": "client.card.credit.create",
"component": "vn-client-credit-create",
"description": "New credit",
"params": {
"client": "$ctrl.client"
}
@ -170,11 +178,11 @@
"url": "/index",
"state": "client.card.greuge.index",
"component": "vn-client-greuge-index",
"description": "Greuges",
"params": {
"client": "$ctrl.client"
},
"menu": {
"description": "Greuge",
"icon": "work"
}
},
@ -182,6 +190,7 @@
"url": "/create",
"state": "client.card.greuge.create",
"component": "vn-client-greuge-create",
"description": "New greuge",
"params": {
"client": "$ctrl.client"
}
@ -190,8 +199,8 @@
"url": "/mandate",
"state": "client.card.mandate",
"component": "vn-client-mandate",
"description": "Mandates",
"menu": {
"description": "Mandate",
"icon": "pan_tool"
}
},
@ -199,8 +208,8 @@
"url": "/invoice",
"state": "client.card.invoice",
"component": "vn-client-invoice",
"description": "Invoices",
"menu": {
"description": "Invoices",
"icon": "icon-invoices"
}
},
@ -214,11 +223,11 @@
"url": "/index",
"state": "client.card.recovery.index",
"component": "vn-client-recovery-index",
"description": "Recoveries",
"params": {
"client": "$ctrl.client"
},
"menu": {
"description": "Recovery",
"icon": "icon-recovery"
}
},
@ -226,6 +235,7 @@
"url": "/create",
"state": "client.card.recovery.create",
"component": "vn-client-recovery-create",
"description": "New recovery",
"params": {
"client": "$ctrl.client"
}
@ -241,11 +251,11 @@
"url": "/index",
"state": "client.card.creditInsurance.index",
"component": "vn-client-credit-insurance-index",
"description": "Credit contracts",
"params": {
"client": "$ctrl.client"
},
"menu": {
"description": "Credit contracts",
"icon": "icon-solunion"
},
"acl": ["creditInsurance"]
@ -254,6 +264,7 @@
"url": "/create",
"state": "client.card.creditInsurance.create",
"component": "vn-client-credit-insurance-create",
"description": "New insurance",
"params": {
"client": "$ctrl.client"
}
@ -269,6 +280,7 @@
"url": "/:classificationId/index",
"state": "client.card.creditInsurance.insurance.index",
"component": "vn-client-credit-insurance-insurance-index",
"description": "Requested credits",
"params": {
"client": "$ctrl.client"
}
@ -277,6 +289,7 @@
"url": "/:classificationId/create",
"state": "client.card.creditInsurance.insurance.create",
"component": "vn-client-credit-insurance-insurance-create",
"description": "New credit",
"params": {
"client": "$ctrl.client"
}
@ -291,11 +304,11 @@
"url": "/index",
"state": "client.card.contact.index",
"component": "vn-client-contact-index",
"description": "Contacts",
"params": {
"client": "$ctrl.client"
},
"menu": {
"description": "Contacts",
"icon": "contact_phone"
}
}

View File

@ -8,7 +8,7 @@
</vn-watcher>
<form name="form" ng-submit="watcher.submitGo('client.card.address.index')">
<vn-card pad-large>
<vn-title>Address</vn-title>
<vn-title>New address</vn-title>
<vn-horizontal pad-small-v>
<vn-check vn-one label="Default" field="$ctrl.address.isDefaultAddress"></vn-check>
</vn-horizontal>

View File

@ -25,7 +25,7 @@
</vn-crud-model>
<form name="form" ng-submit="$ctrl.submit()">
<vn-card pad-large>
<vn-title>Address</vn-title>
<vn-title>Edit address</vn-title>
<vn-horizontal pad-small-v>
<vn-check vn-one label="Enabled" field="$ctrl.address.isActive"></vn-check>
<vn-check

View File

@ -3,5 +3,4 @@ Is equalizated: Recargo de equivalencia
Observation type: Tipo de observación
Description: Descripción
The observation type must be unique: El tipo de observación ha de ser único
Add note: Añadir nota
Remove note: Quitar nota

View File

@ -56,7 +56,8 @@
<span>{{::observation.description}}</span>
</vn-one>
</vn-vertical>
<a pad-medium-h vn-auto ui-sref="client.card.address.edit({addressId: {{::address.id}}})">
<a pad-medium-h vn-tooltip="Edit address"
vn-auto ui-sref="client.card.address.edit({addressId: {{::address.id}}})">
<vn-icon-button icon="edit"></vn-icon-button>
</a>
</vn-horizontal>
@ -66,6 +67,7 @@
<vn-float-button
vn-bind="+"
fixed-bottom-right
vn-tooltip="New address"
ui-sref="client.card.address.create"
icon="add"
label="Add">

View File

@ -1,6 +1,4 @@
Contract credit insurance: Contratos de seguro de crédito
New contract: Nuevo contrato
Close contract: Cerrar contrato
Edit contract: Modificar contrato
View credits: Ver créditos
Are you sure you want to close this contract?: ¿Seguro que quieres cerrar este contrato?

View File

@ -1 +0,0 @@
New credit: Nuevo crédito

View File

@ -1,2 +1 @@
Requested credits: Créditos solicitados
Created: Creado

View File

@ -7,7 +7,7 @@
</vn-watcher>
<form name="form" ng-submit="$ctrl.onSubmit()">
<vn-card pad-large>
<vn-title>Add credit</vn-title>
<vn-title>New credit</vn-title>
<vn-horizontal>
<vn-textfield vn-one label="Credit" field="$ctrl.client.credit" type="number" vn-focus></vn-textfield>
</vn-horizontal>

View File

@ -1 +0,0 @@
Add credit: Añadir crédito

View File

@ -10,7 +10,7 @@
<vn-vertical>
<vn-card pad-large>
<vn-vertical>
<vn-title>Credit</vn-title>
<vn-title>Credits</vn-title>
<vn-table model="model">
<vn-thead>
<vn-tr>
@ -37,6 +37,7 @@
</vn-pagination>
</vn-card>
</vn-vertical>
<a ui-sref="client.card.credit.create" vn-bind="+" fixed-bottom-right>
<a ui-sref="client.card.credit.create" vn-tooltip="New credit"
vn-bind="+" fixed-bottom-right>
<vn-float-button icon="add"></vn-float-button>
</a>

View File

@ -7,7 +7,7 @@
</vn-watcher>
<form name="form" ng-submit="$ctrl.onSubmit()">
<vn-card pad-large>
<vn-title>Add Greuge</vn-title>
<vn-title>New greuge</vn-title>
<vn-horizontal>
<vn-textfield
vn-one

View File

@ -61,7 +61,8 @@
</vn-pagination>
</vn-card>
</vn-vertical>
<a ui-sref="client.card.greuge.create" vn-bind="+" fixed-bottom-right>
<a ui-sref="client.card.greuge.create" vn-tooltip="New greuge"
vn-bind="+" fixed-bottom-right>
<vn-float-button icon="add"></vn-float-button>
</a>

View File

@ -1,5 +1,4 @@
Date: Fecha
Comment: Comentario
Amount: Importe
Type: Tipo
Add Greuge: Añadir Greuge
Type: Tipo

View File

@ -27,7 +27,7 @@
</vn-pagination>
</div>
</div>
<a ui-sref="client.create" vn-bind="+" fixed-bottom-right>
<a ui-sref="client.create" vn-tooltip="New client" vn-bind="+" fixed-bottom-right>
<vn-float-button icon="person_add"></vn-float-button>
</a>
<vn-dialog class="dialog-summary"

View File

@ -1,4 +1,3 @@
Invoices: Facturas
Reference: Referencia
Issue date: Fecha de emisión
Due date: Vencimiento

View File

@ -1,16 +1,8 @@
Active: Activo
Add contact: Añadir contacto
Amount: Importe
Client: Cliente
Clients: Clientes
Comercial Name: Comercial
Contacts: Contactos
Basic data: Datos básicos
Back: Volver
Fiscal data: Datos Fiscales
Addresses: Consignatarios
Web access: Acceso web
Notes: Notas
Has to invoice: Factura
Invoice by mail: Factura via e-mail
Country: País
@ -19,11 +11,35 @@ City: Municipio
Postcode: Código postal
Province: Provincia
Save: Guardar
Pay method : Forma de pago
Address: Consignatario
Credit : Crédito
Credit contracts: Contratos de crédito
Verified data: Datos comprobados
Mandate: Mandato
Remove contact: Eliminar
Client ticket list: Listado de tickets del cliente
Remove contact: Quitar contacto
Client ticket list: Listado de tickets del cliente
Add contact: Añadir contacto
# Sections
Clients: Clientes
List: Listado
New client: Nuevo cliente
Summary: Vista previa
Basic data: Datos básicos
Fiscal data: Datos Fiscales
Pay method: Forma de pago
Addresses: Consignatarios
New address: Nuevo consignatario
Edit address: Editar consignatario
Web access: Acceso web
Notes: Notas
New note: Nueva nota
Credits: Créditos
New credit: Nuevo crédito
New greuge: Nuevo greuge
Mandates: Mandatos
Invoices: Facturas
Recoveries: Recobros
New recovery: Nuevo recobro
Credit contracts: Contratos de crédito
New contract: Nuevo contrato
Edit contract: Editar contrato
Requested credits: Créditos solicitados
Contacts: Contactos

View File

@ -10,7 +10,7 @@
<vn-vertical>
<vn-card pad-large>
<vn-vertical>
<vn-title>Mandate</vn-title>
<vn-title>Mandates</vn-title>
<vn-table model="model">
<vn-thead>
<vn-tr>

View File

@ -26,6 +26,9 @@
</vn-card>
</vn-vertical>
<a ui-sref="client.card.note.create({id: $ctrl.$stateParams.id})" vn-bind="+" fixed-bottom-right>
<a vn-tooltip="New note"
ui-sref="client.card.note.create({id: $ctrl.$stateParams.id})"
vn-bind="+"
fixed-bottom-right>
<vn-float-button icon="add"></vn-float-button>
</a>

View File

@ -7,7 +7,7 @@
</vn-watcher>
<form name="form" ng-submit="$ctrl.onSubmit()">
<vn-card pad-large>
<vn-title>Add recovery</vn-title>
<vn-title>New recovery</vn-title>
<vn-horizontal>
<vn-date-picker
vn-one

View File

@ -1,2 +1 @@
Add recovery: Añadir recobro
Period: Periodo

View File

@ -10,7 +10,7 @@
<vn-vertical>
<vn-card pad-large>
<vn-vertical>
<vn-title>Recovery</vn-title>
<vn-title>Recoveries</vn-title>
<vn-table model="model">
<vn-thead>
<vn-tr>
@ -49,6 +49,7 @@
</vn-pagination>
</vn-card>
</vn-vertical>
<a ui-sref="client.card.recovery.create" vn-bind="+" fixed-bottom-right>
<a vn-tooltip="New recovery" ui-sref="client.card.recovery.create"
vn-bind="+" fixed-bottom-right>
<vn-float-button icon="add"></vn-float-button>
</a>

View File

@ -2,5 +2,4 @@ Since: Desde
Employee: Empleado
No results: Sin resultados
To: Hasta
Recovery: Recobros
Finish that recovery period: Terminar el recobro

View File

@ -9,3 +9,4 @@ import './zoom-image';
import './visible-by';
import './bind';
import './repeat-last';
import './title';

View File

@ -0,0 +1,37 @@
import ngModule from '../module';
/**
* Watch for a state transition to change the page title
*
* @return {Object} The directive
*/
directive.$inject = ['$transitions', '$translate', '$state'];
export default function directive($transitions, $translate, $state) {
return {
restrict: 'A',
link: function($scope, $element, $attrs) {
$transitions.onSuccess({}, transition => {
let currentState = transition.targetState();
let currentRoute = currentState._definition.self;
let parentRoute = currentState._definition.path[1].self;
let moduleName;
moduleName = $translate.instant(parentRoute.description);
moduleName = moduleName ? `${moduleName} :` : '';
if (currentRoute == parentRoute)
moduleName = '';
let pageName = $translate.instant(currentRoute.description);
let paramId = $state.params.id ? `${$state.params.id} -` : '';
let title = `${moduleName} ${paramId} ${pageName}`;
$element.html(title);
});
}
};
}
ngModule.directive('vnTitle', directive);

View File

@ -8,104 +8,119 @@
"url": "/item",
"state": "item",
"abstract": true,
"description": "Items",
"component": "ui-view"
}, {
},
{
"url": "/index?q",
"state": "item.index",
"component": "vn-item-index"
}, {
"component": "vn-item-index",
"description": "List"
},
{
"url": "/create",
"state": "item.create",
"component": "vn-item-create"
}, {
"component": "vn-item-create",
"description": "New item"
},
{
"url": "/:id",
"state": "item.card",
"abstract": true,
"component": "vn-item-card"
}, {
},
{
"url" : "/data",
"state": "item.card.data",
"component": "vn-item-data",
"description": "Basic data",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Basic data",
"icon": "settings"
},
"acl": ["buyer"]
}, {
},
{
"url" : "/tags",
"state": "item.card.tags",
"component": "vn-item-tags",
"description": "Tags",
"params": {
"item-tags": "$ctrl.itemTags"
},
"menu": {
"description": "Tags",
"icon": "icon-tags"
},
"acl": ["buyer"]
}, {
},
{
"url" : "/tax",
"state": "item.card.tax",
"component": "vn-item-tax",
"description": "Tax",
"menu": {
"description": "Tax",
"icon": "icon-tax"
},
"acl": ["administrative","buyer"]
}, {
},
{
"url" : "/history",
"state": "item.card.history",
"component": "vn-item-history",
"description": "History",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "History",
"icon": "history"
}
}, {
},
{
"url" : "/niche",
"state": "item.card.niche",
"component": "vn-item-niche",
"description": "Niches",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Niche",
"icon": "place"
},
"acl": ["buyer","replenisher"]
}, {
},
{
"url" : "/botanical",
"state": "item.card.botanical",
"component": "vn-item-botanical",
"description": "Botanical",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Botanical",
"icon": "local_florist"
},
"acl": ["buyer"]
}, {
},
{
"url" : "/barcode",
"state": "item.card.itemBarcode",
"component": "vn-item-barcode",
"description": "Barcodes",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Barcode",
"icon": "icon-barcode"
},
"acl": ["buyer","replenisher"]
}, {
},
{
"url" : "/summary",
"state": "item.card.summary",
"component": "vn-item-summary",
"description": "Summary",
"params": {
"item": "$ctrl.item"
}
@ -113,11 +128,11 @@
"url" : "/diary?q",
"state": "item.card.diary",
"component": "vn-item-diary",
"description": "Diary",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Diary",
"icon": "icon-transaction"
},
"acl": ["employee"]
@ -125,11 +140,11 @@
"url" : "/last-entries",
"state": "item.card.last-entries",
"component": "vn-item-last-entries",
"description": "Last entries",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Last entries",
"icon": "icon-regentry"
},
"acl": ["employee"]

View File

@ -4,7 +4,7 @@
</vn-watcher>
<form name="form" ng-submit="$ctrl.submit()">
<vn-card pad-large>
<vn-title>Item barcode</vn-title>
<vn-title>Barcodes</vn-title>
<vn-horizontal ng-repeat="barcode in $ctrl.barcodes track by $index">
<vn-textfield
vn-three

View File

@ -10,7 +10,7 @@
<vn-vertical>
<vn-card pad-large>
<vn-vertical>
<vn-title>Item history</vn-title>
<vn-title>History</vn-title>
<vn-table model="model">
<vn-thead>
<vn-tr>

View File

@ -27,7 +27,7 @@
</vn-pagination>
</div>
</div>
<a ui-sref="item.create" vn-bind="+" fixed-bottom-right>
<a ui-sref="item.create" vn-tooltip="New item" vn-bind="+" fixed-bottom-right>
<vn-float-button icon="add"></vn-float-button>
</a>
<vn-dialog vn-id="preview" class="dialog-summary">

View File

@ -1,4 +1,3 @@
Last entries: Últimas entradas
Since: Desde
Landed: Llegada
Stems: Tallos

View File

@ -1,4 +1,3 @@
Items: Artículos
Item: Artículo
View item: Ver artículo
Category: Categoría
@ -7,16 +6,7 @@ Size: Tamaño
Type: Tipo
Name: Nombre
Relevancy: Relevancia
New item: Nuevo artículo
Basic data: Datos básicos
History: Historial
Item history: Historial del artículo
Item tags: Tags del artículo
Tax: IVA
Niche: Nicho
Picture: Foto
Barcode: Código barras
Item barcode: Código de barras del artículo
Changed by: Cambiado por
Action: Acción
Date: Fecha
@ -27,20 +17,15 @@ All it's properties will be copied: Todas sus propiedades serán copiadas
Yes, clone: Si, clonar
Value: Valor
Priority: Prioridad
Item tax: Tasas del artículo
Country: País
Select warehouse: Selecione almacén
Class: Clase
Item niches: Nichos del artículo
Item diary: Registro de compra-venta
Intrastat code: Código intrastat
Diary: Registro
Warehouse: Almacén
Code: Código
State: Estado
In: Entrada
Out: Salida
Botanical: Botánico
Species: Especie
Add tag: Añadir etiqueta
Remove tag: Quitar etiqueta
@ -52,4 +37,19 @@ Buyer: Comprador
No results: Sin resultados
Tag: Etiqueta
Worker: Trabajador
Available: Disponible
Available: Disponible
#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
Item diary: Registro de compra-venta
Last entries: Últimas entradas

View File

@ -5,7 +5,7 @@
</vn-watcher>
<form name="form" ng-submit="$ctrl.submit()">
<vn-card pad-large>
<vn-title>Item niches</vn-title>
<vn-title>Niches</vn-title>
<vn-horizontal ng-repeat="itemNiche in $ctrl.niches track by $index">
<vn-autocomplete
ng-if="!itemNiche.id"

View File

@ -5,7 +5,7 @@
</vn-watcher>
<form name="form" ng-submit="$ctrl.submit()">
<vn-card pad-large>
<vn-title>Item tags</vn-title>
<vn-title>Tags</vn-title>
<vn-horizontal ng-repeat="itemTag in $ctrl.tags">
<vn-autocomplete
vn-id="tag"

View File

@ -5,7 +5,7 @@
</vn-crud-model>
<form name="form" ng-submit="$ctrl.submit()">
<vn-card pad-large>
<vn-title>Item tax</vn-title>
<vn-title>Tax</vn-title>
<vn-horizontal ng-repeat="tax in $ctrl.taxes track by $index">
<vn-textfield vn-one
label="Country"

View File

@ -9,12 +9,14 @@
"state": "order",
"abstract": true,
"component": "ui-view",
"description": "Orders",
"acl": ["developer"]
},
{
"url": "/index?q",
"state": "order.index",
"component": "vn-order-index"
"component": "vn-order-index",
"description": "List"
},
{
"url": "/:id",
@ -26,6 +28,7 @@
"url": "/summary",
"state": "order.card.summary",
"component": "vn-order-summary",
"description": "Summary",
"params": {
"order": "$ctrl.order"
}
@ -34,11 +37,11 @@
"url": "/catalogue",
"state": "order.card.catalogue",
"component": "vn-order-catalogue",
"description": "Catalogue",
"params": {
"order": "$ctrl.order"
},
"menu": {
"description": "Catalogue",
"icon": "shopping_cart"
}
},
@ -46,18 +49,19 @@
"url": "/volume",
"state": "order.card.volume",
"component": "vn-order-volume",
"description": "Volume",
"params": {
"order": "$ctrl.order"
},
"menu": {
"description": "Volume",
"icon": "icon-volume"
}
},
{
"url": "/create",
"state": "order.create",
"component": "vn-order-create"
"component": "vn-order-create",
"description": "New order"
}
]
}

View File

@ -35,7 +35,7 @@
scroll-selector="ui-view">
</vn-pagination>
</div>
<a ui-sref="order.create" vn-bind="+" fixed-bottom-right>
<a ui-sref="order.create" vn-bind="+" vn-tooltip="New order" fixed-bottom-right>
<vn-float-button icon="add"></vn-float-button>
</a>
<!--

View File

@ -14,7 +14,7 @@ export default class LeftMenu {
routes.forEach(i => {
if (i.menu && this.aclService.routeHasPermission(i))
items.push({
description: i.menu.description,
description: i.description,
icon: i.menu.icon,
href: i.state
});

View File

@ -36,7 +36,8 @@ function config($stateProvider, $urlRouterProvider, aclServiceProvider, modulesF
$stateProvider.state('home', {
url: '/',
template: '<vn-home></vn-home>'
template: '<vn-home></vn-home>',
description: 'Salix'
});
for (let file in window.routes) {
@ -52,6 +53,7 @@ function config($stateProvider, $urlRouterProvider, aclServiceProvider, modulesF
let configRoute = {
url: route.url,
template: `<${route.component} ${getParams(route)}></${route.component}>`,
description: route.description,
resolve: {
loader: loader(moduleName, validations)
},

View File

@ -8,12 +8,14 @@
"url": "/ticket",
"state": "ticket",
"abstract": true,
"component": "ui-view"
"component": "ui-view",
"description": "Tickets"
},
{
"url": "/index?q",
"state": "ticket.index",
"component": "vn-ticket-index"
"component": "vn-ticket-index",
"description": "Listado"
},
{
"url": "/:id",
@ -25,6 +27,7 @@
"url": "/summary",
"state": "ticket.card.summary",
"component": "vn-ticket-summary",
"description": "Summary",
"params": {
"ticket": "$ctrl.ticket"
}
@ -42,11 +45,11 @@
"url" : "/step-one",
"state": "ticket.card.data.stepOne",
"component": "vn-ticket-data-step-one",
"description": "Basic data",
"params": {
"ticket": "$ctrl.data"
},
"menu": {
"description": "Basic data",
"icon": "settings"
}
},
@ -54,6 +57,7 @@
"url" : "/step-two",
"state": "ticket.card.data.stepTwo",
"component": "vn-ticket-data-step-two",
"description": "Price difference",
"params": {
"ticket": "$ctrl.data"
}
@ -62,6 +66,7 @@
"url" : "/step-three",
"state": "ticket.card.data.stepThree",
"component": "vn-ticket-data-step-three",
"description": "Charge",
"params": {
"ticket": "$ctrl.data"
}
@ -70,11 +75,11 @@
"url" : "/sale",
"state": "ticket.card.sale",
"component": "vn-ticket-sale",
"description": "Sale",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Sale",
"icon": "icon-lines"
}
},
@ -82,11 +87,11 @@
"url": "/observation",
"state": "ticket.card.observation",
"component": "vn-ticket-observation",
"description": "Notes",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Notes",
"icon": "insert_drive_file"
}
},
@ -94,11 +99,11 @@
"url": "/volume",
"state": "ticket.card.volume",
"component": "vn-ticket-volume",
"description": "Volume",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Volume",
"icon": "icon-volume"
}
},
@ -106,11 +111,11 @@
"url": "/expedition",
"state": "ticket.card.expedition",
"component": "vn-ticket-expedition",
"description": "Expedition",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Expedition",
"icon": "icon-volum"
}
},
@ -124,11 +129,11 @@
"url" : "/index",
"state": "ticket.card.package.index",
"component": "vn-ticket-package-index",
"description": "Packages",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Packages",
"icon": "icon-bucket"
}
},
@ -142,11 +147,11 @@
"url" : "/index",
"state": "ticket.card.tracking.index",
"component": "vn-ticket-tracking-index",
"description": "Tracking",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Tracking",
"icon": "remove_red_eye"
}
},
@ -154,6 +159,7 @@
"url": "/edit",
"state": "ticket.card.tracking.edit",
"component": "vn-ticket-tracking-edit",
"description": "New state",
"params": {
"ticket": "$ctrl.ticket"
},
@ -163,11 +169,11 @@
"url" : "/sale-checked",
"state": "ticket.card.saleChecked",
"component": "vn-ticket-sale-checked",
"description": "Sale checked",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Sale checked",
"icon": "assignment"
}
},
@ -175,11 +181,11 @@
"url" : "/components",
"state": "ticket.card.components",
"component": "vn-ticket-components",
"description": "Components",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Components",
"icon": "icon-components"
}
},
@ -187,11 +193,11 @@
"url" : "/sale-tracking",
"state": "ticket.card.saleTracking",
"component": "vn-ticket-sale-tracking",
"description": "Sale tracking",
"params": {
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Sale tracking",
"icon": "assignment"
}
}

View File

@ -2,12 +2,10 @@
Address: Consignatario
Agency: Agencia
Amount: Importe
Basic data: Datos básicos
Boxes: Cajas
Checked: Comprobado
Client: Cliente
Company: Empresa
Components: Componentes
Counter: Contador
Created : Añadido
Date : Fecha
@ -16,7 +14,6 @@ Delete expedition: Borrar expedición
Description: Descripción
Discount: Descuento
Employee : Empleado
Expedition: Expedición
Import: Importe
Is checked: Comprobado
Item: Articulo
@ -29,10 +26,8 @@ Unmark as reserved: Desmarcar como reservado
m³ per unit: m³ por unidad
m³ per quantity: m³ por cantidad
Name: Nombre
Notes: Notas
New price: Nuevo precio
New : Nuevo
New state: Nuevo estado
Next: Siguiente
Observation type: Tipo de observación
Original quantity: Cantidad original
@ -45,8 +40,6 @@ Price gap: Diferencia de precio
Quantity: Cantidad
Remove lines: Borrar lineas
Route: Ruta
Sale: Lineas del pedido
Sale checked: Control clientes
Shipment: Salida
Shipped: F. envio
Some fields are invalid: Algunos campos no son válidos
@ -54,11 +47,23 @@ State: Estado
The observation type must be unique: El tipo de observación debe ser único
Tickets: Tickets
Total import: Importe total
Tracking: Revisión
Volume: Volumen
Warehouse: Almacén
Worker: Trabajador
VAT: IVA
Hour: Hora
The quantity do not match: Las cantidades no coinciden
#sections
List: Listado
Summary: Vista previa
Basic data: Datos básicos
Sale: Lineas del pedido
Notes: Notas
Volume: Volumen
Expedition: Expedición
New state: Nuevo estado
Packages: Embalajes
Tracking: Revisión
Sale checked: Control clientes
Components: Componentes
Sale tracking: Líneas preparadas
The quantity do not match: Las cantidades no coinciden

View File

@ -1,4 +1,3 @@
Packages: Embalajes
Package: Embalaje
Quantity: Cantidad
Added: Añadido

View File

@ -21,5 +21,6 @@
"Only manager can change the credit": "Only manager can change the credit",
"Name cannot be blank": "Name cannot be blank",
"Phone cannot be blank": "Phone cannot be blank",
"Observation type cannot be blank": "Observation type cannot be blank"
"Observation type cannot be blank": "Observation type cannot be blank",
"NO_AGENCY_AVAILABLE": "NO_AGENCY_AVAILABLE"
}

View File

@ -2,7 +2,7 @@
<html ng-app="salix">
<head>
<meta charset="UTF-8">
<title>Salix</title>
<title vn-title translate>Salix</title>
<script src="/acl"></script>
</head>
<body>