{% extends "forms.html" %}


{% block title %}Edit Group{% endblock %}


{% block breadcrumbs %}
<div class="breadcrumbs">
    <a href='{% url "index" %}'>Home</a>&nbsp;›
    <a href="{% url 'kg_group_list' %}">Groups</a>&nbsp;›
    {% if group %}
        <a href="{% url 'kg_group_detail' group.name %}">{{ group }}</a>&nbsp;›
        Edit
    {% else %}
        Create Group
    {% endif %}
</div>
{% endblock %}


{% block content %}
<form method="post" action=".">{% csrf_token %}
    <div>
        {% load forms %}
        {% if form.errors or form.non_field_errors %}
        <p class="errornote">Please correct the error{{ form.errors|pluralize }} below.</p>
        {% endif %}
        <fieldset class="aligned ()">
            {% formfield form.name %}
            {% formfield form.description %}
        </fieldset>
        {{ form.non_field_errors }}
    </div>

    <div class="submit-row">
        <input type="submit" value="Save" class="default" />
    </div>
</form>
{% endblock %}
