#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( SelectControlDemoForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . fields [ 'language' ] . choices = _language_resource ( ) #NEWLINE# self . fields [ 'genres' ] . choices = _genre_resource ( ) #NEWLINE# self . helper = FormHelper ( ) #NEWLINE# self . helper . form_class = 'form-horizontal' #NEWLINE# self . helper . label_class = 'col-sm-3 col-md-2 col-lg-2' #NEWLINE# self . helper . field_class = 'col-sm-9 col-md-8 col-lg-6' #NEWLINE# self . helper . layout = crispy . Layout ( crispy . Fieldset ( _ ( 'Standard Selects' ) , 'office' , 'colors' , 'language' , 'genres' ) , hqcrispy . FormActions ( twbscrispy . StrictButton ( _ ( 'Update Selects' ) , type = 'submit' , css_class = 'btn-primary' ) , offsets = 'col-sm-offset-3 col-md-offset-2 col-lg-offset-2' ) )