Fix SMS Senders page

This commit is contained in:
Tom Byers
2020-08-27 15:58:06 +01:00
parent 17f74cf621
commit 047a65a276

View File

@@ -18,23 +18,29 @@
<div class="user-list"> <div class="user-list">
{% if not current_service.sms_senders %} {% if not current_service.sms_senders %}
<div class="user-list-item"> <div class="user-list-item">
<span class="hint">You have not added any text message senders yet</span> <p class="govuk-body user-list-item-blank hint">You have not added any text message senders yet</p>
</div> </div>
{% endif %} {% endif %}
{% for item in current_service.sms_senders_with_hints %} {% for item in current_service.sms_senders_with_hints %}
<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.sms_sender }}</span> <div class="govuk-grid-column-three-quarters">
{% if item.hint %} <h2 class="user-list-item-heading">
&ensp; <span class="heading-small">{{ item.sms_sender }}</span>
<span class="hint"> {% if item.hint %}
{{ item.hint }} &ensp;
</span> <span class="hint">
{% endif %} {{ item.hint }}
</h2> </span>
{% if current_user.has_permissions('manage_service') %} {% endif %}
<a class="govuk-link govuk-link--no-visited-state user-list-edit-link" href="{{ url_for('.service_edit_sms_sender', service_id=current_service.id, sms_sender_id = item.id) }}">Change</a> </h2>
{% endif %} </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_sms_sender', service_id=current_service.id, sms_sender_id = item.id) }}">Change</a>
{% endif %}
</div>
</div>
{% if current_service.count_sms_senders > 1 %} {% if current_service.count_sms_senders > 1 %}
{{ api_key(item.id, name=item.sms_sender, thing="ID") }} {{ api_key(item.id, name=item.sms_sender, thing="ID") }}
{% endif %} {% endif %}