2017-01-24 12:05:39 -05:00
|
|
|
{% load form_helpers %}
|
|
|
|
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Search
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
2017-01-24 12:05:39 -05:00
|
|
|
<form action="." method="get" class="form">
|
2020-08-06 09:20:20 -04:00
|
|
|
{% for field in filter_form.hidden_fields %}
|
|
|
|
{{ field }}
|
|
|
|
{% endfor %}
|
|
|
|
{% for field in filter_form.visible_fields %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col">
|
2020-08-06 09:20:20 -04:00
|
|
|
{% if field.name == "q" %}
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" name="q" class="form-control" placeholder="Search" {% if request.GET.q %}value="{{ request.GET.q }}" {% endif %}/>
|
2021-03-13 02:19:42 -07:00
|
|
|
<button type="submit" class="btn btn-primary">
|
|
|
|
<i class="bi bi-search"></i>
|
|
|
|
</button>
|
2020-08-06 09:20:20 -04:00
|
|
|
</div>
|
|
|
|
{% elif field|widget_type == 'checkboxinput' %}
|
|
|
|
<label for="{{ field.id_for_label }}">{{ field }} {{ field.label }}</label>
|
|
|
|
{% else %}
|
|
|
|
{{ field.label_tag }}
|
|
|
|
{{ field }}
|
|
|
|
{% endif %}
|
2021-03-13 02:19:42 -07:00
|
|
|
</div>
|
2017-01-24 12:05:39 -05:00
|
|
|
</div>
|
2020-08-06 09:20:20 -04:00
|
|
|
{% endfor %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card-footer text-end noprint px-0 border-0">
|
2020-08-06 09:20:20 -04:00
|
|
|
<button type="submit" class="btn btn-primary">
|
2021-03-13 02:19:42 -07:00
|
|
|
<i class="bi bi-search"></i> Apply
|
2020-08-06 09:20:20 -04:00
|
|
|
</button>
|
2021-03-13 02:19:42 -07:00
|
|
|
<a href="." class="btn btn-outline-dark">
|
|
|
|
<i class="bi bi-x"></i> Clear
|
2020-08-06 09:20:20 -04:00
|
|
|
</a>
|
|
|
|
</div>
|
2016-07-29 12:51:23 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|