[web2py] Re: How to mark mandatory fields in SQLFORM.grid?

2014-07-09 Thread Anthony
You can do something like this in your models: required = SPAN('* required', _class='required') db.define_table('mytable', Field('myfield', comment=required)) Use CSS to style the comment (e.g., make the text red). Anthony On Wednesday, July 9, 2014 4:08:00 PM UTC-4, Fabiano Almeida wrote:

[web2py] Re: How to mark mandatory fields in SQLFORM.grid?

2014-07-09 Thread Anthony
There is also this plugin, which automates the process based on field validators: http://dev.s-cubism.com/plugin_notemptymarker Anthony On Wednesday, July 9, 2014 5:12:57 PM UTC-4, Anthony wrote: You can do something like this in your models: required = SPAN('* required', _class='required')

Re: [web2py] Re: How to mark mandatory fields in SQLFORM.grid?

2014-07-09 Thread Fabiano Almeida
Hi Anthony, Great plugin! Thanks, Fabiano. 2014-07-09 18:15 GMT-03:00 Anthony abasta...@gmail.com: There is also this plugin, which automates the process based on field validators: http://dev.s-cubism.com/plugin_notemptymarker Anthony On Wednesday, July 9, 2014 5:12:57 PM UTC-4,