mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-03 17:01:26 -05:00
There is a check that the template can not be created as priority if the user is not a platform admin. There is a check that the template can not change the `priority` unless they are a platform admin.
42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/textbox.html" import textbox %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
|
||
{% block page_title %}
|
||
{{ heading_action }} text message template – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">
|
||
{{ heading_action }} text message template
|
||
</h1>
|
||
|
||
<form method="post">
|
||
<div class="grid-row">
|
||
<div class="column-two-thirds">
|
||
{{ textbox(form.name, width='1-1', hint='Your recipients won’t see this') }}
|
||
</div>
|
||
<div class="column-two-thirds">
|
||
{{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=5) }}
|
||
{% if current_user.has_permissions([], admin_override=True) %}
|
||
{{ textbox(form.process_type, width='1-1') }}
|
||
{% endif %}
|
||
{{ page_footer(
|
||
'Save',
|
||
delete_link=url_for('.delete_service_template', service_id=current_service.id, template_id=template_id) if template_id or None,
|
||
delete_link_text='Delete this template'
|
||
) }}
|
||
</div>
|
||
<aside class="column-whole">
|
||
{% include "partials/templates/guidance-personalisation.html" %}
|
||
{% include "partials/templates/guidance-optional-content.html" %}
|
||
{% include "partials/templates/guidance-links.html" %}
|
||
{% include "partials/templates/guidance-character-count.html" %}
|
||
</aside>
|
||
</div>
|
||
</form>
|
||
|
||
|
||
{% endblock %}
|