diff --git a/src/registrar/admin.py b/src/registrar/admin.py index 72ba29db4..cc19d4a10 100644 --- a/src/registrar/admin.py +++ b/src/registrar/admin.py @@ -1285,6 +1285,7 @@ class DomainRequestAdmin(ListHeaderAdmin): "no_other_contacts_rationale", "anything_else", "is_policy_acknowledged", + "cisa_representative_email", ] autocomplete_fields = [ "approved_domain", diff --git a/src/registrar/assets/js/get-gov.js b/src/registrar/assets/js/get-gov.js index 3c1b1099f..4cefd798b 100644 --- a/src/registrar/assets/js/get-gov.js +++ b/src/registrar/assets/js/get-gov.js @@ -213,17 +213,21 @@ function HookupYesNoListener(radioButtonName, elementIdToShowIfYes, elementIdToS // Check if the element exists before accessing its value let selectedValue = radioButtonChecked ? radioButtonChecked.value : null; - switch (selectedValue) { - case 'True': - toggleTwoDomElements(elementIdToShowIfYes, elementIdToShowIfNo, 1); - break; + if (elementIdToShowIfYes && elementIdToShowIfNo){ + switch (selectedValue) { + case 'True': + toggleTwoDomElements(elementIdToShowIfYes, elementIdToShowIfNo, 1); + break; - case 'False': - toggleTwoDomElements(elementIdToShowIfYes, elementIdToShowIfNo, 2); - break; + case 'False': + toggleTwoDomElements(elementIdToShowIfYes, elementIdToShowIfNo, 2); + break; - default: - toggleTwoDomElements(elementIdToShowIfYes, elementIdToShowIfNo, 0); + default: + toggleTwoDomElements(elementIdToShowIfYes, elementIdToShowIfNo, 0); + } + }else { + console.log("No elements to show") } } @@ -833,4 +837,4 @@ function hideDeletedForms() { */ (function cisaRepresentativesFormListener() { HookupYesNoListener("additional_details-has_cisa_representative",'cisa-representative', null) -})(); \ No newline at end of file +})(); diff --git a/src/registrar/templates/domain_request_review.html b/src/registrar/templates/domain_request_review.html index 569fd717c..ce061b321 100644 --- a/src/registrar/templates/domain_request_review.html +++ b/src/registrar/templates/domain_request_review.html @@ -156,7 +156,19 @@ {% if step == Step.ADDITIONAL_DETAILS %} - {% include "includes/summary_additional_details.html" with domainRequest=domain_request %} + {% namespaced_url 'domain-request' step as domain_request_url %} + {% with title=form_titles|get_item:step value=domain_request.requested_domain.name|default:"Incomplete" %} + {% include "includes/summary_item.html" with title=title sub_header_text='CISA regions representative' value=domain_request.cisa_representative_email heading_level=heading_level editable=True edit_link=domain_request_url %} + {% endwith %} + +