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; word-break: break-word;
} }
.dhs-red-50 { .red-incomplete-text {
color: $dhs-red-50; color: $dhs-red-50;
font-weight: bold;
} }

View file

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

View file

@ -131,7 +131,7 @@
{% endblock status_blurb %} {% endblock status_blurb %}
{% block modify_request %} {% 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"> <p><a href="{% url 'domain-request-withdraw-confirmation' pk=DomainRequest.id %}" class="usa-button usa-button--outline withdraw_outline">
Withdraw request</a> Withdraw request</a>
</p> </p>
@ -147,7 +147,7 @@
{% block request_summary %} {% block request_summary %}
{% with heading_level='h3' %} {% with heading_level='h3' %}
{% with org_type=DomainRequest.get_generic_org_type_display %} {% 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 %} {% endwith %}
{% if DomainRequest.show_tribal_government %} {% if DomainRequest.show_tribal_government %}

View file

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

View file

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