From 71e370980efa9ff69cd176d6af431c99b9f080e4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 10 Jul 2018 13:34:38 +0200 Subject: UI: improve layout and action for search --- ishtar_common/forms_common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ishtar_common/forms_common.py') diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index 43652ba07..397b87815 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -1280,11 +1280,11 @@ AuthorFormset.form_slug = "authors" class SearchQueryForm(forms.Form): - query = forms.CharField(max_length=None, label=_(u"Query"), disabled=True, - initial='*') - search_query = forms.ChoiceField(label=_(u"Search query"), required=False, + query = forms.CharField(max_length=None, label=_(u"Query"), initial='*', + widget=forms.HiddenInput) + search_query = forms.ChoiceField(label="", required=False, choices=[]) - label = forms.CharField(max_length=None, label=_(u"Name"), required=False) + label = forms.CharField(label="", max_length=None, required=False) is_alert = forms.BooleanField(label=_(u"Is an alert"), required=False) create_or_update = forms.ChoiceField( choices=(('create', _(u"Create")), -- cgit v1.2.3