{% extends "admin/change_form.html" %}
{% load i18n %}

{% block extrahead %}{{ block.super }}
{{ form.media }}
{% endblock %}

{% block breadcrumbs %}{% if not is_popup %}
<div class="breadcrumbs">
     <a href="../../../../../../">{% trans "Home" %}</a> &rsaquo;
     <a href="../../../../../">{{ app_label|capfirst|escape }}</a> &rsaquo; 
     {% if has_change_permission %}<a href="../../../../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} &rsaquo; 
     {% if has_change_permission %}<a href="../../../">{{ original|truncatewords:"18" }}</a>{% else %}{{ original|truncatewords:"18" }}{% endif %} &rsaquo;
     {% if has_change_permission %}<a href="../../">{% trans "Object permissions" %}</a>{% else %}{% trans "Object permissions" %}{% endif %} &rsaquo;
     {% trans "Manage group" %}: {{ group_obj|truncatewords:"18" }}
</div>
{% endif %}{% endblock %}


{% block content %}
<div id="content-main">
<form action="." method="post">
    {% csrf_token %}
    <fieldset class="module aligned">
        <h2>{% trans "Object permissions" %}</h2>
        <div class="row">
            <div class="column span-4">
                <label class="required">{% trans "Object" %}</label>
            </div>
            <div class="column span-flexible">
                <p class="readonly">{{ object }}</p>
            </div>
        </div>
        <div class="row">
            <div class="column span-4">
                <label class="required">{% trans "Group" %}</label>
            </div>
            <div class="column span-flexible">
                <p class="readonly">{{ group_obj }}</p>
            </div>
        </div>
        {% for field in form %}
            {% include "admin/guardian/contrib/grappelli/field.html" %}
        {% endfor %}
    </fieldset>
    <div class="module footer">
        <ul class="submit-row">
            <li class="submit-button-container"><input id="submit" type="submit" value="{% trans "Save" %}"/></li>
        </ul>
    </div>
</form>
</div>
{% endblock %}
