Add context to template page 'Send' and 'Edit'

This commit is contained in:
Tom Byers
2020-08-05 10:51:37 +01:00
parent 334c2677dc
commit a52aa406df

View File

@@ -39,7 +39,7 @@
{% if current_user.has_permissions('manage_templates') %}
<div class="govuk-grid-column-one-half">
<a href="{{ url_for(".edit_service_template", service_id=current_service.id, template_id=template.id) }}" class="govuk-link govuk-link--no-visited-state pill-separate-item">
Edit
Edit<span class="govuk-visually-hidden"> this template</span>
</a>
</div>
{% endif %}
@@ -47,7 +47,7 @@
{% if current_user.has_permissions('send_messages', restrict_admin_usage=True) %}
<div class="govuk-grid-column-one-half">
<a href="{{ url_for(".set_sender", service_id=current_service.id, template_id=template.id) }}" class="govuk-link govuk-link--no-visited-state pill-separate-item">
Send
Send<span class="govuk-visually-hidden"> a message using this template</span>
</a>
</div>
{% endif %}