I have formstyle set to boostrap3_stacked, in case of a readonly field
these fields are rendered rather ugly. I added the following line of
code to the formstyle_bootstrap3_stacked(form, fields) function
if isinstance(controls, basestring) or isinstance(controls, int):
_controls = DIV(controls, _class='form-control', _readonly=True)
this partially solves my problem, in case of
IS_IN_SET([(1, 'pending'), (2, 'accepted'), (3, 'blocked')]) the fields
containing,
1, 2 or 3 are still rendered ugly.
Why doesn't isinstance(controls, int) take of rendering them readonly.
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.