Merge pull request #1909 from alphagov/request-to-go-live-automation

Add a checklist to the request to go live page
This commit is contained in:
Chris Hill-Scott
2018-03-09 09:51:27 +00:00
committed by GitHub
4 changed files with 110 additions and 13 deletions

View File

@@ -1,15 +1,20 @@
{% macro tick_cross(yes, label) %}
{% macro tick_cross(yes, label, truthy_hint='Can', falsey_hint='Cant') %}
<li>
{% if yes %}
<span class="tick-cross-tick">
<span class="visually-hidden">Can</span>
<span class="visually-hidden">{{ truthy_hint }}</span>
{{ label}}
</span>
{% else %}
<span class="tick-cross-cross">
<span class="visually-hidden">Cant</span>
<span class="visually-hidden">{{ falsey_hint }}</span>
{{ label}}
</span>
{% endif %}
</li>
{% endmacro %}
{% macro tick_cross_done_not_done(yes, label) %}
{{ tick_cross(yes, label, truthy_hint='Done: ', falsey_hint='Not done: ') }}
{% endmacro %}