mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-02 15:38:19 -04:00
One of the things that we want to check before a service goes live is that they have at least two team members with the manage service permission. Anyone who can make a request to go live has this permission, so that means one additional user is needed. This is what we can automatically communicate to the user. Under the hood this makes use of the logic added in https://github.com/alphagov/notifications-admin/pull/1891
21 lines
567 B
HTML
21 lines
567 B
HTML
{% macro tick_cross(yes, label, truthy_hint='Can', falsey_hint='Can’t') %}
|
||
<li>
|
||
{% if yes %}
|
||
<span class="tick-cross-tick">
|
||
<span class="visually-hidden">{{ truthy_hint }}</span>
|
||
{{ label}}
|
||
</span>
|
||
{% else %}
|
||
<span class="tick-cross-cross">
|
||
<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 %}
|