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 %} {% for series in question.series.all %}
<span class="series-block"> <span class="series-block">
<span> <span>
Series {{ forloop.counter }}: Series {{ forloop.counter }}:
<a href="{% url 'longs:long_series_detail' pk=series.pk %}"> <a href="{% url 'longs:long_series_detail' pk=series.pk %}">
{{series.get_block}} {{series.get_block}}
</a> </a>
<a href="#" onclick="return window.create_popup_window('/longs/series/{{series.pk}}', 'Series')" <a href="#"
>Popup</a> onclick="return window.create_popup_window('/longs/series/{{series.pk}}', 'Series')">Popup</a>
</span> </span>
</span> </span>
{% endfor %} {% 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> </div>
<p><b>Author(s):</b> {% for author in question.author.all %} <a <p><b>Author(s):</b> {% for author in question.author.all %} <a
href="{% url 'longs:author_detail' pk=author.pk %}">{{author}}</a>, {% endfor %}</p> 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> <p><b>Scrapped:</b> {{ question.scrapped }} <a href="{% url 'longs:long_scrap' pk=question.pk %}">(toggle)</a>
<div class="long-answer"> <div class="long-answer">
<p class="pre-whitespace"><b>Feedback:</b> <pre>{{ question.feedback }}</pre></p> <p class="pre-whitespace"><b>Feedback:</b>
<h3>Model answers</h3> <pre>{{ question.feedback }}</pre>
<p class="pre-whitespace"><b>Observations:</b> <pre>{{ question.model_observations }}</pre></p> </p>
<p class="pre-whitespace"><b>Interpretation:</b> <pre>{{ question.model_interpretation }}</pre></p> <details>
<p class="pre-whitespace"><b>Principle Diagnosis:</b> <pre>{{ question.model_principle_diagnosis }}</pre></p> <summary>
<p class="pre-whitespace"><b>Differential Diagnosis:</b> <pre>{{ question.model_differential_diagnosis }}</pre></p> <h3>Model answers</h3>
<p class="pre-whitespace"><b>Managment:</b> <pre>{{ question.model_management }}</pre></p> </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> </div>
</p> </p>
<div> <div>
Exam(s): {% for exam in question.exams.all %} Exam(s): {% for exam in question.exams.all %}
<a href="{% url 'longs:exam_overview' pk=exam.pk %}">{{ exam.name }}</a>, <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>
{% endfor %} {% 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>
<div> <div>
JSON creation time: {{question.json_creation_time}} ({{question.json_creation_time|date:"c"}}), JSON creation time: {{question.json_creation_time}} ({{question.json_creation_time|date:"c"}}),
JSON creation id: {{question.question_json_id}} JSON creation id: {{question.question_json_id}}
{% if question.recreate_json %}[JSON out of date]{% endif %} {% if question.recreate_json %}[JSON out of date]{% endif %}
</div> </div>
<a href="{% url 'longs:question_json' pk=question.pk %}">JSON</a> <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> <a href="{% url 'longs:question_json_recreate' pk=question.pk %}">Refresh JSON cache</a>