{% extends 'base.html' %} {% block bodydata %} data-project-id="{{ project.id }}" data-project-locked="{{ project.islocked }}" {% endblock %} {% block title %} | Project: {{ project.name }} - Categories{% endblock %} {% block main %}
{% include 'snippets/messages.html' %}
{% if project.islocked %}

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

{% else %}

Create categories to define which data you want to collect for your project. For instance, if you want to create a map for public transport, you can create a category for each bus stop and train station.

{% endif %}

{% if project.islocked %}{% endif %} Categories {% if project.categories.all and not project.islocked %} Create new category {% endif %}

{% for category in project.categories.all %} {% if forloop.first %}
    {% endif %}
  • {% if project.islocked %}{% endif %} {{ category.name }} {% if category.status == 'inactive' %}Inactive{% endif %}

    {% if category.description %}

    {{ category.description }}

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

We couldn't find any categories for this project.

{% if project.islocked %}

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

{% else %} Create new category {% endif %}
{% endfor %}
{% endblock %} {% block libraries %} {% endblock %}