#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . fields [ 'start' ] . widget . attrs [ 'placeholder' ] = 'YYYY-MM-DD' #NEWLINE# self . fields [ 'end' ] . widget . attrs [ 'placeholder' ] = 'YYYY-MM-DD' #NEWLINE# self . helper = BootstrapHelper ( self ) #NEWLINE# idx_start = self . helper [ 'country' ] . slice [ 0 ] [ 0 ] [ 0 ] #NEWLINE# idx_end = self . helper [ 'longitude' ] . slice [ 0 ] [ 0 ] [ 0 ] #NEWLINE# self . helper [ idx_start : ( idx_end + 1 ) ] . wrap_together ( Div , css_class = 'panel-body' ) #NEWLINE# self . helper [ idx_start ] . wrap_together ( Div , css_class = 'panel panel-default' ) #NEWLINE# self . helper . layout [ idx_start ] . insert ( 0 , Div ( HTML ( 'Location details' ) , css_class = 'panel-heading' ) ) #NEWLINE# id_learners_pre = self . helper [ 'learners_pre' ] . slice [ 0 ] [ 0 ] [ 0 ] #NEWLINE# id_learners_longterm = self . helper [ 'learners_longterm' ] . slice [ 0 ] [ 0 ] [ 0 ] #NEWLINE# self . helper [ id_learners_pre : ( id_learners_longterm + 1 ) ] . wrap_together ( Div , css_class = 'panel-body' ) #NEWLINE# self . helper [ id_learners_pre ] . wrap_together ( Div , css_class = 'panel panel-default' ) #NEWLINE# self . helper . layout [ id_learners_pre ] . insert ( 0 , Div ( HTML ( 'Survey results' ) , css_class = 'panel-heading' ) )