{% extends 'base.html' %} {% block bodydata %} data-project-id="{{ project.id }}" data-project-locked="{{ project.islocked }}" data-category-id="{{ category.id }}" {% endblock %} {% block title %} | Project: {{ project.name }} - Category: {{ category.name }} - Overview{% endblock %} {% block main %}
{% include 'snippets/messages.html' %}
{% include 'categories/category_navigation.html' %}
{% with fields=category.fields.all %}

{% if project.islocked %}{% endif %} Category fields {% if fields and not project.islocked %} Create new field {% endif %}

{% if project.islocked %}

The project is locked, therefore category fields cannot be edited. If you wish to edit them, you have to unlock the project in the project settings first.

{% endif %} {% for field in fields %} {% if forloop.first %}
    {% endif %}
  • {% if project.islocked %}{% endif %} {{ field.name }} {% if field.status == 'inactive' %}Inactive{% endif %}

    {% if field.description %}

    {{ field.description }}

    {% endif %}

    Key: {{ field.key }} — Type: {{ field.type_name }}

  • {% if forloop.last %}
{% endif %} {% empty %}

We couldn't find any fields for this category.

{% if project.islocked %}

Unfortunately, you cannot create new fields when the project is locked.

{% else %} Create new field {% endif %}
{% endfor %}
{% endwith %}
{% endblock %} {% block libraries %} {% endblock %}