.
This commit is contained in:
@@ -36,8 +36,8 @@
|
||||
<br />
|
||||
{{ question.question_type }}: {{ question.get_primary_answer }}
|
||||
<br />
|
||||
Modality: {{ question.modality }}, <a href="{% url 'anatomy:question_detail' pk=question.pk %}">View</a>, <a href="{% url 'anatomy:mark' pk=exam.pk sk=forloop.counter0 %}">Mark</a>
|
||||
<span class="id">[id: {{question.pk}}]</span>
|
||||
Modality: {{ question.modality }}, <a href="{% url 'anatomy:mark' pk=exam.pk sk=forloop.counter0 %}">Mark</a>
|
||||
<span class="id"><a href="{% url 'anatomy:question_detail' pk=question.pk %}">[id: {{question.pk}}]</a></span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
<a href="{% url 'anatomy:anatomy_question_update' question.id %}" title="Edit the Question">Edit</a>
|
||||
<a href="{% url 'anatomy:question_clone' question.id %}" title="Clone the Question">Clone</a>
|
||||
<a href="{% url 'anatomy:question_delete' pk=question.pk %}" title="Delete the Question">Delete</a>
|
||||
<a href="{% url 'anatomy:question_delete' pk=question.pk %}" title="Delete the Question">Delete</a>
|
||||
<a href="{% url 'feedback_create' question_type='anatomy' pk=question.pk %}"> Add Note</a>
|
||||
<a href="{% url 'admin:anatomy_anatomyquestion_change' question.id %}"
|
||||
title="Edit the Question using the admin interface">Admin Edit</a>
|
||||
{% if exam %}
|
||||
@@ -64,6 +66,7 @@
|
||||
<div>
|
||||
Open access: {{ question.open_access }}
|
||||
</div>
|
||||
{% include 'question_notes.html' %}
|
||||
<div>
|
||||
<span id="annotation-json-toggle">Annotation JSON (+/-):</span> <span id="annotation-json-content">
|
||||
<pre>{{ question.image_annotations }}</pre>
|
||||
|
||||
+6
-1
@@ -35,7 +35,9 @@ from longs.models import Exam as LongExam
|
||||
from anatomy.models import AnatomyQuestion as AnatomyQuestion
|
||||
from anatomy.models import Exam as AnatomyExam
|
||||
from sbas.models import Question as SbasQuestion
|
||||
from sbas.models import Exam as SbasExam
|
||||
#from sbas.models import Exam as SbasExam
|
||||
from physics.models import Question as PhysicsQuestion
|
||||
#from physics.models import Exam as PhysicsExam
|
||||
|
||||
from django.db.models import Case, When
|
||||
from django.conf import settings
|
||||
@@ -58,6 +60,9 @@ def get_question_and_content_type(question_type):
|
||||
elif question_type == "sbas":
|
||||
question = SbasQuestion
|
||||
content_type = ContentType.objects.get(app_label="sbas", model="question")
|
||||
elif question_type == "physics":
|
||||
question = PhysicsQuestion
|
||||
content_type = ContentType.objects.get(app_label="physics", model="question")
|
||||
else:
|
||||
raise PermissionError()
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
{% load thumbnail %}
|
||||
<div class="physics">
|
||||
<h1>Exam: {{ exam.name }}</h1>
|
||||
|
||||
{% include 'exam_notes.html' %}
|
||||
|
||||
This exam has {{question_number}} questions.
|
||||
|
||||
<div class="parent-help" title="Click to enable / disable the exam">
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="question">
|
||||
<a href="{% url 'feedback_create' question_type='physics' pk=question.pk %}"> Add Note</a>
|
||||
<a href="{% url 'admin:physics_question_change' question.id %}" title="Edit the Question using the admin interface">Admin Edit</a>
|
||||
<div class="date">
|
||||
Created: {{ question.created_date|date:"d/m/Y" }}
|
||||
@@ -32,5 +33,6 @@
|
||||
{{ author }},
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% include 'question_notes.html' %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -1,18 +1,18 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}
|
||||
Sbas
|
||||
Sbas
|
||||
{% endblock %}
|
||||
|
||||
{% block navigation %}
|
||||
Sbas:
|
||||
{% if request.user.is_authenticated %}
|
||||
<a href="{% url 'sbas:exam_list' %}">Exams</a> /
|
||||
<a href="{% url 'sbas:question_view' %}">Questions</a>
|
||||
{% if request.user.is_superuser %}
|
||||
/ <a href="{% url 'sbas:user_answer_table_view' %}" title="User answers">Answers</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Sbas:
|
||||
{% if request.user.is_authenticated %}
|
||||
<a href="{% url 'sbas:exam_list' %}">Exams</a> /
|
||||
<a href="{% url 'sbas:question_view' %}">Questions</a>
|
||||
{% if request.user.is_superuser %}
|
||||
/ <a href="{% url 'sbas:user_answer_table_view' %}" title="User answers">Answers</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<div class="question">
|
||||
<a href="{% url 'admin:sbas_question_change' question.id %}"
|
||||
title="Edit the Question using the admin interface">Admin Edit</a>
|
||||
<a href="{% url 'feedback_create' question_type='sbas' pk=question.pk %}"> Add Note</a>
|
||||
<div class="date">
|
||||
Created: {{ question.created_date|date:"d/m/Y"}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user