This commit is contained in:
Ross
2024-10-28 17:00:29 +00:00
parent 0bc6d63c7a
commit 2dc2346962
+19 -6
View File
@@ -2,7 +2,7 @@
{% block content %} {% block content %}
<h2>Subspecialties</h2> <h2>Subspecialties</h2>
This page shows the questions that are currently displayed in maxims. The questions are grouped by subspecialty. Examinations that use the same questions are grouped together.
{% for subspecialty, formats in format_map %} {% for subspecialty, formats in format_map %}
<h4>{{subspecialty}}</h4> <h4>{{subspecialty}}</h4>
@@ -11,7 +11,6 @@
{% for format in formats %} {% for format in formats %}
<li> <li>
<h5>Name: {{format}}</h5> <h5>Name: {{format}}</h5>
<form> <form>
<input type="hidden" name="question" value="{{ format.format }}"> <input type="hidden" name="question" value="{{ format.format }}">
<button <button
@@ -21,6 +20,13 @@
class="btn btn-small view-exams">View exams</button> class="btn btn-small view-exams">View exams</button>
</form> </form>
<span class="result"></span> <span class="result"></span>
<span class="subs">Also in (subspecialty): {% for sub in format.specialties.all %}
{{sub}},
{% endfor %}
</span>
<br/> <br/>
<pre>{{format.format}}</pre> <pre>{{format.format}}</pre>
</li> </li>
@@ -56,11 +62,18 @@
} }
.result { .result {
float: right; float: right;
border: 1px white dashed;
} }
h5 { h5, h4{
content: ""; content: "";
clear: both; clear: both;
display: table; display: table;
}
.subs {
color: darkgreen;
size: 0.8em;
float: right;
} }
</style> </style>