Re: [web2py] Re: mobile friendly login page
Thanks. It looks lovely. Let me try it. On Thu, 25 Oct 2018, 18:14 Christian Varas wrote: > Sorry the image in the previous mails is broken, here is it: > https://imgur.com/a/I1SsGlp > > Cheers > Chris. > > El jue., 25 oct. 2018 a las 10:57, Lovedie JC () > escribió: > >> Works good. >> How about app buttons in a single line/row? >> Regards >> >> On Thu, 25 Oct 2018 at 16:22, sandeep patel >> wrote: >> >>> @lbjc >>> Add some margin between the buttons. >>> you can try this. Add this in user.html file >>> >>> .btn{ >>> margin-left: 10px; >>> margin-top: 10px; >>> } >>> >>> >>> Best/ >>> SP >>> >>> On Thu, Oct 25, 2018 at 6:34 PM mostwanted wrote: >>> The attachment link gives *error 404* On Thursday, October 25, 2018 at 2:06:15 PM UTC+2, lbjc...@gmail.com wrote: > > The default login page on the desktop looks absolutely good. The > mobile page,see attached needs some workup. Is there a way to align the > buttons? > Regards > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. >>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to web2py+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: mobile friendly login page
Sorry the image in the previous mails is broken, here is it: https://imgur.com/a/I1SsGlp Cheers Chris. El jue., 25 oct. 2018 a las 10:57, Lovedie JC () escribió: > Works good. > How about app buttons in a single line/row? > Regards > > On Thu, 25 Oct 2018 at 16:22, sandeep patel > wrote: > >> @lbjc >> Add some margin between the buttons. >> you can try this. Add this in user.html file >> >> .btn{ >> margin-left: 10px; >> margin-top: 10px; >> } >> >> >> Best/ >> SP >> >> On Thu, Oct 25, 2018 at 6:34 PM mostwanted wrote: >> >>> The attachment link gives *error 404* >>> >>> On Thursday, October 25, 2018 at 2:06:15 PM UTC+2, lbjc...@gmail.com >>> wrote: The default login page on the desktop looks absolutely good. The mobile page,see attached needs some workup. Is there a way to align the buttons? Regards >>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to web2py+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: mobile friendly login page
hi, this is my login page, I'm using adminLTE as template, try this example, i might work for you, adminLTE works with boostrap like web2py, so I think that should work. [image: image.png] controller: def user(): return dict(page="Bienvenido", icon="", title="", form=auth()) *this is the view:* {{extend 'layout_climbersoul.html'}} {{=T('Sign Up') if request.args(0) == 'register' else T('Log In') if request.args(0) == 'login' else T(request.args(0).replace('_',' ').title())}} {{ if request.args(0)=='login': if not 'register' in auth.settings.actions_disabled: form.add_button(T('Sign Up'),URL(args='register', vars={'_next': request.vars._next} if request.vars._next else None),_class='btn btn-default') pass if not 'request_reset_password' in auth.settings.actions_disabled: form.add_button(T('Lost Password'),URL(args='request_reset_password'),_class='btn btn-default') pass pass }} {{=form}} If the above doesn't work, I think you can customize the auth form like in the SQLFORM. Example: form_add_lugar = SQLFORM.factory( Field("Nombre", requires=IS_NOT_EMPTY()), Field("Pais", default=1, requires=IS_IN_SET(range(1, (len(country_list) + 1)), country_list)), Field("Region", label="Región", default='Ninguna', requires=IS_IN_SET(regiones)), # captcha_field(), _name="form_add_Lugar", submit_button="Agregar", ) *# Here you can add/change **attributes* form_add_lugar[0][0][0]['_class'] = "control-label col-sm-2" form_add_lugar[0][1][0]['_class'] = "control-label col-sm-2" form_add_lugar[0][2][0]['_class'] = "control-label col-sm-2" I hope this can help Cheers. Chris. El jue., 25 oct. 2018 a las 10:57, Lovedie JC () escribió: > Works good. > How about app buttons in a single line/row? > Regards > > On Thu, 25 Oct 2018 at 16:22, sandeep patel > wrote: > >> @lbjc >> Add some margin between the buttons. >> you can try this. Add this in user.html file >> >> .btn{ >> margin-left: 10px; >> margin-top: 10px; >> } >> >> >> Best/ >> SP >> >> On Thu, Oct 25, 2018 at 6:34 PM mostwanted wrote: >> >>> The attachment link gives *error 404* >>> >>> On Thursday, October 25, 2018 at 2:06:15 PM UTC+2, lbjc...@gmail.com >>> wrote: The default login page on the desktop looks absolutely good. The mobile page,see attached needs some workup. Is there a way to align the buttons? Regards >>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to web2py+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: mobile friendly login page
Works good. How about app buttons in a single line/row? Regards On Thu, 25 Oct 2018 at 16:22, sandeep patel wrote: > @lbjc > Add some margin between the buttons. > you can try this. Add this in user.html file > > .btn{ > margin-left: 10px; > margin-top: 10px; > } > > > Best/ > SP > > On Thu, Oct 25, 2018 at 6:34 PM mostwanted wrote: > >> The attachment link gives *error 404* >> >> On Thursday, October 25, 2018 at 2:06:15 PM UTC+2, lbjc...@gmail.com >> wrote: >>> >>> The default login page on the desktop looks absolutely good. The mobile >>> page,see attached needs some workup. Is there a way to align the buttons? >>> Regards >>> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: mobile friendly login page
@lbjc Add some margin between the buttons. you can try this. Add this in user.html file .btn{ margin-left: 10px; margin-top: 10px; } Best/ SP On Thu, Oct 25, 2018 at 6:34 PM mostwanted wrote: > The attachment link gives *error 404* > > On Thursday, October 25, 2018 at 2:06:15 PM UTC+2, lbjc...@gmail.com > wrote: >> >> The default login page on the desktop looks absolutely good. The mobile >> page,see attached needs some workup. Is there a way to align the buttons? >> Regards >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: mobile friendly login page
The attachment link gives *error 404* On Thursday, October 25, 2018 at 2:06:15 PM UTC+2, lbjc...@gmail.com wrote: > > The default login page on the desktop looks absolutely good. The mobile > page,see attached needs some workup. Is there a way to align the buttons? > Regards > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.