Merge pull request #827 from alphagov/move-guidance-underneath

Move guidance underneath
This commit is contained in:
Chris Hill-Scott
2016-08-05 12:14:17 +01:00
committed by GitHub
6 changed files with 60 additions and 40 deletions
@@ -1,12 +1,8 @@
<details> <h2 class="heading-medium">Message length</h2>
<summary class="button tertiary-button">Message length</summary> <p>
<div id="guidance-personalisation"> If your message is long then it will
<p> cost more.
If your message is long then it will </p>
cost more. <p>
</p> See <a href="{{ url_for('.pricing') }}">pricing</a> for details.
<p> </p>
See <a href="{{ url_for('.pricing') }}">pricing</a> for details.
</p>
</div>
</details>
@@ -0,0 +1,27 @@
<h2 class="heading-medium">Formatting</h2>
<p>
To put a title in your template, use a hash:
</p>
<div class="panel panel-border-wide">
<p>
# This is a title
</p>
</div>
<p>
To make bullet points, use asterisks:
</p>
<div class="panel panel-border-wide">
<p>
* point 1<br/>
* point 2<br/>
* point 3<br/>
</p>
</div>
<p>
To add a callout, use a caret:
</p>
<div class="panel panel-border-wide">
<p>
^ You must tell us if your circumstances change
</p>
</div>
@@ -1,8 +1,9 @@
<details> <h2 class="heading-medium">Links and URLs</h2>
<summary class="button tertiary-button">Links and URLs</summary> <p>
<div id="guidance-personalisation"> Always use full URLs, starting with https://
<p> </p>
Always use full URLs, starting with https:// <div class="panel panel-border-wide">
</p> <p>
</div> Apply now at https://www.gov.uk/example
</details> </p>
</div>
@@ -1,14 +1,11 @@
<details> <h2 class="heading-medium">
<summary class="button tertiary-button">Personalisation</summary> Personalisation
<div id="guidance-personalisation"> </h2>
<p> <p>
Use double brackets to add personalisation. Use double brackets to personalise your message:
</p> </p>
<p> <div class="panel panel-border-wide">
Correct: ((name)) <p>
</p> Hello ((first name)), your reference is ((ref number))
<p> </p>
Incorrect: ((Helen)) </div>
</p>
</div>
</details>
+4 -4
View File
@@ -14,11 +14,11 @@
<form method="post"> <form method="post">
<div class="grid-row"> <div class="grid-row">
<div class="column-two-thirds"> <div class="column-three-quarters">
{{ textbox(form.name, width='1-1', hint='Your recipients wont see this', rows=10) }} {{ textbox(form.name, width='1-1', hint='Your recipients wont see this', rows=10) }}
{{ textbox(form.subject, width='1-1', highlight_tags=True, rows=2) }} {{ textbox(form.subject, width='1-1', highlight_tags=True, rows=2) }}
</div> </div>
<div class="column-two-thirds"> <div class="column-three-quarters">
{{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=8) }} {{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=8) }}
{{ page_footer( {{ page_footer(
'Save', 'Save',
@@ -26,8 +26,8 @@
delete_link_text='Delete this template' delete_link_text='Delete this template'
) }} ) }}
</div> </div>
<aside class="column-one-third"> <aside class="column-whole">
<h2 style="margin: 0 0 5px 0;">Help</h2> {% include "partials/templates/guidance-formatting.html" %}
{% include "partials/templates/guidance-personalisation.html" %} {% include "partials/templates/guidance-personalisation.html" %}
{% include "partials/templates/guidance-links.html" %} {% include "partials/templates/guidance-links.html" %}
</aside> </aside>
+1 -2
View File
@@ -25,8 +25,7 @@
delete_link_text='Delete this template' delete_link_text='Delete this template'
) }} ) }}
</div> </div>
<aside class="column-one-third"> <aside class="column-whole">
<h2 style="margin: 0 0 5px 0;">Help</h2>
{% include "partials/templates/guidance-personalisation.html" %} {% include "partials/templates/guidance-personalisation.html" %}
{% include "partials/templates/guidance-links.html" %} {% include "partials/templates/guidance-links.html" %}
{% include "partials/templates/guidance-character-count.html" %} {% include "partials/templates/guidance-character-count.html" %}