From f35374d5d619c78c7598f096b7ef2c79beb3d535 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Fri, 20 Feb 2026 10:37:11 -0500 Subject: [PATCH] Convert MVEA cards into tables (CFM-417) --- app/webroot/css/co-base.css | 6 + app/webroot/css/co-responsive.css | 19 +- .../js/comanage/components/mvea/mvea-item.js | 176 +++++++++--------- .../js/comanage/components/mvea/mveas.js | 19 +- 4 files changed, 120 insertions(+), 100 deletions(-) diff --git a/app/webroot/css/co-base.css b/app/webroot/css/co-base.css index af2698b1a..71795e41e 100644 --- a/app/webroot/css/co-base.css +++ b/app/webroot/css/co-base.css @@ -1374,6 +1374,12 @@ h2.card-title a { #main h2.card-title a:hover { text-decoration: none; } +table.cm-mvea td { + width: 25%; +} +table.cm-mvea td:first-child { + width: 50%; +} .field-data-container .id-col { text-align: right; padding-right: 1em; diff --git a/app/webroot/css/co-responsive.css b/app/webroot/css/co-responsive.css index cd479c248..9b2e3a21e 100644 --- a/app/webroot/css/co-responsive.css +++ b/app/webroot/css/co-responsive.css @@ -112,22 +112,27 @@ } /* PERSON CANVAS / CARDS */ .co-cards .field-data-container { - display: grid; - grid-template-columns: 1fr 1fr; - align-items: center; - min-height: 2.5em; + vertical-align: center; + /*display: grid;*/ + /*grid-template-columns: 1fr 1fr;*/ + /*align-items: center;*/ + /*min-height: 2.5em;*/ + } + .co-cards th { + font-size: 0.8rem; + padding: 0.25rem 0.75rem; } .co-cards .cm-mvea-with-eis .field-data-container { - grid-template-columns: 2fr 100px 1fr; + /*grid-template-columns: 2fr 100px 1fr;*/ } .co-cards .field-data.data-eis { - padding: 0.25em 0; + /*padding: 0.25em 0;*/ } .co-cards .field-data.data-eis .badge { margin: 0; } #mvea-canvas-roles .field-data-container { - grid-template-columns: 1fr 1fr 2fr auto; + /*grid-template-columns: 1fr 1fr 2fr auto;*/ } /* PAGINATION */ #pagination { diff --git a/app/webroot/js/comanage/components/mvea/mvea-item.js b/app/webroot/js/comanage/components/mvea/mvea-item.js index eccc3056e..30e74acd1 100644 --- a/app/webroot/js/comanage/components/mvea/mvea-item.js +++ b/app/webroot/js/comanage/components/mvea/mvea-item.js @@ -73,8 +73,8 @@ export default { }, template: ` -
  • -
    + + -
    -
    + + + class="mvea-eis"> {{ getEisDescription(this.mvea?.source_name?.external_identity_id) }} -
    -
    -
    - {{ this.txt['field.primary'] }} - {{ this.mvea.type.display_name }} - {{ calcLangHR(this.mvea.language) }} -
    + + + {{ this.mvea.type.display_name }} -
    -
  • + + -
  • -
    + + {{ this.mvea.mail }} + {{ this.txt['field.unverified'] }} -
    -
    + + + class="mvea-eis"> {{ getEisDescription(this.mvea?.source_email_address?.external_identity_id) }} -
    -
    - {{ this.txt['field.unverified'] }} - {{ this.mvea.type.display_name }} -
    -
  • + + + {{ this.mvea.type.display_name }} + + -
  • -
    - {{ this.mvea.identifier }} + + + {{ this.mvea.identifier }} + {{ this.txt['enumeration.SuspendableStatusEnum.S'] }} + -
    -
    + + + class="mvea-eis"> {{ getEisDescription(mvea?.source_identifier?.external_identity_id) }} -
    -
    - {{ this.txt['enumeration.SuspendableStatusEnum.S'] }} - - {{ this.mvea.type.display_name }} -
    -
  • + + + {{ this.mvea.type.display_name }} + + -
  • - -
    + + + class="mvea-eis"> {{ getEisDescription(this.mvea?.source_ad_hoc_attribute?.external_identity_id) }} -
    -
    - {{ this.mvea.tag }} -
    -
  • + + + {{ this.mvea.tag }} + + -
  • - -
    + + + class="mvea-eis"> {{ getEisDescription(mvea?.source_address?.external_identity_id) }} -
    -
    - {{ this.mvea.type.display_name }} -
    -
  • + + + {{ this.mvea.type.display_name }} + + -
  • - -
    + + + class="mvea-eis"> {{ getEisDescription(mvea?.source_telephone_number?.external_identity_id) }} -
    -
    - {{ this.mvea.type.display_name }} -
    -
  • + + + {{ this.mvea.type.display_name }} + + -
  • - -
    + + + class="mvea-eis"> {{ getEisDescription(mvea?.source_url?.external_identity_id) }} -
    -
    - {{ this.mvea.type.display_name }} -
    -
  • + + + {{ this.mvea.type.display_name }} + + -
  • - -
    + + + class="mvea-eis"> {{ getEisDescription(mvea?.source_pronoun?.external_identity_id) }} -
    -
    - {{ this.mvea.type.display_name }} -
    -
  • + + + {{ this.mvea.type.display_name }} + + ` } diff --git a/app/webroot/js/comanage/components/mvea/mveas.js b/app/webroot/js/comanage/components/mvea/mveas.js index 908c32e77..b2f96ceb5 100644 --- a/app/webroot/js/comanage/components/mvea/mveas.js +++ b/app/webroot/js/comanage/components/mvea/mveas.js @@ -58,7 +58,7 @@ export default { } }, template: ` - + + + + + + + + + + {{ this.txt['information.global.attributes.none'] }} + + + ` } \ No newline at end of file