#NEWLINE# @ presentation . render_for ( EmailRegistrationForm ) #NEWLINE# def render_RegistrationForm( self , h , comp , * args ) : #NEWLINE# #INDENT# ( h << self . header . render ( h , 'hide' ) ) #NEWLINE# with h . div ( class_ = 'regForm' ) : #NEWLINE# #INDENT# with h . form ( autocomplete = 'off' ) . post_action ( self . validate_emails_match ) : #NEWLINE# #INDENT# ( h << h . p ( ( _ ( 'Your profile is missing an email address. You have to enter a valid email address to open an account on %s' ) % self . app_title ) ) ) #NEWLINE# with h . div ( class_ = 'fields' ) : #NEWLINE# #INDENT# fields = ( ( _ ( 'Email address' ) , 'email' , 'text' , self . email ) , ( _ ( 'Email address (repeat)' ) , 'email' , 'text' , input_type . email_repeat ) ) #NEWLINE# for ( label , css_class , input_type , property ) in fields : #NEWLINE# #INDENT# with h . div ( class_ = ( '%s-field field' % css_class ) ) : #NEWLINE# #INDENT# id_ = h . generate_id ( 'field' ) #NEWLINE# with h . label ( for_ = id_ ) : #NEWLINE# #INDENT# ( h << label ) #NEWLINE# #UNINDENT# ( h << h . input ( id = id_ , type = input_type , value = property ( ) ) . action ( property ) . error ( property . error ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# with h . div ( class_ = 'actions' ) : #NEWLINE# #INDENT# ( h << h . input ( type = 'submit' , value = _ ( 'Create new account' ) , class_ = 'btn btn-primary' ) . action ( self . on_ok , comp , h . request . application_url ) ) #NEWLINE# #UNINDENT# ( ( h << _ ( 'Already have an account? ' ) ) << h . a ( _ ( 'Log in' ) ) . action ( comp . answer , ( None , None ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return h . root