Fixed summary sections to meet design requirements

This commit is contained in:
CocoByte 2024-04-11 13:24:17 -06:00
parent e2f975f04f
commit 3dfdb3bfa1
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
3 changed files with 53 additions and 6 deletions

View file

@ -156,10 +156,7 @@
{% if step == Step.ADDITIONAL_DETAILS %}
{% namespaced_url 'domain-request' step as domain_request_url %}
{% with title=form_titles|get_item:step value=domain_request.anything_else|default:"No" %}
{% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=True edit_link=domain_request_url %}
{% endwith %}
{% include "includes/summary_additional_details.html" with domainRequest=DomainRequest %}
{% endif %}

View file

@ -116,7 +116,7 @@
{% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.no_other_contacts_rationale heading_level=heading_level %}
{% endif %}
{% include "includes/summary_item.html" with title='Anything else?' value=DomainRequest.anything_else|default:"No" heading_level=heading_level %}
{% include "includes/summary_additional_details.html" with domainRequest=DomainRequest %}
{% endwith %}
</div>

View file

@ -0,0 +1,50 @@
{% load static url_helpers %}
{# TODO (future ticket?): create a template that allows us to easily display nested forms.
It is a little complex because we will have to formulate how to aggregate form pairings.
(eg. yes/no radio forms plus the information they toggle need to be linked somehow
and condense down into one subsection)}
<section class="summary-item margin-top-3">
<hr class="" aria-hidden="true" />
<div class="display-flex flex-justify">
<div>
<h2
class="summary-item__title
font-sans-md
text-primary-dark text-semibold
margin-top-0 margin-bottom-05
padding-right-1"
>
Additional Details
</h2>
{% if domainRequest %}
<dl class="usa-list usa-list--unstyled margin-top-0">
<dt>
CISA regions representative
</dt>
<dd>
{% if domainRequest.has_cisa_representative %}
domainRequest.cisa_representative_email
{% else %}
(none)
{% endif %}
</dd>
<dt>
Anything else
</dt>
<dd>
{% if domainRequest.has_anything_else_text %}
domainRequest.anything_else
{% else %}
No
{% endif %}
</dd>
</dl>
{% else %}
ERROR Please contact technical support/dev
{% endif %}
</div>
</div>
</section>