From b74569e67149a76e1cae573331b1e45d58af31bc Mon Sep 17 00:00:00 2001 From: Pau Navarro Date: Fri, 18 Nov 2022 07:59:19 +0100 Subject: [PATCH] refs #4834 worker card & descriptor implementation @1h --- src/i18n/en/index.js | 6 + src/i18n/es/index.js | 6 + src/pages/Worker/Card/WorkerCard.vue | 53 +++++---- src/pages/Worker/Card/WorkerDescriptor.vue | 121 +++++++++++++++++++++ src/pages/Worker/Card/WorkerPopover.vue | 15 +++ src/pages/Worker/Card/WorkerSummary.vue | 2 +- 6 files changed, 183 insertions(+), 20 deletions(-) create mode 100644 src/pages/Worker/Card/WorkerDescriptor.vue create mode 100644 src/pages/Worker/Card/WorkerPopover.vue diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 687fbdce7..3cc76edb3 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -253,6 +253,7 @@ export default { pageTitles: { workers: 'Workers', list: 'List', + basicData: 'Basic data', }, list: { name: 'Name', @@ -305,4 +306,9 @@ export default { moreOptions: 'More options' } }, + notFound: { + pageTitles: { + undefined: 'Undefined', + }, + } }; diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 84586ab47..cdaee02bd 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -251,6 +251,7 @@ export default { pageTitles: { workers: 'Trabajadores', list: 'Listado', + basicData: 'Datos básicos', }, list: { name: 'Nombre', @@ -303,4 +304,9 @@ export default { moreOptions: 'Más opciones', } }, + notFound: { + pageTitles: { + undefined: 'Página no encontrada', + }, + } }; diff --git a/src/pages/Worker/Card/WorkerCard.vue b/src/pages/Worker/Card/WorkerCard.vue index 856710e17..b014e9b7f 100644 --- a/src/pages/Worker/Card/WorkerCard.vue +++ b/src/pages/Worker/Card/WorkerCard.vue @@ -1,6 +1,7 @@ + diff --git a/src/pages/Worker/Card/WorkerPopover.vue b/src/pages/Worker/Card/WorkerPopover.vue new file mode 100644 index 000000000..5aad1377c --- /dev/null +++ b/src/pages/Worker/Card/WorkerPopover.vue @@ -0,0 +1,15 @@ + + diff --git a/src/pages/Worker/Card/WorkerSummary.vue b/src/pages/Worker/Card/WorkerSummary.vue index 043622340..e39027dd6 100644 --- a/src/pages/Worker/Card/WorkerSummary.vue +++ b/src/pages/Worker/Card/WorkerSummary.vue @@ -104,7 +104,7 @@ function sipExtension() { - + {{ t('worker.list.department') }}