mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 14:28:25 -04:00
Merge pull request #711 from alphagov/template-guidance
Give users more help about what to put in their templates
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<details>
|
||||
<summary class="button tertiary-button">Message length</summary>
|
||||
<div id="guidance-personalisation">
|
||||
<p>
|
||||
If your message is long then it will
|
||||
cost more.
|
||||
</p>
|
||||
<p>
|
||||
See <a href="{{ url_for('.pricing') }}">pricing</a> for details.
|
||||
</p>
|
||||
</div>
|
||||
</details>
|
||||
8
app/templates/partials/templates/guidance-links.html
Normal file
8
app/templates/partials/templates/guidance-links.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<details>
|
||||
<summary class="button tertiary-button">Links and URLs</summary>
|
||||
<div id="guidance-personalisation">
|
||||
<p>
|
||||
Always use full URLs, starting with https://
|
||||
</p>
|
||||
</div>
|
||||
</details>
|
||||
@@ -0,0 +1,14 @@
|
||||
<details>
|
||||
<summary class="button tertiary-button">Personalisation</summary>
|
||||
<div id="guidance-personalisation">
|
||||
<p>
|
||||
Use double brackets to add personalisation.
|
||||
</p>
|
||||
<p>
|
||||
Correct: ((name))
|
||||
</p>
|
||||
<p>
|
||||
Incorrect: ((Helen))
|
||||
</p>
|
||||
</div>
|
||||
</details>
|
||||
@@ -16,9 +16,9 @@
|
||||
<div class="grid-row">
|
||||
<div class="column-two-thirds">
|
||||
{{ textbox(form.name, width='1-1', hint='Your recipients won’t see this', rows=10) }}
|
||||
{{ textbox(form.subject, width='1-1', highlight_tags=True, rows=2) }}
|
||||
</div>
|
||||
<div class="column-two-thirds">
|
||||
{{ textbox(form.subject, width='1-1', highlight_tags=True, rows=2) }}
|
||||
{{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=8) }}
|
||||
{{ page_footer(
|
||||
'Save',
|
||||
@@ -26,13 +26,11 @@
|
||||
delete_link_text='Delete this template'
|
||||
) }}
|
||||
</div>
|
||||
<div class="column-one-third">
|
||||
<label for='template_content' class='placeholder-hint banner-mode' data-textboxes-selector='#template_content,#subject' data-target-textbox-selector="#template_content">
|
||||
<div class="" id="placeholder-hint" aria-live="polite">
|
||||
<p>Anything in ((double brackets)) gets replaced when you send this message</p>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<aside class="column-one-third">
|
||||
<h2 style="margin: 0 0 5px 0;">Help</h2>
|
||||
{% include "partials/templates/guidance-personalisation.html" %}
|
||||
{% include "partials/templates/guidance-links.html" %}
|
||||
</aside>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -18,20 +18,19 @@
|
||||
{{ 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') }}
|
||||
{{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=5) }}
|
||||
{{ 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>
|
||||
<div class="column-one-third">
|
||||
<label for='template_content' class='placeholder-hint banner-mode' data-textboxes-selector='#template_content' data-target-textbox-selector="#template_content">
|
||||
<div class="" id="placeholder-hint" aria-live="polite">
|
||||
<p>Anything in ((double brackets)) gets replaced when you send this message</p>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<aside class="column-one-third">
|
||||
<h2 style="margin: 0 0 5px 0;">Help</h2>
|
||||
{% include "partials/templates/guidance-personalisation.html" %}
|
||||
{% include "partials/templates/guidance-links.html" %}
|
||||
{% include "partials/templates/guidance-character-count.html" %}
|
||||
</aside>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user