[web2py] Re: Retype password: None
Hmm I can't figure out how to get the entropy check on a custom form. I'm using a vanilla Twitter Bootstrap without all the web2py stuff because it was breaking my layout. Is there a way to get password entropy check on custom forms with plain Twitter Bootstrap css files?? On Monday, November 12, 2012 4:52:53 PM UTC, Daniele wrote: > > Once I have the class, how can I get the jQuery entropy check for password > strength to change the background color? Again, this is on a custom form so > I'm having quite some trouble with this... > > On Monday, November 12, 2012 3:51:48 PM UTC, Massimo Di Pierro wrote: >> >> form.element(name='email').add_class('test') >> >> On Sunday, 11 November 2012 21:03:04 UTC-6, Daniele wrote: >>> >>> I am writing a custom registration form. I noticed that in the >>> controller, if I put >>> >>> def signup(): >>> return dict(form=auth.register()) >>> >>> I get a Retype password field. However, if I put >>> >>> def signup(): >>> form = SQLFORM(auth.settings.table_user, >>> labels = {'email':'Email address'}, >>> submit_button = 'Sign up', >>> separator = '', _class='form-horizontal') >>> return dict(form=form) >>> >>> I get None for the Retype password field. How can I fix this? >>> >>> Also, how can I specify the class of the fields and buttons?? >>> >>> Thanks! >>> >> --
[web2py] Re: Retype password: None
Once I have the class, how can I get the jQuery entropy check for password strength to change the background color? Again, this is on a custom form so I'm having quite some trouble with this... On Monday, November 12, 2012 3:51:48 PM UTC, Massimo Di Pierro wrote: > > form.element(name='email').add_class('test') > > On Sunday, 11 November 2012 21:03:04 UTC-6, Daniele wrote: >> >> I am writing a custom registration form. I noticed that in the >> controller, if I put >> >> def signup(): >> return dict(form=auth.register()) >> >> I get a Retype password field. However, if I put >> >> def signup(): >> form = SQLFORM(auth.settings.table_user, >> labels = {'email':'Email address'}, >> submit_button = 'Sign up', >> separator = '', _class='form-horizontal') >> return dict(form=form) >> >> I get None for the Retype password field. How can I fix this? >> >> Also, how can I specify the class of the fields and buttons?? >> >> Thanks! >> > --
[web2py] Re: Retype password: None
form.element(name='email').add_class('test') On Sunday, 11 November 2012 21:03:04 UTC-6, Daniele wrote: > > I am writing a custom registration form. I noticed that in the controller, > if I put > > def signup(): > return dict(form=auth.register()) > > I get a Retype password field. However, if I put > > def signup(): > form = SQLFORM(auth.settings.table_user, > labels = {'email':'Email address'}, > submit_button = 'Sign up', > separator = '', _class='form-horizontal') > return dict(form=form) > > I get None for the Retype password field. How can I fix this? > > Also, how can I specify the class of the fields and buttons?? > > Thanks! > --