{% extends 'generic/base.html' %}


{% block navigation %}
        {{block.super}}
        {% if group_type == "cid" %}
                <br/>
                Group: {{group.name}}->

                {% if not group %}
                        <a href="{% url 'generic:cid_group_detail' cidusergroup.pk %}">Group</a> /
                        <a href="{% url 'generic:cid_group_update' cidusergroup.pk %}">Edit Group</a> /
                        <a href="{% url 'generic:cid_group_exams' cidusergroup.pk %}">Edit Exams</a> /
                        <a href="{% url 'generic:cid_group_delete' cidusergroup.pk %}">Delete</a>

                {% else %}
                        <a href="{% url 'generic:cid_group_detail' group.pk %}">Group</a> /
                        <a href="{% url 'generic:cid_group_update' group.pk %}">Edit Group</a> /
                        <a href="{% url 'generic:cid_group_exams' group.pk %}">Edit Exams</a> /
                        <a href="{% url 'generic:cid_group_delete' group.pk %}">Delete</a>
                {% endif %}

        {% else %}

                {% if group %}
                        <br/>
                        Group: {{group.name}}->
                        <a href="{% url 'generic:user_group_detail' group.pk %}">Group</a> /
                        <a href="{% url 'generic:user_group_update' group.pk %}">Edit Group</a> /
                        <a href="{% url 'generic:user_group_exams' group.pk %}">Edit Exams</a> /
                        <a href="{% url 'generic:user_group_delete' group.pk %}">Delete</a>
                {% elif userusergroup %}
                        <br/>
                        Group: {{group.name}}->
                        <a href="{% url 'generic:user_group_detail' userusergroup.pk %}">Group</a> /
                        <a href="{% url 'generic:user_group_update' userusergroup.pk %}">Edit Group</a> /
                        <a href="{% url 'generic:user_group_exams' userusergroup.pk %}">Edit Exams</a> /
                        <a href="{% url 'generic:user_group_delete' userusergroup.pk %}">Delete</a>
                {% endif %}
        {% endif %}

{% endblock %}