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

View File

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

View File

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

View File

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

View File

@ -56,7 +56,8 @@
<span>{{::observation.description}}</span> <span>{{::observation.description}}</span>
</vn-one> </vn-one>
</vn-vertical> </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> <vn-icon-button icon="edit"></vn-icon-button>
</a> </a>
</vn-horizontal> </vn-horizontal>
@ -66,6 +67,7 @@
<vn-float-button <vn-float-button
vn-bind="+" vn-bind="+"
fixed-bottom-right fixed-bottom-right
vn-tooltip="New address"
ui-sref="client.card.address.create" ui-sref="client.card.address.create"
icon="add" icon="add"
label="Add"> label="Add">

View File

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

View File

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

View File

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

View File

@ -10,7 +10,7 @@
<vn-vertical> <vn-vertical>
<vn-card pad-large> <vn-card pad-large>
<vn-vertical> <vn-vertical>
<vn-title>Credit</vn-title> <vn-title>Credits</vn-title>
<vn-table model="model"> <vn-table model="model">
<vn-thead> <vn-thead>
<vn-tr> <vn-tr>
@ -37,6 +37,7 @@
</vn-pagination> </vn-pagination>
</vn-card> </vn-card>
</vn-vertical> </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> <vn-float-button icon="add"></vn-float-button>
</a> </a>

View File

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

View File

@ -61,7 +61,8 @@
</vn-pagination> </vn-pagination>
</vn-card> </vn-card>
</vn-vertical> </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> <vn-float-button icon="add"></vn-float-button>
</a> </a>

View File

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

View File

@ -27,7 +27,7 @@
</vn-pagination> </vn-pagination>
</div> </div>
</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> <vn-float-button icon="person_add"></vn-float-button>
</a> </a>
<vn-dialog class="dialog-summary" <vn-dialog class="dialog-summary"

View File

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

View File

@ -1,16 +1,8 @@
Active: Activo Active: Activo
Add contact: Añadir contacto
Amount: Importe Amount: Importe
Client: Cliente Client: Cliente
Clients: Clientes
Comercial Name: Comercial Comercial Name: Comercial
Contacts: Contactos
Basic data: Datos básicos
Back: Volver Back: Volver
Fiscal data: Datos Fiscales
Addresses: Consignatarios
Web access: Acceso web
Notes: Notas
Has to invoice: Factura Has to invoice: Factura
Invoice by mail: Factura via e-mail Invoice by mail: Factura via e-mail
Country: País Country: País
@ -19,11 +11,35 @@ City: Municipio
Postcode: Código postal Postcode: Código postal
Province: Provincia Province: Provincia
Save: Guardar Save: Guardar
Pay method : Forma de pago
Address: Consignatario Address: Consignatario
Credit : Crédito
Credit contracts: Contratos de crédito
Verified data: Datos comprobados Verified data: Datos comprobados
Mandate: Mandato Remove contact: Quitar contacto
Remove contact: Eliminar Client ticket list: Listado de tickets del cliente
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-vertical>
<vn-card pad-large> <vn-card pad-large>
<vn-vertical> <vn-vertical>
<vn-title>Mandate</vn-title> <vn-title>Mandates</vn-title>
<vn-table model="model"> <vn-table model="model">
<vn-thead> <vn-thead>
<vn-tr> <vn-tr>

View File

@ -26,6 +26,9 @@
</vn-card> </vn-card>
</vn-vertical> </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> <vn-float-button icon="add"></vn-float-button>
</a> </a>

View File

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

View File

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

View File

@ -10,7 +10,7 @@
<vn-vertical> <vn-vertical>
<vn-card pad-large> <vn-card pad-large>
<vn-vertical> <vn-vertical>
<vn-title>Recovery</vn-title> <vn-title>Recoveries</vn-title>
<vn-table model="model"> <vn-table model="model">
<vn-thead> <vn-thead>
<vn-tr> <vn-tr>
@ -49,6 +49,7 @@
</vn-pagination> </vn-pagination>
</vn-card> </vn-card>
</vn-vertical> </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> <vn-float-button icon="add"></vn-float-button>
</a> </a>

View File

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

View File

