mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-19 05:53:51 -04:00
Sometimes when setting up a service you might have a few very similar templates, in which only a small amount of content. Or you might even have a few of services, which are used by different teams but have similar templates. Copy and pasting, especially from one service to another, is a pain. This commit makes it easier by allowing users to copy an existing template when choosing to add a new one, instead of starting from scratch.
44 lines
1.4 KiB
HTML
44 lines
1.4 KiB
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/textbox.html" import textbox %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
{% from "components/radios.html" import radios %}
|
||
|
||
{% block service_page_title %}
|
||
{{ heading_action }} text message template
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">
|
||
{{ heading_action }} text message template
|
||
</h1>
|
||
|
||
<form
|
||
method="post"
|
||
action="{{ url_for('.add_service_template', service_id=current_service.id, template_type=template_type) }}"
|
||
>
|
||
<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.platform_admin %}
|
||
{{ radios(form.process_type) }}
|
||
{% endif %}
|
||
{{ page_footer(
|
||
'Save'
|
||
) }}
|
||
</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 %}
|