Persit checkbox state

This commit is contained in:
Ondřej 2023-08-21 11:12:33 +02:00
parent 89f2a7c866
commit 901817409e

View file

@ -36,14 +36,15 @@
<input type="hidden" name="page" value="{{ page }}" /> <input type="hidden" name="page" value="{{ page }}" />
{% endif %} {% endif %}
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" name="expand_diffs" value="true" /> <input type="checkbox" name="expand_diffs" value="true" {{ "checked" if expand_diffs else "" }} />
<p>Expand diffs</p> <p>Expand diffs</p>
</label> </label>
</form> </form>
</div> </div>
</div> </div>
<div class="container mb-8" id="diff-list"> <div id="diff-list">
<div class="container mb-8">
{% for diff in diffs %} {% for diff in diffs %}
<article class="card px-5 py-4 mb-4"> <article class="card px-5 py-4 mb-4">
<p class="flex gap-x-4 gap-y-2 mb-3 flex-wrap shrink-0"> <p class="flex gap-x-4 gap-y-2 mb-3 flex-wrap shrink-0">
@ -86,14 +87,15 @@
{% endif %} {% endif %}
</article> </article>
{% endfor %} {% endfor %}
</div> </div>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<div class="container mb-3"> <div class="container mb-3">
{{ pagination.links }} {{ pagination.links }}
</div> </div>
</div> </div>
<div class="container text-sm text-gray-500"> <div class="container text-sm text-gray-500">
{{ pagination.info }} {{ pagination.info }}
</div>
</div> </div>
{% endblock body %} {% endblock body %}