mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-26 21:31:11 -05:00
These have been replaced: https://design-system.service.gov.uk/get-started/updating-your-code/#helper-class-names
20 lines
577 B
HTML
20 lines
577 B
HTML
{% macro tick_cross(yes, label, truthy_hint='Can', falsey_hint='Cannot') %}
|
|
<li>
|
|
{% if yes %}
|
|
<span class="tick-cross-tick">
|
|
<span class="govuk-visually-hidden">{{ truthy_hint }}</span>
|
|
{{ label}}
|
|
</span>
|
|
{% else %}
|
|
<span class="tick-cross-cross">
|
|
<span class="govuk-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 %}
|