.
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user