Hi,
To solve the first issue try:
form.element(_type='submit').update(_value='Log in', _class='btn btn-gray')
and in your stylesheet style .btn-gray
With regard to your second issue, I added the following lines of code to
the function def formstyle_bootstrap(form, fields): in gluon/sqlhtml
because I wanted to solve this issue for all my forms:
parent = FIELDSET()
for id, label, controls, help in fields:
if not help:
_help = ''
else:
# wrappers
_help = SPAN(help, _class='help-block')
# embed _help into _controls
_controls = DIV(controls, _help)
To solve the issue for just the login form, you could use a custom form,
something like:
<div id="web2py_user_form" class="form">
<form action="" enctype="multipart/form-data" method="post" role="form">
<fieldset>
<div class="form-group">
{{=form.custom.widget.username}}
</div> <!-- /.form-group -->
<div class="form-group">
{{=form.custom.widget.password}}
</div> <!-- /.form-group -->
<div class="form-group">
{{=form.custom.submit}}
{{=form.custom.end}}
</div> <!-- /.form-group -->
</fieldset>
</div> <!-- /.form -->
Kind regards,
Annet
--
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.