{% extends "cradmin_legacy/base.django.html" %}
{% load i18n %}
{% load cradmin_legacy_tags %}
{% load devilry_account_tags %}
{% load cradmin_legacy_icon_tags %}

{% block title %}
    {{ group.get_unanonymized_long_displayname }}
{% endblock title %}

{% block pageheader-outer-extraclasses %}
    {{ block.super }}
    devilry-page-header-with-backlink
{% endblock %}

{% block pageheader-inner %}
    <a href="{% cradmin_instance_appindex_url 'studentoverview' %}" class="devilry-page-header-backlink">
        <span class="sr-only">
            {% trans "Back to student overview" %}
        </span>
        <span class="{% cradmin_icon 'devilry-pageheader-back' %}" aria-hidden="true"></span>
    </a>
    <h1>
        {{ group.get_unanonymized_long_displayname }}
    </h1>
{% endblock pageheader-inner %}

{% block content %}
    <div class="container">
        <a href="{% cradmin_url instanceid='devilry_group_admin' appname='feedbackfeed' roleid=group.id viewname='INDEX' %}" class="btn btn-primary">
            {% trans "View feedback details" %}
        </a>
        <a href="{% cradmin_instance_appindex_url 'split_group' pk=group.id %}" class="btn btn-default">
            {% trans "Split group" %}
        </a>

        <h2>
            {% trans "Details" %}
        </h2>
        <div id="devilry_admin_assignment_groupdetails_details">
            {% cradmin_render_renderable groupdetails %}
        </div>
    </div>
{% endblock content %}
