From e46bdb2d9ec4d220a27bf44cb3a71a60a60a7506 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 14 Nov 2017 17:48:20 +0100 Subject: UI: criteria search --- ishtar_common/forms.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/forms.py') diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index 4f59dbd6d..293193162 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -162,6 +162,10 @@ class TableSelect(forms.Form): # no field is required for search for k in self.fields: self.fields[k].required = False + cls = 'form-control' + if k == 'search_vector': + cls += " search-vector" + self.fields[k].widget.attrs['class'] = cls key = self.fields.keys()[0] self.fields[key].widget.attrs['autofocus'] = 'autofocus' -- cgit v1.2.3