{% extends "auth/base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% block page_content %}
{% if "manage_group" in request.path %} {% endif %}
{{ form.csrf_token }}
Group Information
Group Name and Members
{% if "manage_group" in request.path %}

Update the group name and members for group.

{% else %}

Create a new group and add members to the group.

{% endif %}
{{ wtf.form_field(form.group_name, class="form-control", placeholder='New Group Name') }} {% for error in form.group_name.errors %}
{{ error }}
{% endfor %}
{{ wtf.form_field(form.group_members, class="form-control") }}
{% if "manage_group" in request.path %}
Owned Project Permissions

Update permissions for the group.

{% if owned_project_names|length > 0 %} {% for project in owned_project_names %} {% for permission in ["read", "update", "create", "delete", "manage"] %} {% endfor %} {% endfor %}
Project Name read update create delete manage
{{ project["name"] }} {{ form["ownedproject_"+project["id"]|string+"_"+permission] }}
{% else %}

There are no projects in the dashboard which this group owns.

{% endif %}
{% endif %}
Special Project Permissions
{% if "manage_group" in request.path %}

Update permissions for the group.

{% else %}

Add special project permissions.

{% endif %}
{% if special_project_names|length > 0 %} {% for project in special_project_names %} {% for permission in ["read", "update", "create", "delete", "manage"] %} {% endfor %} {% endfor %}
Project Name read update create delete manage
{{ project["name"] }} {{ form["specialproject_"+project["id"]|string+"_"+permission] }}
{% else %}

There are no projects in the dashboard which this group does not own.

{% endif %}
{{ wtf.form_field(form.submit, class="btn btn-primary form-control") }} {% endblock %} {% block scripts %} {% if "manage_group" in request.path %} {% endif %} {% endblock %}