From c787856eceee74a9772fb44f778afd639e563faa Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Tue, 7 Feb 2023 17:13:21 -0500 Subject: [PATCH] Output all available mvea text in Vue.js components (CFM-205) --- app/resources/locales/en_US/information.po | 3 ++ app/templates/People/canvas.php | 50 +++++++++---------- app/templates/element/mveaJs.php | 9 +++- app/webroot/css/co-base.css | 6 +++ .../js/comanage/components/mvea/mvea-item.js | 49 +++++++++++------- 5 files changed, 71 insertions(+), 46 deletions(-) diff --git a/app/resources/locales/en_US/information.po b/app/resources/locales/en_US/information.po index 5ed2ff96b..4cd7ed3a2 100644 --- a/app/resources/locales/en_US/information.po +++ b/app/resources/locales/en_US/information.po @@ -59,3 +59,6 @@ msgstr "No title" msgid "global.value.none" msgstr "No value" + +msgid "global.visit.link" +msgstr "Visit link" diff --git a/app/templates/People/canvas.php b/app/templates/People/canvas.php index 1216a1153..2d7397b01 100644 --- a/app/templates/People/canvas.php +++ b/app/templates/People/canvas.php @@ -68,13 +68,29 @@ element('subnavigation', $subnav); ?> - -
- Flash->render() ?> -
-
- + + +
+ element( + 'mveaJs', + [ + 'htmlId' => 'person-canvas-' . $attr . '-js', + 'parentId' => $objId, + 'mveaType' => $attr, + 'entityType' => 'person' + ] + ); + } + } + ?> +
+ + +
+
@@ -152,25 +169,4 @@
- - - element( - 'mveaJs', - [ - 'htmlId' => 'person-canvas-' . $attr . '-js', - 'parentId' => $objId, - 'mveaType' => $attr, - 'entityType' => 'person' - ] - ); - } - } - ?> - - */ ?> diff --git a/app/templates/element/mveaJs.php b/app/templates/element/mveaJs.php index 5468ad40c..5214ed127 100644 --- a/app/templates/element/mveaJs.php +++ b/app/templates/element/mveaJs.php @@ -60,7 +60,12 @@ webroot: 'request->getAttribute('webroot') ?>' }, txt: { - status: '' + login: '', + none: '', + primary: '', + status: '', + unverified: '', + visit: '' } } }, @@ -111,7 +116,7 @@ app.mount("#"); -
+

diff --git a/app/webroot/css/co-base.css b/app/webroot/css/co-base.css index 5be5d16fb..4e38b78d5 100644 --- a/app/webroot/css/co-base.css +++ b/app/webroot/css/co-base.css @@ -1027,6 +1027,12 @@ table.index-table .form-check { margin-top: 0; margin-bottom: 2em; } +#person-canvas-attributes-js .badge { + margin-right: 0.5em; +} +#person-canvas-attributes-js .canvas-url-link { + margin-left: 1em; +} #person-canvas-roles { margin-bottom: 2em; } diff --git a/app/webroot/js/comanage/components/mvea/mvea-item.js b/app/webroot/js/comanage/components/mvea/mvea-item.js index a39f2d907..053c920ec 100644 --- a/app/webroot/js/comanage/components/mvea/mvea-item.js +++ b/app/webroot/js/comanage/components/mvea/mvea-item.js @@ -34,73 +34,88 @@ export default {
  • - Personal + {{ this.txt.primary }} + type: {{ this.mvea.type_id }}
  • - Personal + {{ this.txt.unverified }} + type: {{ this.mvea.type_id }}
  • - Personal + + type: {{ this.mvea.type_id }}
  • -
    - Personal +
    + {{ this.mvea.tag }}
  • - addresses +
    + {{ this.mvea.room }} {{ this.mvea.street }} + +
    {{ this.mvea.locality }}{{ this.mvea.locality != '' && this.mvea.state != '' ? ', ' : ''}}{{ this.mvea.state }} +
    + +
    {{ this.mvea.postal_code }} {{ this.mvea.country }} +
    +
    - Personal + type: {{ this.mvea.type_id }}
  • - Personal + type: {{ this.mvea.type_id }}
  • - Personal + type: {{ this.mvea.type_id }}
  • - Personal + type: {{ this.mvea.type_id }}
  • `