Merge pull request #1886 from bookwyrm-social/filter-panels-display
Fixes form element display inside details panel
This commit is contained in:
commit
f2d2d050f5
|
@ -2,8 +2,9 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block filter %}
|
{% block filter %}
|
||||||
<label class="label is-block" for="id_format">{% trans "Format:" %}</label>
|
<div class="control">
|
||||||
<div class="select">
|
<label class="label is-block" for="id_format">{% trans "Format:" %}</label>
|
||||||
|
<div class="select">
|
||||||
<select id="id_format" name="format">
|
<select id="id_format" name="format">
|
||||||
<option value="">{% trans "Any" %}</option>
|
<option value="">{% trans "Any" %}</option>
|
||||||
{% for format in formats %}{% if format %}
|
{% for format in formats %}{% if format %}
|
||||||
|
@ -12,5 +13,6 @@
|
||||||
</option>
|
</option>
|
||||||
{% endif %}{% endfor %}
|
{% endif %}{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block filter %}
|
{% block filter %}
|
||||||
<label class="label is-block" for="id_language">{% trans "Language:" %}</label>
|
<div class="control">
|
||||||
<div class="select">
|
<label class="label is-block" for="id_language">{% trans "Language:" %}</label>
|
||||||
|
<div class="select">
|
||||||
<select id="id_language" name="language">
|
<select id="id_language" name="language">
|
||||||
<option value="">{% trans "Any" %}</option>
|
<option value="">{% trans "Any" %}</option>
|
||||||
{% for language in languages %}
|
{% for language in languages %}
|
||||||
|
@ -12,5 +13,6 @@
|
||||||
</option>
|
</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block filter %}
|
{% block filter %}
|
||||||
<label class="label" for="id_search">{% trans "Search editions" %}</label>
|
<div class="control">
|
||||||
<input type="text" class="input" name="q" value="{{ request.GET.q|default:'' }}" id="id_search">
|
<label class="label" for="id_search">{% trans "Search editions" %}</label>
|
||||||
|
<input type="text" class="input" name="q" value="{{ request.GET.q|default:'' }}" id="id_search">
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -38,9 +38,11 @@
|
||||||
{% block filter_fields %}
|
{% block filter_fields %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="button is-primary is-small">
|
<div class="control">
|
||||||
|
<button type="submit" class="button is-primary">
|
||||||
{% trans "Apply filters" %}
|
{% trans "Apply filters" %}
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
|
|
Loading…
Reference in New Issue