incomplete logic

This commit is contained in:
zandercymatics 2024-09-18 15:06:42 -06:00
parent 2e53ba8c51
commit 732c982caa
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
5 changed files with 14 additions and 10 deletions

View file

@ -226,6 +226,7 @@ abbr[title] {
word-break: break-word;
}
.dhs-red-50 {
.red-incomplete-text {
color: $dhs-red-50;
font-weight: bold;
}

View file

@ -7,7 +7,9 @@
</address>
{% else %}
{% if custom_text_for_value_none %}
{{ custom_text_for_value_none }}
<p class="margin-top-0 margin-bottom-0 red-incomplete-text">
{{ custom_text_for_value_none }}
</p>
{% else %}
None
{% endif %}

View file

@ -131,7 +131,7 @@
{% endblock status_blurb %}
{% block modify_request %}
{% if DomainRequest.status != 'withdrawn' or DomainRequest.status != 'rejected' %}
{% if DomainRequest.status != "started" and DomainRequest.status != 'withdrawn' and DomainRequest.status != 'rejected' %}
<p><a href="{% url 'domain-request-withdraw-confirmation' pk=DomainRequest.id %}" class="usa-button usa-button--outline withdraw_outline">
Withdraw request</a>
</p>
@ -147,7 +147,7 @@
{% block request_summary %}
{% with heading_level='h3' %}
{% with org_type=DomainRequest.get_generic_org_type_display %}
{% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level %}
{% include "includes/summary_item.html" with title='Type of organization' value=org_type heading_level=heading_level custom_text_for_value_none="Incomplete" %}
{% endwith %}
{% if DomainRequest.show_tribal_government %}

View file

@ -29,7 +29,9 @@
</address>
{% else %}
{% if custom_text_for_value_none %}
{{ custom_text_for_value_none }}
<p class="margin-top-0 margin-bottom-0 red-incomplete-text">
{{ custom_text_for_value_none }}
</p>
{% else %}
None
{% endif %}

View file

@ -43,12 +43,12 @@
{% endfor %}
</dl>
{% elif custom_text_for_value_none %}
<p class="dhs-red-50">
<p class="red-incomplete-text">
{{ custom_text_for_value_none }}
</p>
{% else %}
<p>
None
None
</p>
{% endif %}
{% endif %}
@ -101,10 +101,9 @@
{{ value }}
</p>
{% elif custom_text_for_value_none %}
<p class="margin-top-0 margin-bottom-0 dhs-red-50">
{{ value }}
<p class="margin-top-0 margin-bottom-0 red-incomplete-text">
{{ custom_text_for_value_none }}
</p>
{{ custom_text_for_value_none }}
{% else %}
None
{% endif %}