mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 04:48:24 -04:00
Fix email reply-to addresses page
This commit is contained in:
@@ -18,24 +18,34 @@
|
|||||||
<div class="user-list">
|
<div class="user-list">
|
||||||
{% if not current_service.email_reply_to_addresses %}
|
{% if not current_service.email_reply_to_addresses %}
|
||||||
<div class="user-list-item">
|
<div class="user-list-item">
|
||||||
<span class="hint">You have not added any reply-to email addresses yet</span>
|
<p class="govuk-body user-list-item-blank hint">You have not added any reply-to email addresses yet</p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for item in current_service.email_reply_to_addresses %}
|
{% for item in current_service.email_reply_to_addresses %}
|
||||||
<div class="user-list-item">
|
<div class="user-list-item">
|
||||||
<h2 class="user-list-item-heading">
|
<div class="govuk-grid-row">
|
||||||
<span class="heading-small">{{ item.email_address }}</span> <span class="hint">
|
<div class="govuk-grid-column-three-quarters">
|
||||||
{%- if item.is_default -%}
|
<h2 class="user-list-item-heading">
|
||||||
(default)
|
<span class="heading-small">{{ item.email_address }}</span> <span class="hint">
|
||||||
|
{%- if item.is_default -%}
|
||||||
|
(default)
|
||||||
|
{% endif %}
|
||||||
|
</span>
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
<div class="govuk-grid-column-one-quarter">
|
||||||
|
{% if current_user.has_permissions('manage_service') %}
|
||||||
|
<a class="govuk-link govuk-link--no-visited-state user-list-edit-link" href="{{ url_for('.service_edit_email_reply_to', service_id =current_service.id, reply_to_email_id = item.id) }}">Change</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</div>
|
||||||
</h2>
|
</div>
|
||||||
{% if current_user.has_permissions('manage_service') %}
|
<div class="govuk-grid-row">
|
||||||
<a class="govuk-link govuk-link--no-visited-state user-list-edit-link" href="{{ url_for('.service_edit_email_reply_to', service_id =current_service.id, reply_to_email_id = item.id) }}">Change</a>
|
<div class="govuk-grid-column-full">
|
||||||
{% endif %}
|
{% if current_service.count_email_reply_to_addresses > 1 %}
|
||||||
{% if current_service.count_email_reply_to_addresses > 1 %}
|
{{ api_key(item.id, name=item.email_address, thing="ID") }}
|
||||||
{{ api_key(item.id, name=item.email_address, thing="ID") }}
|
{% endif %}
|
||||||
{% endif %}
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user