Refactor exam collection templates to improve navigation structure and enhance user experience
This commit is contained in:
@@ -1,10 +1,30 @@
|
|||||||
{% extends 'generic/base.html' %}
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
Exam Collections
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block navigation %}
|
{% block navigation %}
|
||||||
{{block.super}}
|
<nav class="navbar navbar-expand-lg navbar-dark submenu mb-3">
|
||||||
<br/>
|
<div class="container-fluid">
|
||||||
{% comment %} <a href="{% url 'generic:cid_group_detail' cidusergroup.pk %}">Collections</a> / {% endcomment %}
|
<a class="navbar-brand" href="{% url 'generic:examcollection_list' %}">Collections</a>
|
||||||
<a href="{% url 'generic:examcollection_create' %}">Create Exam Collection</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 %}
|
{% endblock %}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "generic/base.html" %}
|
{% extends "generic/examcollection_base.html" %}
|
||||||
<!-- {% load static from static %} -->
|
<!-- {% load static from static %} -->
|
||||||
|
|
||||||
{% load crispy_forms_tags %}
|
{% load crispy_forms_tags %}
|
||||||
|
|||||||
Reference in New Issue
Block a user