Merge pull request #1020 from alphagov/optional-content

Add guidance for optional content into template pages
This commit is contained in:
Chris Hill-Scott
2016-11-11 16:15:29 +01:00
committed by GitHub
3 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<h2 class="heading-medium">
Optional content
</h2>
<p>
Use double brackets and ?? to define optional content.
</p>
<p>
For example if you only want to show something to people who are under
18:
</p>
<div class="panel panel-border-wide">
<p>
((under18??Please get your application signed by a parent or
guardian.))
</p>
</div>
<p>
For each person you send this message to, specify yes or no to
show or hide this content.
</p>

View File

@@ -29,6 +29,7 @@
<aside class="column-whole">
{% include "partials/templates/guidance-formatting.html" %}
{% include "partials/templates/guidance-personalisation.html" %}
{% include "partials/templates/guidance-optional-content.html" %}
{% include "partials/templates/guidance-links.html" %}
</aside>
</div>

View File

@@ -27,6 +27,7 @@
</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>