mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
fix search panel styling
This commit is contained in:
parent
4ab5d15ee6
commit
91561e9ca5
@ -5,37 +5,38 @@
|
|||||||
Search
|
Search
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<form action="." method="get" class="form">
|
<form action="." method="get">
|
||||||
{% for field in filter_form.hidden_fields %}
|
{% for field in filter_form.hidden_fields %}
|
||||||
{{ field }}
|
{{ field }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for field in filter_form.visible_fields %}
|
{% for field in filter_form.visible_fields %}
|
||||||
<div class="row mb-3">
|
{% if field.name == "q" %}
|
||||||
<div class="col">
|
<div class="input-group mb-3">
|
||||||
{% if field.name == "q" %}
|
<input type="text" name="q" class="form-control" placeholder="Search" {% if request.GET.q %}value="{{ request.GET.q }}" {% endif %}/>
|
||||||
<div class="input-group">
|
<button type="submit" class="btn btn-primary">
|
||||||
<input type="text" name="q" class="form-control" placeholder="Search" {% if request.GET.q %}value="{{ request.GET.q }}" {% endif %}/>
|
<i class="bi bi-search"></i>
|
||||||
<button type="submit" class="btn btn-primary">
|
</button>
|
||||||
<i class="bi bi-search"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
{% elif field|widget_type == 'checkboxinput' %}
|
|
||||||
<label for="{{ field.id_for_label }}">{{ field }} {{ field.label }}</label>
|
|
||||||
{% else %}
|
|
||||||
{{ field.label_tag }}
|
|
||||||
{{ field }}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
{% elif field|widget_type == 'checkboxinput' %}
|
||||||
|
<div class="form-check mb-3">
|
||||||
|
<label class="form-check-label" for="{{ field.id_for_label }}">{{ field.label }}</label>
|
||||||
|
{{ field }}
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
{{ field }}
|
||||||
|
{{ field.label_tag }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div class="card-footer text-end noprint px-0 border-0">
|
|
||||||
<button type="submit" class="btn btn-primary">
|
|
||||||
<i class="bi bi-search"></i> Apply
|
|
||||||
</button>
|
|
||||||
<a href="." class="btn btn-outline-dark">
|
|
||||||
<i class="bi bi-x"></i> Clear
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="card-footer text-end noprint border-0">
|
||||||
|
<a href="." class="btn btn-sm btn-outline-dark m-1">
|
||||||
|
<i class="bi bi-x"></i> Clear
|
||||||
|
</a>
|
||||||
|
<button type="submit" class="btn btn-sm btn-primary m-1">
|
||||||
|
<i class="bi bi-search"></i> Apply
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user