From bc715b3dd8c737c47a38fbaa7e4b3393a2df9c76 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 14 Jul 2016 16:52:53 +0100 Subject: [PATCH] =?UTF-8?q?Add=20Gwen=E2=80=99s=20initial=20guidance=20abo?= =?UTF-8?q?ut=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is based on some work Gwen did for Civil Service Digital. Let’s get it in for now so that we have a starting point from which to improve. This specifically doesn’t reference ‘optional’ placeholders because I don’t know how best to explain those yet. --- .../templates/guidance-formatting.html | 27 +++++++++++++++++++ .../partials/templates/guidance-links.html | 5 ++++ .../templates/guidance-personalisation.html | 13 +++++---- app/templates/views/edit-email-template.html | 5 ++-- 4 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 app/templates/partials/templates/guidance-formatting.html diff --git a/app/templates/partials/templates/guidance-formatting.html b/app/templates/partials/templates/guidance-formatting.html new file mode 100644 index 000000000..c17fbb452 --- /dev/null +++ b/app/templates/partials/templates/guidance-formatting.html @@ -0,0 +1,27 @@ +

Formatting

+

+ To put a title in your template, use a hash: +

+
+

+ # This is a title +

+
+

+ To make bullet points, use asterisks: +

+
+

+ * point 1
+ * point 2
+ * point 3
+

+
+

+ To add a callout, use a caret: +

+
+

+ ^ You must tell us if your circumstances change +

+
diff --git a/app/templates/partials/templates/guidance-links.html b/app/templates/partials/templates/guidance-links.html index c53dcca4a..34ff7cf82 100644 --- a/app/templates/partials/templates/guidance-links.html +++ b/app/templates/partials/templates/guidance-links.html @@ -2,3 +2,8 @@

Always use full URLs, starting with https://

+
+

+ Apply now at https://www.gov.uk/example +

+
diff --git a/app/templates/partials/templates/guidance-personalisation.html b/app/templates/partials/templates/guidance-personalisation.html index 0fa4f087a..bc3c44d91 100644 --- a/app/templates/partials/templates/guidance-personalisation.html +++ b/app/templates/partials/templates/guidance-personalisation.html @@ -2,11 +2,10 @@ Personalisation

- Use double brackets to add personalisation. -

-

- Correct: ((name)) -

-

- Incorrect: ((Helen)) + Use double brackets to personalise your message:

+
+

+ Hello ((first name)), your reference is ((ref number)) +

+
diff --git a/app/templates/views/edit-email-template.html b/app/templates/views/edit-email-template.html index dd94b8962..669b0e278 100644 --- a/app/templates/views/edit-email-template.html +++ b/app/templates/views/edit-email-template.html @@ -14,11 +14,11 @@
-
+
{{ 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) }}
-
+
{{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=8) }} {{ page_footer( 'Save', @@ -27,6 +27,7 @@ ) }}