This commit is contained in:
Ross
2024-10-28 16:50:11 +00:00
parent 68c9c33f4c
commit 0bc6d63c7a
+24 -4
View File
@@ -10,10 +10,19 @@
<ul>
{% for format in formats %}
<li>
Name: {{format}}<br/>
<pre>
{{format.format}}
</pre>
<h5>Name: {{format}}</h5>
<form>
<input type="hidden" name="question" value="{{ format.format }}">
<button
hx-post="{% url 'oef:entries_by_question' %}"
hx-target="next .result"
_="on click toggle @disabled until htmx:afterOnLoad then remove me"
class="btn btn-small view-exams">View exams</button>
</form>
<span class="result"></span>
<br/>
<pre>{{format.format}}</pre>
</li>
@@ -42,6 +51,17 @@
.specialties {
color: green;
}
.view-exams {
float: right;
}
.result {
float: right;
}
h5 {
content: "";
clear: both;
display: table;
}
</style>
{% endblock css %}