{% extends 'base.html' %}


{% block title %}
        Exam Collections
{% endblock %}

{% block navigation %}
        <nav class="navbar navbar-expand-lg navbar-dark submenu mb-3">
                <div class="container-fluid">
                        <a class="navbar-brand" href="{% url 'generic:examcollection_list' %}">Collections</a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#examCollectionNavbar" aria-controls="examCollectionNavbar" aria-expanded="false" aria-label="Toggle navigation">
                                <span class="navbar-toggler-icon"><i class="bi bi-text-indent-right"></i></span>
                        </button>
                        <div class="collapse navbar-collapse" id="examCollectionNavbar">
                                <ul class="navbar-nav">
                                        {% if request.user.is_authenticated %}
                                                <li class="nav-item">
                                                        <a class="nav-link" href="{% url 'generic:examcollection_list' %}"><i class="bi bi-collection me-1" aria-hidden="true"></i> View Collections</a>
                                                </li>
                                                <li class="nav-item">
                                                        <a class="nav-link" href="{% url 'generic:examcollection_create' %}"><i class="bi bi-plus-square me-1" aria-hidden="true"></i> Create Collection</a>
                                                </li>
                                        {% endif %}
                                </ul>
                        </div>
                </div>
        </nav>

{% endblock %}