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

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

{% else %}

Create subsets to dynamically generate and output data based on set criterias.

{% endif %}

{% if project.islocked %}{% endif %} Subsets {% if project.categories.all and project.subsets.all and not project.islocked %} Create new subset {% endif %}

{% for subset in project.subsets.all %} {% if forloop.first %}
    {% endif %}
  • {% if project.islocked %}{% endif %} {{ subset.name }}

    {% if subset.description %}

    {{ subset.description }}

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

We couldn't find any subsets for this project.

{% if project.islocked %}

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

{% elif not project.categories.all %}

Unfortunately, you cannot create new subsets when there are no categories added to the project.

{% else %} Create new subset {% endif %}
{% endfor %}
{% endblock %}