{#- Core's vocabularies, for a site administrator: by group, each with its values, which is the default, which are in use, their order changed a step at a time; adding a value. SBE defines none, so no tab leads here. Overrides Abilian Core's page. -#} {% extends "admin/_ads.html" %} {% block page_title %}{{ _("Vocabularies") }} ยท {{ _("Administration") }}{% endblock %} {% block heading %}{{ _("Vocabularies") }}{% endblock %} {% block content %}
{% for group in vocabularies | sort %}

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

{% for voc in vocabularies[group] %} {% set items = voc.query.all() %} {% set head_id = "voc-" ~ voc.Meta.name %}
{% if items %}
{{ csrf.field() }} {% if voc.Meta.group %}{% endif %} {% if edit_return_to %}{% endif %}
{% for item in items %} {#- Labels may hold the few tags the form keeps (`vocabularies/forms.py`). -#} {% endfor %}
{{ _("Label") }} {{ _("Default") }} {{ _("Active") }} {{ _("Order") }}
{{ item.label | safe }} {% if item.default %}{{ icon("check") }}{{ _("Yes") }}{% endif %} {% if item.active %}{{ icon("check") }}{{ _("Yes") }}{% endif %}
{% else %}

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

{% endif %}
{% endfor %} {% else %}

{{ _("No vocabularies are defined. Vocabularies are declared in code, by subclassing BaseVocabulary; this page lists the ones an application registers.") }}

{% endfor %}
{% endblock %}