more collection stuff
This commit is contained in:
@@ -3,6 +3,12 @@
|
|||||||
|
|
||||||
{% include 'exam_notes.html' %}
|
{% include 'exam_notes.html' %}
|
||||||
|
|
||||||
|
|
||||||
|
{% if exam.examcollection %}
|
||||||
|
<div>This exam is part of the collection: <a href="{{ exam.examcollection.get_absolute_url }}">{{ exam.examcollection }}</a></div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if exam.recreate_json %}
|
{% if exam.recreate_json %}
|
||||||
<div class="alert alert-warning" role="alert">
|
<div class="alert alert-warning" role="alert">
|
||||||
Exam JSON may be out of date.
|
Exam JSON may be out of date.
|
||||||
|
|||||||
@@ -104,6 +104,13 @@ MIDDLEWARE = [
|
|||||||
|
|
||||||
ROOT_URLCONF = "rad.urls"
|
ROOT_URLCONF = "rad.urls"
|
||||||
|
|
||||||
|
default_loaders = [
|
||||||
|
"django.template.loaders.filesystem.Loader",
|
||||||
|
"django.template.loaders.app_directories.Loader",
|
||||||
|
]
|
||||||
|
|
||||||
|
cached_loaders = [("django.template.loaders.cached.Loader", default_loaders)]
|
||||||
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
||||||
@@ -117,7 +124,9 @@ TEMPLATES = [
|
|||||||
"django.contrib.messages.context_processors.messages",
|
"django.contrib.messages.context_processors.messages",
|
||||||
"django.template.context_processors.static",
|
"django.template.context_processors.static",
|
||||||
],
|
],
|
||||||
|
"loaders": default_loaders if DEBUG else cached_loaders,
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<h2>Cloning Exam: {{exam}}</h2>
|
<h2>Cloning Exam: {{exam}}</h2>
|
||||||
<p>
|
<p>
|
||||||
This will create a new exam with the same settings, questions and answers as the original exam. <br/>
|
This will create a new exam with the same settings, authors, questions and answers as the original exam. <br/>
|
||||||
Candidate groups and candidates will not be cloned.
|
Candidate groups and candidates will not be cloned.
|
||||||
</p>
|
</p>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
|
|||||||
Reference in New Issue
Block a user