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'}}
<div class="row">
<div class="col-md-6">
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">{{=T('Sign Up') if request.args(0) ==
'register' else T('Log In') if request.args(0) == 'login' else
T(request.args(0).replace('_',' ').title())}}</h3>
</div>
<!-- /.box-header -->
<!-- form start -->
<div class="box-body">
{{
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}}
</div>
<!-- /.box-footer -->
</div>
</div>
</div>
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 (<[email protected]>)
escribió:
> Works good.
> How about app buttons in a single line/row?
> Regards
>
> On Thu, 25 Oct 2018 at 16:22, sandeep patel <[email protected]>
> wrote:
>
>> @lbjc
>> Add some margin between the buttons.
>> you can try this. Add this in user.html file
>> <style>
>> .btn{
>> margin-left: 10px;
>> margin-top: 10px;
>> }
>> </style>
>>
>> Best/
>> SP
>>
>> On Thu, Oct 25, 2018 at 6:34 PM mostwanted <[email protected]> wrote:
>>
>>> The attachment link gives *error 404*
>>>
>>> On Thursday, October 25, 2018 at 2:06:15 PM UTC+2, [email protected]
>>> 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 [email protected].
>>> 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 [email protected].
>> 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 [email protected].
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.