@ -9,3 +9,4 @@ import './zoom-image';
import './visible-by'; import './visible-by';
import './bind'; import './bind';
import './repeat-last'; 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", "url": "/item",
"state": "item", "state": "item",
"abstract": true, "abstract": true,
"description": "Items",
"component": "ui-view" "component": "ui-view"
}, { },
{
"url": "/index?q", "url": "/index?q",
"state": "item.index", "state": "item.index",
"component": "vn-item-index" "component": "vn-item-index",
}, { "description": "List"
},
{
"url": "/create", "url": "/create",
"state": "item.create", "state": "item.create",
"component": "vn-item-create" "component": "vn-item-create",
}, { "description": "New item"
},
{
"url": "/:id", "url": "/:id",
"state": "item.card", "state": "item.card",
"abstract": true, "abstract": true,
"component": "vn-item-card" "component": "vn-item-card"
}, { },
{
"url" : "/data", "url" : "/data",
"state": "item.card.data", "state": "item.card.data",
"component": "vn-item-data", "component": "vn-item-data",
"description": "Basic data",
"params": { "params": {
"item": "$ctrl.item" "item": "$ctrl.item"
}, },
"menu": { "menu": {
"description": "Basic data",
"icon": "settings" "icon": "settings"
}, },
"acl": ["buyer"] "acl": ["buyer"]
}, { },
{
"url" : "/tags", "url" : "/tags",
"state": "item.card.tags", "state": "item.card.tags",
"component": "vn-item-tags", "component": "vn-item-tags",
"description": "Tags",
"params": { "params": {
"item-tags": "$ctrl.itemTags" "item-tags": "$ctrl.itemTags"
}, },
"menu": { "menu": {
"description": "Tags",
"icon": "icon-tags" "icon": "icon-tags"
}, },
"acl": ["buyer"] "acl": ["buyer"]
}, { },
{
"url" : "/tax", "url" : "/tax",
"state": "item.card.tax", "state": "item.card.tax",
"component": "vn-item-tax", "component": "vn-item-tax",
"description": "Tax",
"menu": { "menu": {
"description": "Tax",
"icon": "icon-tax" "icon": "icon-tax"
}, },
"acl": ["administrative","buyer"] "acl": ["administrative","buyer"]
}, { },
{
"url" : "/history", "url" : "/history",
"state": "item.card.history", "state": "item.card.history",
"component": "vn-item-history", "component": "vn-item-history",
"description": "History",
"params": { "params": {
"item": "$ctrl.item" "item": "$ctrl.item"
}, },
"menu": { "menu": {
"description": "History",
"icon": "history" "icon": "history"
} }
}, { },
{
"url" : "/niche", "url" : "/niche",
"state": "item.card.niche", "state": "item.card.niche",
"component": "vn-item-niche", "component": "vn-item-niche",
"description": "Niches",
"params": { "params": {
"item": "$ctrl.item" "item": "$ctrl.item"
}, },
"menu": { "menu": {
"description": "Niche",
"icon": "place" "icon": "place"
}, },
"acl": ["buyer","replenisher"] "acl": ["buyer","replenisher"]
}, { },
{
"url" : "/botanical", "url" : "/botanical",
"state": "item.card.botanical", "state": "item.card.botanical",
"component": "vn-item-botanical", "component": "vn-item-botanical",
"description": "Botanical",
"params": { "params": {
"item": "$ctrl.item" "item": "$ctrl.item"
}, },
"menu": { "menu": {
"description": "Botanical",
"icon": "local_florist" "icon": "local_florist"
}, },
"acl": ["buyer"] "acl": ["buyer"]
}, { },
{
"url" : "/barcode", "url" : "/barcode",
"state": "item.card.itemBarcode", "state": "item.card.itemBarcode",
"component": "vn-item-barcode", "component": "vn-item-barcode",
"description": "Barcodes",
"params": { "params": {
"item": "$ctrl.item" "item": "$ctrl.item"
}, },
"menu": { "menu": {
"description": "Barcode",
"icon": "icon-barcode" "icon": "icon-barcode"
}, },
"acl": ["buyer","replenisher"] "acl": ["buyer","replenisher"]
}, { },
{
"url" : "/summary", "url" : "/summary",
"state": "item.card.summary", "state": "item.card.summary",
"component": "vn-item-summary", "component": "vn-item-summary",
"description": "Summary",
"params": { "params": {
"item": "$ctrl.item" "item": "$ctrl.item"
} }
@ -113,11 +128,11 @@
"url" : "/diary?q", "url" : "/diary?q",
"state": "item.card.diary", "state": "item.card.diary",
"component": "vn-item-diary", "component": "vn-item-diary",
"description": "Diary",
"params": { "params": {
"item": "$ctrl.item" "item": "$ctrl.item"
}, },
"menu": { "menu": {
"description": "Diary",
"icon": "icon-transaction" "icon": "icon-transaction"
}, },
"acl": ["employee"] "acl": ["employee"]
@ -125,11 +140,11 @@
"url" : "/last-entries", "url" : "/last-entries",
"state": "item.card.last-entries", "state": "item.card.last-entries",
"component": "vn-item-last-entries", "component": "vn-item-last-entries",
"description": "Last entries",
"params": { "params": {
"item": "$ctrl.item" "item": "$ctrl.item"
}, },
"menu": { "menu": {
"description": "Last entries",
"icon": "icon-regentry" "icon": "icon-regentry"
}, },
"acl": ["employee"] "acl": ["employee"]

View File

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

View File

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

View File

@ -27,7 +27,7 @@
</vn-pagination> </vn-pagination>
</div> </div>
</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> <vn-float-button icon="add"></vn-float-button>
</a> </a>
<vn-dialog vn-id="preview" class="dialog-summary"> <vn-dialog vn-id="preview" class="dialog-summary">

View File

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

View File

@ -1,4 +1,3 @@
Items: Artículos
Item: Artículo Item: Artículo
View item: Ver artículo View item: Ver artículo
Category: Categoría Category: Categoría
@ -7,16 +6,7 @@ Size: Tamaño
Type: Tipo Type: Tipo
Name: Nombre Name: Nombre
Relevancy: Relevancia 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 Picture: Foto
Barcode: Código barras
Item barcode: Código de barras del artículo
Changed by: Cambiado por Changed by: Cambiado por
Action: Acción Action: Acción
Date: Fecha Date: Fecha
@ -27,20 +17,15 @@ All it's properties will be copied: Todas sus propiedades serán copiadas
Yes, clone: Si, clonar Yes, clone: Si, clonar
Value: Valor Value: Valor
Priority: Prioridad Priority: Prioridad
Item tax: Tasas del artículo
Country: País Country: País
Select warehouse: Selecione almacén Select warehouse: Selecione almacén
Class: Clase Class: Clase
Item niches: Nichos del artículo
Item diary: Registro de compra-venta
Intrastat code: Código intrastat Intrastat code: Código intrastat
Diary: Registro
Warehouse: Almacén Warehouse: Almacén
Code: Código Code: Código
State: Estado State: Estado
In: Entrada In: Entrada
Out: Salida Out: Salida
Botanical: Botánico
Species: Especie Species: Especie
Add tag: Añadir etiqueta Add tag: Añadir etiqueta
Remove tag: Quitar etiqueta Remove tag: Quitar etiqueta
@ -52,4 +37,19 @@ Buyer: Comprador
No results: Sin resultados No results: Sin resultados
Tag: Etiqueta Tag: Etiqueta
Worker: Trabajador 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> </vn-watcher>
<form name="form" ng-submit="$ctrl.submit()"> <form name="form" ng-submit="$ctrl.submit()">
<vn-card pad-large> <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-horizontal ng-repeat="itemNiche in $ctrl.niches track by $index">
<vn-autocomplete <vn-autocomplete
ng-if="!itemNiche.id" ng-if="!itemNiche.id"

View File

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

View File

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

View File

@ -9,12 +9,14 @@
"state": "order", "state": "order",
"abstract": true, "abstract": true,
"component": "ui-view", "component": "ui-view",
"description": "Orders",
"acl": ["developer"] "acl": ["developer"]
}, },
{ {
"url": "/index?q", "url": "/index?q",
"state": "order.index", "state": "order.index",
"component": "vn-order-index" "component": "vn-order-index",
"description": "List"
}, },
{ {
"url": "/:id", "url": "/:id",
@ -26,6 +28,7 @@
"url": "/summary", "url": "/summary",
"state": "order.card.summary", "state": "order.card.summary",
"component": "vn-order-summary", "component": "vn-order-summary",
"description": "Summary",
"params": { "params": {
"order": "$ctrl.order" "order": "$ctrl.order"
} }
@ -34,11 +37,11 @@
"url": "/catalogue", "url": "/catalogue",
"state": "order.card.catalogue", "state": "order.card.catalogue",
"component": "vn-order-catalogue", "component": "vn-order-catalogue",
"description": "Catalogue",
"params": { "params": {
"order": "$ctrl.order" "order": "$ctrl.order"
}, },
"menu": { "menu": {
"description": "Catalogue",
"icon": "shopping_cart" "icon": "shopping_cart"
} }
}, },
@ -46,18 +49,19 @@
"url": "/volume", "url": "/volume",
"state": "order.card.volume", "state": "order.card.volume",
"component": "vn-order-volume", "component": "vn-order-volume",
"description": "Volume",
"params": { "params": {
"order": "$ctrl.order" "order": "$ctrl.order"
}, },
"menu": { "menu": {
"description": "Volume",
"icon": "icon-volume" "icon": "icon-volume"
} }
}, },
{ {
"url": "/create", "url": "/create",
"state": "order.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"> scroll-selector="ui-view">
</vn-pagination> </vn-pagination>
</div> </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> <vn-float-button icon="add"></vn-float-button>
</a> </a>
<!-- <!--

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -21,5 +21,6 @@
"Only manager can change the credit": "Only manager can change the credit", "Only manager can change the credit": "Only manager can change the credit",
"Name cannot be blank": "Name cannot be blank", "Name cannot be blank": "Name cannot be blank",
"Phone cannot be blank": "Phone 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"> <html ng-app="salix">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Salix</title> <title vn-title translate>Salix</title>
<script src="/acl"></script> <script src="/acl"></script>
</head> </head>
<body> <body>