Files
notifications-admin/app/templates/components/tick-cross.html
T

20 lines
577 B
HTML
Raw Normal View History

2019-09-12 16:45:39 +01:00
{% macro tick_cross(yes, label, truthy_hint='Can', falsey_hint='Cannot') %}
2016-07-07 09:17:50 +01:00
<li>
{% if yes %}
<span class="tick-cross-tick">
2019-10-21 15:18:25 +01:00
<span class="govuk-visually-hidden">{{ truthy_hint }}</span>
2016-07-07 09:17:50 +01:00
{{ label}}
</span>
{% else %}
<span class="tick-cross-cross">
2019-10-21 15:18:25 +01:00
<span class="govuk-visually-hidden">{{ falsey_hint }}</span>
2016-07-07 09:17:50 +01:00
{{ 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 %}