mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 14:34:10 +02:00
Add heading level option, add default value for empty values
This commit is contained in:
parent
0817064036
commit
4233c9b544
1 changed files with 58 additions and 45 deletions
|
@ -4,13 +4,22 @@
|
||||||
<hr class="" aria-hidden="true" />
|
<hr class="" aria-hidden="true" />
|
||||||
<div class="display-flex flex-justify">
|
<div class="display-flex flex-justify">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="summary-item__title
|
{% if heading_level %}
|
||||||
|
<{{ heading_level }}
|
||||||
|
{% else %}
|
||||||
|
<h2
|
||||||
|
{% endif %}
|
||||||
|
class="summary-item__title
|
||||||
font-sans-md
|
font-sans-md
|
||||||
text-primary-dark text-semibold
|
text-primary-dark text-semibold
|
||||||
margin-top-0 margin-bottom-05"
|
margin-top-0 margin-bottom-05"
|
||||||
>
|
>
|
||||||
{{ title }}
|
{{ title }}
|
||||||
|
{% if heading_level %}
|
||||||
|
</{{ heading_level }}>
|
||||||
|
{% else %}
|
||||||
</h2>
|
</h2>
|
||||||
|
{% endif %}
|
||||||
{% if address %}
|
{% if address %}
|
||||||
{% include "includes/organization_address.html" with organization=value %}
|
{% include "includes/organization_address.html" with organization=value %}
|
||||||
{% elif contact %}
|
{% elif contact %}
|
||||||
|
@ -54,8 +63,12 @@
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="margin-top-0">
|
<p class="margin-top-0 margin-bottom-0">
|
||||||
|
{% if value %}
|
||||||
{{ value }}
|
{{ value }}
|
||||||
|
{% else %}
|
||||||
|
None
|
||||||
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue