{% extends "base.html" %}

{% load i18n %}

{% block title %}
    {% if group %}
        {% trans "Edit group" %}
    {% else %}
        {% trans "New group" %}
    {% endif %}
    – {{ block.super }}
{% endblock %}

{% block content %}
    <h1>
    {% if group %}
        {% trans "Edit group" %}
    {% else %}
        {% trans "New group" %}
    {% endif %}
        <small class="pull-right">
        <a href="{% url 'user_group_overview' %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
        </small>
    </h1>

    <form action="" method="post">{% csrf_token %}
        {% include "form.html" %}
        <p>
        {% include "formbuttons_saveapply.html" %}
        <a href="{% url 'user_group_overview' %}" class="btn">
            {% trans 'Cancel' %}
        </a>
        </p>
        <small>* {% trans "required" %}</small>
    </form>
{% endblock %}
