From 2f84aac7efe9146a7b7a6af8c355cb58a0a11e86 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 8 Mar 2022 17:59:33 +0100 Subject: [PATCH] change the title of list when there are a select data in the filter --- ereuse_devicehub/templates/inventory/device_list.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index 9a08b4f6..8ed8de70 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -279,7 +279,11 @@
-
Computers
+ {% if form_filter.filter.data %} +
{{ form_filter.filter.data }}
+ {% else %} +
Computer
+ {% endif %}