<s> from crispy_forms . bootstrap import ( Accordion , AccordionGroup , FieldWithButtons , <EOL> StrictButton , Tab ) <EOL> from crispy_forms . layout import Field , HTML , Layout <EOL> from crispy_forms . helper import FormHelper <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from haystack . forms import ModelSearchForm <EOL> class SearchForm ( ModelSearchForm ) : <EOL> def _wrap_all ( self ) : <EOL> self . helper . filter ( <EOL> str , max_level = <NUM_LIT:4> ) . wrap ( <EOL> Field , css_class = "<STR_LIT>" ) <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> super ( SearchForm , self ) . __init__ ( * args , ** kwargs ) <EOL> self . helper = FormHelper ( self ) <EOL> self . helper . form_tag = False <EOL> self . helper . layout = Layout ( <EOL> Accordion ( <EOL> Field ( '<STR_LIT:q>' , placeholder = _ ( "<STR_LIT>" ) , css_class = "<STR_LIT>" , wrapper_class = '<STR_LIT>' ) , <EOL> StrictButton ( _ ( "<STR_LIT>" ) , type = '<STR_LIT>' , css_class = "<STR_LIT>" ) , <EOL> AccordionGroup ( _ ( '<STR_LIT>' ) , <EOL> Field ( '<STR_LIT>' ) <EOL> ) <EOL> ) <EOL> ) </s>
