#NEWLINE# @ presentation . render_for ( Login , 'form' ) #NEWLINE# def render_Login_form( self , h , comp , * args ) : #NEWLINE# #INDENT# with h . div ( class_ = 'login databaseLogin' ) : #NEWLINE# #INDENT# with h . form : #NEWLINE# #INDENT# ( h << h . input ( type = 'text' , name = '__ac_name' , id = 'username' , value = self . default_username , placeholder = _ ( 'Enter username' ) ) ) #NEWLINE# ( h << h . input ( type = 'password' , name = '__ac_password' , id = 'password' , value = self . default_password , placeholder = _ ( 'Enter password' ) ) ) #NEWLINE# ( h << h . a ( _ ( 'Forgot password?' ) ) . action ( self . content . call , self . pwd_reset ) ) #NEWLINE# with h . div ( class_ = 'actions' ) : #NEWLINE# #INDENT# ( h << h . input ( type = 'submit' , value = _ ( 'Sign in' ) , class_ = 'btn btn-primary' ) . action ( self . log_in , comp ) ) #NEWLINE# with h . div : #NEWLINE# #INDENT# ( h << _ ( 'No account yet? ' ) ) #NEWLINE# ( h << h . a ( _ ( 'Sign up' ) ) . action ( self . content . call , self . registration_task ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return h . root