#169 Admin on teams

* adds admin column on team index view
* refactors Team model, so multiple members can become admins
* adds team migration for switch from fkey->m2m structure
* renames 'Group' to 'Permission' on user index view to avoid confusion between 'Groups' and Teams
* adds new autocomplete route for team-admin selection based on already selected members of the TeamForm
This commit is contained in:
2022-05-30 14:35:31 +02:00
parent eb3b9eb5c1
commit 8aa3fbd97a
16 changed files with 258 additions and 138 deletions

View File

@@ -11,7 +11,7 @@
</h4>
{% if form.form_caption is not None %}
<small>
{{ form.form_caption }}
{{ form.form_caption|linebreaks }}
</small>
{% endif %}
<form method="post" action="{{ form.action_url }}" {% for attr_key, attr_val in form.form_attrs.items %} {{attr_key}}="{{attr_val}}"{% endfor %}>

View File

@@ -16,7 +16,7 @@
<div class="modal-body">
<article>
{{ form.form_caption }}
{{ form.form_caption|linebreaks }}
</article>
{% include 'form/table/generic_table_form_body.html' %}
</div>