This commit is contained in:
Ross
2021-08-11 19:02:02 +01:00
parent 807fb0b2ac
commit 2976c08b7c
+57 -36
View File
@@ -10,17 +10,17 @@
{% for series in question.series.all %}
<span class="series-block">
<span>
Series {{ forloop.counter }}:
<a href="{% url 'longs:long_series_detail' pk=series.pk %}">
{{series.get_block}}
</a>
Series {{ forloop.counter }}:
<a href="{% url 'longs:long_series_detail' pk=series.pk %}">
{{series.get_block}}
</a>
<a href="#" onclick="return window.create_popup_window('/longs/series/{{series.pk}}', 'Series')"
>Popup</a>
</span>
<a href="#"
onclick="return window.create_popup_window('/longs/series/{{series.pk}}', 'Series')">Popup</a>
</span>
</span>
{% endfor %}
<span><a href="{% url 'longs:long_series_id_create' pk=question.pk %}">Add new series</a><br/>
<span><a href="{% url 'longs:long_series_id_create' pk=question.pk %}">Add new series</a><br />
</div>
<p><b>Author(s):</b> {% for author in question.author.all %} <a
href="{% url 'longs:author_detail' pk=author.pk %}">{{author}}</a>, {% endfor %}</p>
@@ -29,37 +29,58 @@
<p><b>Scrapped:</b> {{ question.scrapped }} <a href="{% url 'longs:long_scrap' pk=question.pk %}">(toggle)</a>
<div class="long-answer">
<p class="pre-whitespace"><b>Feedback:</b> <pre>{{ question.feedback }}</pre></p>
<h3>Model answers</h3>
<p class="pre-whitespace"><b>Observations:</b> <pre>{{ question.model_observations }}</pre></p>
<p class="pre-whitespace"><b>Interpretation:</b> <pre>{{ question.model_interpretation }}</pre></p>
<p class="pre-whitespace"><b>Principle Diagnosis:</b> <pre>{{ question.model_principle_diagnosis }}</pre></p>
<p class="pre-whitespace"><b>Differential Diagnosis:</b> <pre>{{ question.model_differential_diagnosis }}</pre></p>
<p class="pre-whitespace"><b>Managment:</b> <pre>{{ question.model_management }}</pre></p>
<p class="pre-whitespace"><b>Feedback:</b>
<pre>{{ question.feedback }}</pre>
</p>
<details>
<summary>
<h3>Model answers</h3>
</summary>
<p class="pre-whitespace"><b>Observations:</b>
<pre>{{ question.model_observations }}</pre>
</p>
<p class="pre-whitespace"><b>Interpretation:</b>
<pre>{{ question.model_interpretation }}</pre>
</p>
<p class="pre-whitespace"><b>Principle Diagnosis:</b>
<pre>{{ question.model_principle_diagnosis }}</pre>
</p>
<p class="pre-whitespace"><b>Differential Diagnosis:</b>
<pre>{{ question.model_differential_diagnosis }}</pre>
</p>
<p class="pre-whitespace"><b>Managment:</b>
<pre>{{ question.model_management }}</pre>
</p>
</details>
<p class="pre-whitespace"><b>Mark Scheme:</b> <pre>{{ question.mark_scheme | safe}}</pre></p>
<p class="pre-whitespace">
<details>
<summary><b>Mark Scheme:</b></summary>
<pre>{{ question.mark_scheme | safe}}</pre>
</details>
</p>
</div>
</p>
<div>
Exam(s): {% for exam in question.exams.all %}
<a href="{% url 'longs:exam_overview' pk=exam.pk %}">{{ exam.name }}</a>,
{% endfor %}
</div>
<div>
Notes:
<ul>
{% for note in question.long_notes.all %}
<li>
{{ note.created_on }} by {{ note.author }}: {{ note.note }}
</li>
Exam(s): {% for exam in question.exams.all %}
<a href="{% url 'longs:exam_overview' pk=exam.pk %}">{{ exam.name }}</a>,
{% endfor %}
</ul>
</div>
<div>
Notes:
<ul>
{% for note in question.long_notes.all %}
<li>
{{ note.created_on }} by {{ note.author }}: {{ note.note }}
</li>
{% endfor %}
</ul>
</div>
<div>
JSON creation time: {{question.json_creation_time}} ({{question.json_creation_time|date:"c"}}),
JSON creation id: {{question.question_json_id}}
{% if question.recreate_json %}[JSON out of date]{% endif %}
</div>
<a href="{% url 'longs:question_json' pk=question.pk %}">JSON</a>
<a href="{% url 'longs:question_json_recreate' pk=question.pk %}">Refresh JSON cache</a>
</div>
<div>
JSON creation time: {{question.json_creation_time}} ({{question.json_creation_time|date:"c"}}),
JSON creation id: {{question.question_json_id}}
{% if question.recreate_json %}[JSON out of date]{% endif %}
</div>
<a href="{% url 'longs:question_json' pk=question.pk %}">JSON</a>
<a href="{% url 'longs:question_json_recreate' pk=question.pk %}">Refresh JSON cache</a>