From 80ab290ce3c361f3df55f10fa7f9fe1f5704cbe0 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Wed, 13 Jul 2022 14:13:45 -0400 Subject: [PATCH] Expose entity ID under add/edit forms and views. (CFM-193) --- app/templates/Standard/add-edit-view.php | 2 ++ app/webroot/css/co-base.css | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/app/templates/Standard/add-edit-view.php b/app/templates/Standard/add-edit-view.php index 7f8f43ef6..dc90552c2 100644 --- a/app/templates/Standard/add-edit-view.php +++ b/app/templates/Standard/add-edit-view.php @@ -134,6 +134,8 @@ } } +print '
  • ' . $vv_entity_id . '
  • '; + if($vv_action == 'add' || $vv_action == 'edit') { // We don't want/need to output these for view actions diff --git a/app/webroot/css/co-base.css b/app/webroot/css/co-base.css index 9feb3775a..855c3b0fd 100644 --- a/app/webroot/css/co-base.css +++ b/app/webroot/css/co-base.css @@ -1252,6 +1252,14 @@ ul.form-list .cm-time-picker-vals li { .v-leave-to { opacity: 0; } +/* ENTITY ID under each Edit/View Form/List */ +#cm-entity-id { + position: absolute; + border: none; + right: 2.5em; + color: var(--cmg-color-gray-003); + background-color: unset; +} /* DIALOG BOX */ #dialog .modal-header { background-color: var(--cmg-color-lightgray-004);