Add requesting entity to review page

This commit is contained in:
zandercymatics 2024-10-23 13:14:03 -06:00
parent 514cd8af31
commit 263ec02bc3
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 12 additions and 4 deletions

View file

@ -22,7 +22,14 @@
{% input_with_errors forms.0.is_suborganization %}
{% endwith %}
{% endwith %}
{% input_with_errors forms.1.is_custom_suborganization %}
{% comment %} Add an invisible form element to track whether the custom value "other"
was selected or not. This allows for persistence across page reloads without using session variables.
{% endcomment %}
{% with add_group_class="display-none" %}
{% input_with_errors forms.1.is_custom_suborganization %}
{% endwith %}
<div id="requesting-entity-fieldset__suborganization" class="margin-top-4">
<h2>Add suborganization information</h2>
<p>

View file

@ -8,9 +8,10 @@
{% endif %}
{% if step == Step.REQUESTING_ENTITY %}
{% if domain_request.organization_name %}
{% with title=form_titles|get_item:step value=domain_request %}
{% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=is_editable edit_link=domain_request_url address='true' %}
{% if domain_request.requested_suborganization and domain_request.suborganization_city and domain_request.suborganization_state_territory %}
{% with title=form_titles|get_item:step value=domain_request.requested_suborganization %}
{% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=is_editable edit_link=domain_request_url %}
<p class="margin-top-0 margin-bottom-0">{{domain_request.suborganization_city}}, {{domain_request.suborganization_state_territory}}</p>
{% endwith %}
{% else %}
{% with title=form_titles|get_item:step value="<span class='text-bold text-secondary-dark'>Incomplete</span>"|safe %}