.
This commit is contained in:
+1
-1
@@ -203,4 +203,4 @@ class BodyPartForm(ModelForm):
|
|||||||
class ExamForm(ModelForm):
|
class ExamForm(ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Exam
|
model = Exam
|
||||||
fields = ["name", "time_limit", "exam_mode", "active", "archive"]
|
fields = ["name", "time_limit", "open_access", "exam_mode", "active", "archive"]
|
||||||
@@ -18,7 +18,8 @@
|
|||||||
|
|
||||||
This exam has {{question_number}} questions. Time limit: {{exam.time_limit}} seconds.
|
This exam has {{question_number}} questions. Time limit: {{exam.time_limit}} seconds.
|
||||||
|
|
||||||
Exam mode: {{ exam.exam_mode }}
|
Exam mode: {{ exam.exam_mode }}<br />
|
||||||
|
Open access: {{ exam.open_access }}<br />
|
||||||
|
|
||||||
{% if exam.exam_mode %}
|
{% if exam.exam_mode %}
|
||||||
<div class="parent-help" title="Click to enable / disable the exam">
|
<div class="parent-help" title="Click to enable / disable the exam">
|
||||||
|
|||||||
+1
-1
@@ -208,4 +208,4 @@ LongSeriesImageFormSet = inlineformset_factory(
|
|||||||
class ExamForm(ModelForm):
|
class ExamForm(ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Exam
|
model = Exam
|
||||||
fields = ["name", "time_limit", "exam_mode", "active", "double_mark", "archive"]
|
fields = ["name", "time_limit", "open_access", "exam_mode", "active", "double_mark", "archive"]
|
||||||
@@ -17,7 +17,8 @@
|
|||||||
{% include 'exam_notes.html' %}
|
{% include 'exam_notes.html' %}
|
||||||
|
|
||||||
This exam has {{question_number}} questions. Time limit: {{exam.time_limit}} seconds.<br />
|
This exam has {{question_number}} questions. Time limit: {{exam.time_limit}} seconds.<br />
|
||||||
Exam mode: {{ exam.exam_mode }}
|
Exam mode: {{ exam.exam_mode }}<br />
|
||||||
|
Open access: {{ exam.open_access }}<br />
|
||||||
|
|
||||||
{% if exam.exam_mode %}
|
{% if exam.exam_mode %}
|
||||||
<div class="parent-help" title="Click to enable / disable the exam">
|
<div class="parent-help" title="Click to enable / disable the exam">
|
||||||
|
|||||||
+1
-1
@@ -31,4 +31,4 @@ class CidUserAnswerForm(ModelForm):
|
|||||||
class ExamForm(ModelForm):
|
class ExamForm(ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Exam
|
model = Exam
|
||||||
fields = ["name", "time_limit", "exam_mode", "active"]
|
fields = ["name", "time_limit", "open_access", "exam_mode", "active"]
|
||||||
@@ -8,7 +8,8 @@
|
|||||||
|
|
||||||
{% include 'exam_notes.html' %}
|
{% include 'exam_notes.html' %}
|
||||||
|
|
||||||
This exam has {{question_number}} questions.
|
<p>This exam has {{question_number}} questions.</p>
|
||||||
|
Open access: {{ exam.open_access }}<br />
|
||||||
|
|
||||||
<div class="parent-help" title="Click to enable / disable the exam">
|
<div class="parent-help" title="Click to enable / disable the exam">
|
||||||
Exam active: <input type="checkbox" id="exam-active-switch" {% if exam.active %}checked{% endif %}> <span class="help-text">[When checked the exam will be available to take in the test system]</span>
|
Exam active: <input type="checkbox" id="exam-active-switch" {% if exam.active %}checked{% endif %}> <span class="help-text">[When checked the exam will be available to take in the test system]</span>
|
||||||
|
|||||||
+1
-1
@@ -214,4 +214,4 @@ AnswerUpdateFormSet = inlineformset_factory(
|
|||||||
class ExamForm(ModelForm):
|
class ExamForm(ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Exam
|
model = Exam
|
||||||
fields = ["name", "time_limit", "exam_mode", "active", "archive"]
|
fields = ["name", "time_limit", "open_access", "exam_mode", "active", "archive"]
|
||||||
@@ -26,6 +26,7 @@
|
|||||||
Exam mode: {{ exam.exam_mode }}<span class="help-text">[When true the packet will be taken as an exam (it will
|
Exam mode: {{ exam.exam_mode }}<span class="help-text">[When true the packet will be taken as an exam (it will
|
||||||
not self mark and results will be saved here)]</span>
|
not self mark and results will be saved here)]</span>
|
||||||
</div>
|
</div>
|
||||||
|
Open access: {{ exam.open_access }}<br />
|
||||||
|
|
||||||
<div class="parent-help" title="Click to enable / disable the exam">
|
<div class="parent-help" title="Click to enable / disable the exam">
|
||||||
Exam active: <input type="checkbox" id="exam-active-switch" {% if exam.active %}checked{% endif %} data-posturl="{% url 'rapids:exam_toggle_active' pk=exam.pk %}"> <span
|
Exam active: <input type="checkbox" id="exam-active-switch" {% if exam.active %}checked{% endif %} data-posturl="{% url 'rapids:exam_toggle_active' pk=exam.pk %}"> <span
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
|
|
||||||
{% include 'exam_notes.html' %}
|
{% include 'exam_notes.html' %}
|
||||||
|
|
||||||
This exam has {{question_number}} questions.
|
<p>This exam has {{question_number}} questions.</p>
|
||||||
|
|
||||||
|
Open access: {{ exam.open_access }}<br />
|
||||||
<div class="parent-help" title="Click to enable / disable the exam">
|
<div class="parent-help" title="Click to enable / disable the exam">
|
||||||
Exam active: <input type="checkbox" id="exam-active-switch" {% if exam.active %}checked{% endif %}> <span
|
Exam active: <input type="checkbox" id="exam-active-switch" {% if exam.active %}checked{% endif %}> <span
|
||||||
class="help-text">[When checked the exam will be available to take in the test system]</span>
|
class="help-text">[When checked the exam will be available to take in the test system]</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user