.
This commit is contained in:
@@ -10,10 +10,19 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{% for format in formats %}
|
{% for format in formats %}
|
||||||
<li>
|
<li>
|
||||||
Name: {{format}}<br/>
|
<h5>Name: {{format}}</h5>
|
||||||
<pre>
|
|
||||||
{{format.format}}
|
<form>
|
||||||
</pre>
|
<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>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
@@ -42,6 +51,17 @@
|
|||||||
.specialties {
|
.specialties {
|
||||||
color: green;
|
color: green;
|
||||||
}
|
}
|
||||||
|
.view-exams {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.result {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
h5 {
|
||||||
|
content: "";
|
||||||
|
clear: both;
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{% endblock css %}
|
{% endblock css %}
|
||||||
|
|||||||
Reference in New Issue
Block a user