mpeltriaux
8aa3fbd97a
* 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
38 lines
1.2 KiB
HTML
38 lines
1.2 KiB
HTML
{% load i18n %}
|
|
|
|
{% block head %}
|
|
{{ form.media }}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="container">
|
|
<h4>
|
|
{{ form.form_title }}
|
|
</h4>
|
|
{% if form.form_caption is not None %}
|
|
<small>
|
|
{{ 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 %}>
|
|
{% csrf_token %}
|
|
{% include 'form/table/generic_table_form_body.html' %}
|
|
<div class="row">
|
|
<div class="col-6">
|
|
{% if form.show_cancel_btn %}
|
|
<a href="{{ form.cancel_redirect }}">
|
|
<button class="btn btn-default" type="button" title="{% trans 'Cancel' %}">{% trans 'Cancel' %}</button>
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
<div class="col-6 d-flex justify-content-end">
|
|
<button class="btn btn-default" type="submit" title="{{form.action_btn_label}}">{{form.action_btn_label}}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block footer %}
|
|
{{ form.media }}
|
|
{% endblock %} |