Support visibility for tags (#4086)

This commit is contained in:
Kevin Papst
2023-06-09 17:07:49 +02:00
committed by GitHub
parent 6e781b59e2
commit 2e2bf986a4
17 changed files with 246 additions and 161 deletions

View File

@@ -405,6 +405,14 @@
{%- if not customer.visible %}bg-orange-lt{% endif -%}
{% endmacro %}
{#
To be used like this:
<tr class="{{ class_tag_row(tag) }}">
#}
{% macro class_tag_row(tag) %}
{%- if not tag.visible %}bg-orange-lt{% endif -%}
{% endmacro %}
{#
To be used like this:
<tr {{ customer_row_attr(customer, now) }}>