show requested domain and alternate domains on manage screen; formatting conditional based on existence of alternative domains; check added for alternative domains in test_views

This commit is contained in:
David Kennedy 2023-08-30 07:02:18 -04:00
parent f5300053dc
commit 1a81d75170
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 5 additions and 16 deletions

View file

@ -84,7 +84,11 @@
{% endif %}
{% if domainapplication.requested_domain %}
{% include "includes/summary_item.html" with title='.gov domain' value=domainapplication requested_domain='true' heading_level=heading_level %}
{% include "includes/summary_item.html" with title='.gov domain' value=domainapplication.requested_domain heading_level=heading_level %}
{% endif %}
{% if domainapplication.alternative_domains.all %}
{% include "includes/summary_item.html" with title='Alternative domains' value=domainapplication.alternative_domains.all list='true' heading_level=heading_level %}
{% endif %}
{% if domainapplication.purpose %}

View file

@ -43,21 +43,6 @@
{% else %}
{% include "includes/contact.html" with contact=value %}
{% endif %}
{% elif requested_domain %}
{% if value.alternative_domains.all %}
<ul class="usa-list usa-list--unstyled margin-bottom-105">
<li>{{ value.requested_domain.name|default:"Incomplete" }}</li>
</ul>
<ul class="usa-list usa-list--unstyled">
{% for domain in value.alternative_domains.all %}
<li>{{ domain.website }}</li>
{% endfor %}
</ul>
{% else %}
<p class="margin-top-0 margin-bottom-0">
{{ value.requested_domain }}
</p>
{% endif %}
{% elif list %}
{% if value|length == 1 %}
{% if users %}