3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Add "id-tag__{property}" class to each div.

This commit is contained in:
paul121 2021-06-04 10:20:16 -07:00 committed by Michael Stenta
parent 3bc1871e39
commit bda93d4373

View file

@ -43,7 +43,7 @@
{# Use a macro to render each id-tag item. Each property is wrapped in its own div. #} {# Use a macro to render each id-tag item. Each property is wrapped in its own div. #}
{% macro id_tag(item) %} {% macro id_tag(item) %}
{% for property in item.content %} {% for property in item.content %}
<div>{{ property }}</div> <div class="id-tag__{{ _key }}">{{ property }}</div>
{% endfor %} {% endfor %}
{% endmacro %} {% endmacro %}