change the title of list when there are a select data in the filter

This commit is contained in:
Cayo Puigdefabregas 2022-03-08 17:59:33 +01:00
parent b16fdd59f9
commit 2f84aac7ef
1 changed files with 5 additions and 1 deletions

View File

@ -279,7 +279,11 @@
<div class="tab-content pt-2">
<h5 class="card-title">Computers</h5>
{% 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">
<div class="row">
<div class="col-2">