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

View File

@@ -1,12 +1,8 @@
<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>
<h2 class="heading-medium">Message length</h2>
<p>
If your message is long then it will
cost more.
</p>
<p>
See <a href="{{ url_for('.pricing') }}">pricing</a> for details.
</p>

View File

@@ -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>

View File

@@ -1,8 +1,9 @@
<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>
<h2 class="heading-medium">Links and URLs</h2>
<p>
Always use full URLs, starting with https://
</p>
<div class="panel panel-border-wide">
<p>
Apply now at https://www.gov.uk/example
</p>
</div>

View File

@@ -1,14 +1,11 @@
<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>
<h2 class="heading-medium">
Personalisation
</h2>
<p>
Use double brackets to personalise your message:
</p>
<div class="panel panel-border-wide">
<p>
Hello ((first name)), your reference is ((ref number))
</p>
</div>

View File

@@ -14,11 +14,11 @@
<form method="post">
<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.subject, width='1-1', highlight_tags=True, rows=2) }}
</div>
<div class="column-two-thirds">
<div class="column-three-quarters">
{{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=8) }}
{{ page_footer(
'Save',
@@ -26,8 +26,8 @@
delete_link_text='Delete this template'
) }}
</div>
<aside class="column-one-third">
<h2 style="margin: 0 0 5px 0;">Help</h2>
<aside class="column-whole">
{% include "partials/templates/guidance-formatting.html" %}
{% include "partials/templates/guidance-personalisation.html" %}
{% include "partials/templates/guidance-links.html" %}
</aside>

View File

@@ -25,8 +25,7 @@
delete_link_text='Delete this template'
) }}
</div>
<aside class="column-one-third">
<h2 style="margin: 0 0 5px 0;">Help</h2>
<aside class="column-whole">
{% include "partials/templates/guidance-personalisation.html" %}
{% include "partials/templates/guidance-links.html" %}
{% include "partials/templates/guidance-character-count.html" %}