Refactor filter form HTML markup

Avoid using row & col
This commit is contained in:
Santiago L 2022-03-15 10:59:55 +01:00
parent d20bd63cae
commit 678dfb0ea9
1 changed files with 11 additions and 16 deletions

View File

@ -286,25 +286,20 @@
{% endif %} {% endif %}
<div class="tab-content pt-2"> <div class="tab-content pt-2">
{% if form_filter.filter.data %}
<h5 class="card-title">{{ form_filter.filter.data }}</h5>
{% else %}
<h5 class="card-title">Computer</h5>
{% endif %}
<form method="get"> <form method="get">
<div class="row"> <div class="d-flex mt-4 mb-4">
<div class="col-2"> {% for f in form_filter %}
{% for f in form_filter %} {{ f }}
{{ f }} {% endfor %}
{% endfor %} <input type="submit" class="ms-2 btn btn-primary" value="Filter" />
</div>
<div class="col-1">
<input type="submit" class="btn btn-primary" value="Search" />
</div>
<div class="col"></div>
</div> </div>
</form> </form>
<p class="mt-3">
Displaying devices of type
<em>{{ form_filter.filter.data or "Computer" }}</em>
</p>
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>