.
This commit is contained in:
+1
-1
@@ -261,7 +261,7 @@ class ExamGroupsFormMixin(ModelForm):
|
|||||||
cid_user_group_queryset = CidUserGroup.objects.filter(
|
cid_user_group_queryset = CidUserGroup.objects.filter(
|
||||||
archive=False, open_access=True
|
archive=False, open_access=True
|
||||||
)
|
)
|
||||||
user_user_group_queryset = UserUserGroup.objects.none(
|
user_user_group_queryset = UserUserGroup.objects.filter(
|
||||||
archive=False, open_access=True
|
archive=False, open_access=True
|
||||||
)
|
)
|
||||||
# cid_user_group_queryset = CidUserGroup.objects.none()
|
# cid_user_group_queryset = CidUserGroup.objects.none()
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
{% if can_edit %}
|
{% if can_edit %}
|
||||||
<p>
|
<p>
|
||||||
<button id='button-edit-order' title='click and drag questions to change order' data-posturl="{% url 'anatomy:exam_json_edit' pk=exam.pk %}">Edit question order / Delete questions</button>
|
<button id='button-edit-order' title='click and drag questions to change order' data-posturl="{% url exam.get_app_name|add:':exam_json_edit' pk=exam.pk %}">Edit question order / Delete questions</button>
|
||||||
</p>
|
</p>
|
||||||
<details><summary>Additional details</summary>
|
<details><summary>Additional details</summary>
|
||||||
<div>
|
<div>
|
||||||
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}),
|
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}),
|
||||||
JSON creation id: {{exam.exam_json_id}}
|
JSON creation id: {{exam.exam_json_id}}
|
||||||
</div>
|
</div>
|
||||||
<a href="{% url 'anatomy:exam_json' pk=exam.pk %}">JSON</a>
|
<a href="{% url exam.get_app_name|add:':exam_json' pk=exam.pk %}">JSON</a>
|
||||||
<a href="{% url 'anatomy:exam_json_unbased' pk=exam.pk %}">JSON (unbased)</a>
|
<a href="{% url exam.get_app_name|add:':exam_json_unbased' pk=exam.pk %}">JSON (unbased)</a>
|
||||||
<a href="{% url 'anatomy:exam_json_recreate' pk=exam.pk %}">Refresh JSON cache</a>
|
<a href="{% url exam.get_app_name|add:':exam_json_recreate' pk=exam.pk %}">Refresh JSON cache</a>
|
||||||
{% if request.user.is_superuser %}
|
{% if request.user.is_superuser %}
|
||||||
<button id='button-open-access' data-posturl="{% url 'anatomy:exam_json_edit' pk=exam.pk %}">Make questions open access</button>
|
<button id='button-open-access' data-posturl="{% url exam.get_app_name|add:':exam_json_edit' pk=exam.pk %}">Make questions open access</button>
|
||||||
<button id='button-closed-access' data-posturl="{% url 'anatomy:exam_json_edit' pk=exam.pk %}">Make questions closed access</button>
|
<button id='button-closed-access' data-posturl="{% url exam.get_app_name|add:':exam_json_edit' pk=exam.pk %}">Make questions closed access</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</details>
|
</details>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -30,4 +30,3 @@ if __name__ == "__main__":
|
|||||||
)
|
)
|
||||||
raise
|
raise
|
||||||
execute_from_command_line(sys.argv)
|
execute_from_command_line(sys.argv)
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,10 @@
|
|||||||
<b>Normal</b>
|
<b>Normal</b>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br />
|
<br />
|
||||||
Examination: {{ question.get_examinations }}, <a
|
Examination: {{ question.get_examinations }},
|
||||||
href="{% url 'rapids:mark' exam_pk=exam.pk sk=forloop.counter0 %}">Mark</a>
|
{% if exam.exam_mode %}
|
||||||
|
<a href="{% url 'rapids:mark' exam_pk=exam.pk sk=forloop.counter0 %}">Mark</a>
|
||||||
|
{% endif %}
|
||||||
<span class="id"><a href="{% url 'rapids:question_detail' pk=question.pk %}">[id: {{question.pk}}]</a></span>
|
<span class="id"><a href="{% url 'rapids:question_detail' pk=question.pk %}">[id: {{question.pk}}]</a></span>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user