From 1bfb7a8a3969faf1678093a26844c494aa30f4db Mon Sep 17 00:00:00 2001 From: sophia-massie <96220951+sophia-massie@users.noreply.github.com> Date: Wed, 8 Nov 2023 11:42:03 -0600 Subject: [PATCH] Task/wp 372 admin except extend entity name (#241) * task/wp-372-Admin-Except-Extend-Entity-Name - Updated query for get_all_exceptions and get_all_extensions - Updated view and template for extensions to pull entity name from submitters table * Left org name as the parameter for filter but changed value to entity_name from submitters table * Updated to entity organization so users will know to use filter by organization * Allow None to be an outcome listed in the edit modals but only if it's a NoneType object and not a string --------- Co-authored-by: edmondsgarrett <43251554+edmondsgarrett@users.noreply.github.com> --- .../static/admin_exception/css/table.css | 7 ++----- .../templates/edit_exception_modal.html | 6 +++--- .../templates/list_admin_exception.html | 2 +- .../templates/view_admin_exception_modal.html | 4 ++-- apcd-cms/src/apps/admin_exception/views.py | 17 ++++++++--------- .../static/admin_extension/css/table.css | 7 ++----- .../templates/edit_extension_modal.html | 8 +++++--- .../templates/list_admin_extension.html | 2 +- .../templates/view_admin_extension_modal.html | 6 +++--- apcd-cms/src/apps/admin_extension/views.py | 14 +++++++------- apcd-cms/src/apps/utils/apcd_database.py | 4 ++-- 11 files changed, 36 insertions(+), 41 deletions(-) diff --git a/apcd-cms/src/apps/admin_exception/static/admin_exception/css/table.css b/apcd-cms/src/apps/admin_exception/static/admin_exception/css/table.css index dbb94a2a..fca1dec9 100644 --- a/apcd-cms/src/apps/admin_exception/static/admin_exception/css/table.css +++ b/apcd-cms/src/apps/admin_exception/static/admin_exception/css/table.css @@ -1,16 +1,13 @@ -.modal-cell { - padding-left: 0px; -} /* SEE: https://css-tricks.com/responsive-data-tables/ */ @media (max-width: 767px) { /* To label the cells */ /* RFE: Add `data-label` to each cell so we can use `attr(data-label)` */ .exception-table td:nth-of-type(1):before { content: "Created"; } - .exception-table td:nth-of-type(2):before { content: "Organization"; } + .exception-table td:nth-of-type(2):before { content: "Entity Organization"; } .exception-table td:nth-of-type(3):before { content: "Requestor Name"; } .exception-table td:nth-of-type(4):before { content: "Exception Type"; } .exception-table td:nth-of-type(5):before { content: "Outcome"; } .exception-table td:nth-of-type(6):before { content: "Status"; } - .exception-table td:nth-of-type(7):before { content: "Actions"; } + .exception-table td:nth-of-type(7):before {content:"Actions";} } diff --git a/apcd-cms/src/apps/admin_exception/templates/edit_exception_modal.html b/apcd-cms/src/apps/admin_exception/templates/edit_exception_modal.html index 5a938335..7ded5ab4 100644 --- a/apcd-cms/src/apps/admin_exception/templates/edit_exception_modal.html +++ b/apcd-cms/src/apps/admin_exception/templates/edit_exception_modal.html @@ -7,7 +7,7 @@