{% extends 'base.html' %} {% load filter_tags %} {% block bodydata %} data-project-id="{{ project.id }}" data-project-locked="{{ project.islocked }}" data-usergroup-id="{{ usergroup.id }}" {% endblock %} {% block title %} | Project: {{ project.name }} - User group: {{ usergroup.name }} - Data{% endblock %} {% block main %}
{% include 'snippets/messages.html' %}
{% include 'users/usergroup_navigation.html' %}

{% if project.islocked %}{% endif %} User group data

{% if project.islocked %}

The project is locked, therefore user group data cannot be edited. If you wish to edit it, you have to unlock the project in the project settings first.

{% elif not project.categories.all %}

The project has no categories, therefore subset data cannot be edited. If you wish to edit it, you have to create a new category first.

{% endif %} {% if usergroup.project.isprivate %} {% if project.categories.all %}
{% csrf_token %}
{% if not project.islocked %}

Select categories that will be accessible through the user group:

{% endif %} {% for category in project.categories.all %}
{% if usergroup.filters|is_in:category.id %} {% show_fields usergroup.filters category %} {% endif%}
{% endfor %}
{% if not project.islocked %}
{% endif %}
{% endif %} {% else %}

This project is public, therefore all data of the project is public too. To restrict access make the project private under project settings first.

{% endif %}
{% endblock %} {% block libraries %} {% endblock %}