Implement filtering functionality
This commit is contained in:
parent
d0feff7d74
commit
e52753446b
3 changed files with 77 additions and 2 deletions
|
@ -10,6 +10,22 @@
|
|||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<h2><i class="fas fa-filter"></i>Filter</h2>
|
||||
{{ form_start(filter_form) }}
|
||||
<div class="row">
|
||||
<div class="col-sm">
|
||||
{{ form_row(filter_form.zipCode) }}
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
{{ form_row(filter_form.distance) }}
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<button type="submit" class="btn btn-lg btn-primary">Filter</button>
|
||||
</div>
|
||||
</div>
|
||||
{{ form_end(filter_form) }}
|
||||
|
||||
|
||||
<h1>Offers</h1>
|
||||
{% if offers|length > 0 %}
|
||||
<div class="card-deck d-flex justify-content-around justify-content-sm-around justify-content-md-between flex-wrap">
|
||||
|
|
Reference in a new issue