#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( ExampleUserLoginForm , self ) . __init__ ( * kwargs , ** kwargs ) #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 ( _ ( 'Basic Information' ) , 'full_name' , crispy . Field ( 'email' ) , 'password' , 'password_repeat' ) , crispy . Fieldset ( _ ( 'Advanced Information' ) , 'is_staff' , twbscrispy . PrependedText ( 'phone_number' , '+' , placeholder = '15555555555' ) ) , hqcrispy . FormActions ( twbscrispy . StrictButton ( _ ( 'Create User' ) , type = 'submit' , css_class = 'btn-primary' ) , twbscrispy . StrictButton ( _ ( 'Cancel' ) , css_class = 'btn-default' ) ) )