{% extends 'base.html' %}
{% load i18n %}

{% block subtitle %}
    {% if group %}
        {% trans "Edit group" %} "{{ group }}"
    {% else %}
        {% trans "Add group" %}
    {% endif %}
{% endblock %}

{% block actions %}
    <a class="btn btn-default" href="{% url 'accounts:group-list' %}">{% trans "Back" %}</a>
{% endblock %}

{% block main %}
    <form action="" method="POST">{% csrf_token %}
        <div class="panel panel-default">
            <table class="table table-bordered">
                {% include 'extras/form.html' with form=form %}
            </table>
            <div class="panel-footer clearfix">
                <div class="pull-right">
                    <input class="btn btn-primary" type="submit" value="{% trans "Save and add another" %}" name="_addanother"/>
                    <input class="btn btn-primary" type="submit" value="{% trans "Save" %}" name="_save"/>
                </div>
            </div>
        </div>
    </form>
{% endblock %}
