add some tests and views

This commit is contained in:
Ross
2024-01-29 10:52:02 +00:00
parent 04dcb74e67
commit cfb90be686
11 changed files with 142 additions and 6 deletions
+2 -1
View File
@@ -22,7 +22,8 @@
<a href="{% url 'generic:cid_group_view' %}">Cid Groups</a> /
<a href="{% url 'generic:user_group_view' %}">User Groups</a> /
<a href="{% url 'accounts_list' %}">Manage Users</a> /
<a href="{% url 'generic:supervisor' %}">Manage Supervisors</a>
<a href="{% url 'generic:supervisor' %}">Manage Supervisors</a> /
<a href="{% url 'generic:exam_collection_list' %}">Collections</a>
{% endif %}
{% endblock %}
@@ -0,0 +1,9 @@
{% extends 'generic/base.html' %}
{% block navigation %}
{{block.super}}
<br/>Test
{% comment %} <a href="{% url 'generic:cid_group_detail' cidusergroup.pk %}">Collections</a> / {% endcomment %}
{% endblock %}
+15
View File
@@ -0,0 +1,15 @@
{% extends 'generic/examcollection_base.html' %}
{% block content %}
<h1>{{ object.name }} [{{object.date}}] </h1>
{{object.anatomy_exams}}
{% endblock %}
{% block js %}
{% endblock %}
+20
View File
@@ -0,0 +1,20 @@
{% extends 'generic/examcollection_base.html' %}
{% block content %}
<h1>Exam Collections</h1>
<ul class="collections">
{% for collection in object_list %}
<li class="collection"><a href="{% url 'generic:exam_collection_detail' collection.pk %}">{{ collection.name }} [{{ collection.date}}] (Authors: {{ collection.get_authors }})</a></li>
{% empty %}
<li>No exam collections yet.</li>
{% endfor %}
</ul>
{% endblock %}
{% block js %}
{% endblock %}