{%- extends "admin/_base.html" %} {% from "macros/box.html" import m_box %} {%- block content %} {%- for group in vocabularies |sort %}

{{ group or _('Global') }}

{%- for voc in vocabularies[group] %} {%- call m_box(title=voc.Meta.label) %} {%- set items = voc.query.all() %} {%- if items %}
{{ csrf.field() }} {%- for item in items %} {%- endfor %}
{{ _('Label') }} {{ _('Default') }} {{ _('Active') }}
{{ item.label }} {%- if item.default %}{{ icon_checked }}{%- endif %} {%- if item.active %}{{ icon_checked }}{%- endif %}
{%- else %}

{{ _('No item in this vocabulary') }}

{%- endif %}
{{ _('Add new value') }}
{%- endcall %} {%- endfor %} {# voc in groups #} {%- endfor %} {# groups #} {%- endblock %}