{% extends "base.html" %} {% block bodydata %} data-project-id="{{category.project.id}}" data-category-id="{{category.id}}"{% endblock %} {% block title %} | Category: {{ category.name }}{% endblock %} {% block main %}
{% include 'snippets/messages.html' %}
Category

{{ category.name }}

{% if category.description %}

{{ category.description|linebreaksbr }}

{% endif %}

Fields {% if category.fields.all %} Create new field {% endif %}

{% if category.fields.all %} {% for field in category.fields.all %} {% if forloop.first %}
    {% 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 %} {% endfor %}
{% else %}

We couldn't find any fields for this category.

You can use fields to define what data should be collected for the category. For example, if your category is Restaurants, you might want to store a name, an address, the number of seats and which couisine they serve.

Create new field
{% endif %}
{% endblock %} {% block libraries %} {% endblock %}