From 580753c0d11de625bde887936c2a2dd2534801e5 Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 13 Feb 2024 09:50:12 +0000 Subject: [PATCH] start viva collections --- atlas/models.py | 4 ++ atlas/templates/atlas/collection_viva.html | 45 ++++++++++++++++++++++ atlas/urls.py | 1 + atlas/views.py | 11 ++++++ 4 files changed, 61 insertions(+) create mode 100644 atlas/templates/atlas/collection_viva.html diff --git a/atlas/models.py b/atlas/models.py index 85f512a6..b17a5511 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -692,6 +692,10 @@ class CaseCollection(ExamOrCollectionGenericBase): "REP", _("Report"), ) + VIVA = ( + "VIV", + _("Viva"), + ) collection_type = models.CharField( max_length=3, diff --git a/atlas/templates/atlas/collection_viva.html b/atlas/templates/atlas/collection_viva.html new file mode 100644 index 00000000..7a52fcae --- /dev/null +++ b/atlas/templates/atlas/collection_viva.html @@ -0,0 +1,45 @@ +{% extends 'atlas/exams.html' %} + +{% block content %} +

Cases

+
    + {% for case in cases %} +
  1. Case {{forloop.counter}}: {{case.title}}   + + +
  2. + + {% endfor %} +
+ +