mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-12 12:39:43 +02:00
Position edit link on the right
This commit is contained in:
parent
e49e9e706b
commit
b74dc15061
1 changed files with 56 additions and 50 deletions
|
@ -2,66 +2,72 @@
|
||||||
|
|
||||||
<section class="summary-item margin-top-3">
|
<section class="summary-item margin-top-3">
|
||||||
<hr class="" aria-hidden="true" />
|
<hr class="" aria-hidden="true" />
|
||||||
<h2 class="summary-item__title
|
<div class="display-flex flex-justify">
|
||||||
text-primary-dark text-semibold
|
<div>
|
||||||
margin-top-0 margin-bottom-05"
|
<h2 class="summary-item__title
|
||||||
>
|
text-primary-dark text-semibold
|
||||||
{{ title }}
|
margin-top-0 margin-bottom-05"
|
||||||
</h2>
|
>
|
||||||
{% if address %}
|
{{ title }}
|
||||||
{% include "includes/organization_address.html" with organization=value %}
|
</h2>
|
||||||
{% elif contact %}
|
{% if address %}
|
||||||
{% if list %}
|
{% include "includes/organization_address.html" with organization=value %}
|
||||||
{% if value|length == 1 %}
|
{% elif contact %}
|
||||||
{% include "includes/contact.html" with contact=value|first %}
|
{% if list %}
|
||||||
|
{% if value|length == 1 %}
|
||||||
|
{% include "includes/contact.html" with contact=value|first %}
|
||||||
|
{% else %}
|
||||||
|
<ul class="usa-list usa-list--unstyled margin-top-0">
|
||||||
|
{% for item in value %}
|
||||||
|
<li>
|
||||||
|
<p class="text-semibold margin-top-1 margin-bottom-0">
|
||||||
|
Contact {{forloop.counter}}
|
||||||
|
</p>
|
||||||
|
{% include "includes/contact.html" with contact=item %}</li>
|
||||||
|
{% empty %}
|
||||||
|
<li>None</li>
|
||||||
|
{% endfor %}</ul></p>
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<ul class="usa-list usa-list--unstyled margin-top-0">
|
{% include "includes/contact.html" with contact=value %}
|
||||||
|
{% endif %}
|
||||||
|
{% elif list %}
|
||||||
|
{% if value|length == 1 %}
|
||||||
|
{% if users %}
|
||||||
|
<p class="margin-top-0">{{ value.0.user.email }} </p>
|
||||||
|
{% else %}
|
||||||
|
<p class="margin-top-0">{{ value | first }} </p>
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
<ul class="usa-list margin-top-0">
|
||||||
{% for item in value %}
|
{% for item in value %}
|
||||||
<li>
|
{% if users %}
|
||||||
<p class="text-semibold margin-top-1 margin-bottom-0">
|
<li>{{ item.user.email }}</li>
|
||||||
Contact {{forloop.counter}}
|
{% else %}
|
||||||
</p>
|
<li>{{ item }}</li>
|
||||||
{% include "includes/contact.html" with contact=item %}</li>
|
{% endif %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<li>None</li>
|
<li>None</li>
|
||||||
{% endfor %}</ul></p>
|
{% endfor %}</ul></p>
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% include "includes/contact.html" with contact=value %}
|
<p class="margin-top-0">
|
||||||
|
{{ value }}
|
||||||
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif list %}
|
</div>
|
||||||
{% if value|length == 1 %}
|
|
||||||
{% if users %}
|
|
||||||
<p class="margin-top-0">{{ value.0.user.email }} </p>
|
|
||||||
{% else %}
|
|
||||||
<p class="margin-top-0">{{ value | first }} </p>
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<ul class="usa-list margin-top-0">
|
|
||||||
{% for item in value %}
|
|
||||||
{% if users %}
|
|
||||||
<li>{{ item.user.email }}</li>
|
|
||||||
{% else %}
|
|
||||||
<li>{{ item }}</li>
|
|
||||||
{% endif %}
|
|
||||||
{% empty %}
|
|
||||||
<li>None</li>
|
|
||||||
{% endfor %}</ul></p>
|
|
||||||
</ul>
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<p class="margin-top-0">
|
|
||||||
{{ value }}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if edit_link %}
|
{% if edit_link %}
|
||||||
<a
|
<div class="text-right">
|
||||||
href="{{ edit_link }}"
|
<a
|
||||||
>
|
href="{{ edit_link }}"
|
||||||
Edit<span class="sr-only"> {{ title }}</span>
|
class="usa-link"
|
||||||
</a>
|
>
|
||||||
|
Edit<span class="sr-only"> {{ title }}</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue