Skip to content

Commit

Permalink
Expose entity ID under add/edit forms and views. (CFM-193)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen committed Jul 21, 2022
1 parent dc90e61 commit c2a2615
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/templates/Standard/add-edit-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@
}
}

print '<li id="cm-entity-id">' . $vv_entity_id . '</li>';

if($vv_action == 'add' || $vv_action == 'edit') {
// We don't want/need to output these for view actions

Expand Down
8 changes: 8 additions & 0 deletions app/webroot/css/co-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c2a2615

Please sign in to comment.