To style my forms the Bootstrap 3 way I created a module with the function
def bs3(form, fields):
In bs3 I have the following line of code:
...
elif isinstance(controls, SELECT):
controls.add_class('form-control')
...
This works well it generates the following select:
<select id="img_hero_navID" class="generic-widget form-control"
name="navID">
However, when the select does not validate, the select changes to:
<select id="img_hero_navID" class="generic-widget invalidinput"
name="navID">
'form-control' is removed from the class, and the select is no longer style
the bs3 way.
I've not been able to figure out how to add 'form-group' to the class in
case of
invalid input, how do I solve this issue?
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.