This commit is contained in:
Ross
2022-04-26 20:51:11 +01:00
parent 06a0b9381e
commit 1874bb0855
@@ -23,12 +23,12 @@
<div class="pre-whitespace multi-image-block"> <div class="pre-whitespace multi-image-block">
{% for series in series_list %} {% for series in series_list %}
<span class="series-block"> <span class="series-block">
<a href="#" onclick='window.loadDicomViewer(window.images[{{forloop.counter0}}])'> <a href="#" onclick='window.loadDicomViewer(window.images[{{forloop.counter0}}])'>
<span> <span>
Series {{ forloop.counter }}: Series {{ forloop.counter }}:
{{series.get_block}} {{series.get_block}}
</span> </span>
</a> </a>
</span> </span>
{% endfor %} {% endfor %}
</div> </div>
@@ -39,71 +39,75 @@
</div> </div>
{% if show_discussion and case.discussion%} {% if show_discussion and case.discussion%}
<details> <p>
<summary> <details>
Discussion: <summary>
</summary> Discussion:
<div> </summary>
{{case.discussion}} <div>
</div> {{case.discussion}}
</details> </div>
</details>
</p>
{% endif %} {% endif %}
{% if show_report and case.report%} {% if show_report and case.report%}
<details> <p>
<summary> <details>
Report: <summary>
</summary> Report:
<div> </summary>
{{case.report}} <div>
</div> {{case.report}}
</details> </div>
</details>
</p>
{% endif %} {% endif %}
<form method="POST" class="post-form">{% csrf_token %} <form method="POST" class="post-form">{% csrf_token %}
<div class="form-contents"> <div class="form-contents">
{% if collection.publish_results %}<fieldset disabled="disabled">{% endif %} {% if collection.publish_results %}<fieldset disabled="disabled">{% endif %}
{{form}} {{form}}
{% if collection.publish_results %}</fieldset>{% endif %} {% if collection.publish_results %}</fieldset>{% endif %}
</div> </div>
<p> <p>
{% if collection.publish_results %} {% if collection.publish_results %}
<h4>Answer score: {{answer.score}}</h4> <h4>Answer score: {{answer.score}}</h4>
Answer feedback: {{answer.feedback|safe}} Answer feedback: {{answer.feedback|safe}}
{% endif %} {% endif %}
</p> </p>
{% if previous > -1 %} {% if previous > -1 %}
<button type="submit" name="previous" class="save btn btn-default">Previous</button> <button type="submit" name="previous" class="save btn btn-default">Previous</button>
{% endif %} {% endif %}
{% if next %} {% if next %}
<button type="submit" name="next" class="save btn btn-default">Next</button> <button type="submit" name="next" class="save btn btn-default">Next</button>
{% else %} {% else %}
{% if not exam.publish_results %} {% if not exam.publish_results %}
<button type="submit" name="save" class="save btn btn-default">Save</button> <button type="submit" name="save" class="save btn btn-default">Save</button>
{% endif %}
{% endif %} {% endif %}
{% endif %}
<br /> <br />
<button type="submit" name="finish" class="save btn btn-default">Overview</button> <button type="submit" name="finish" class="save btn btn-default">Overview</button>
<button type="submit" id="goto-button" value="test" name="goto" class="hide">goto</button> <button type="submit" id="goto-button" value="test" name="goto" class="hide">goto</button>
</form> </form>
<style> <style>
label { label {
vertical-align: top; vertical-align: top;
} }
.series-block { .series-block {
border: darkgray solid 1px; border: darkgray solid 1px;
padding: 1px; padding: 1px;
text-decoration: none; text-decoration: none;
text-align: center; text-align: center;
} }
.series-block a { .series-block a {
all: unset; all: unset;
} }
.series-block:hover { .series-block:hover {
background-color: darkblue; background-color: darkblue;
} }
</style> </style>
{% endblock %} {% endblock %}
{% block js %} {% block js %}