PiRSquared17 / activescaffold

Automatically exported from code.google.com/p/activescaffold
MIT License
0 stars 0 forks source link

html_options for form_ui=:checkbox #761

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After I looked into the source code, I noticed that :checkbox form_ui doesn't 
accept any html options unlike other form_ui options.

Now I want to make checkbox fields disabled in update views as follows.

config.columns[:mycolumn].form_ui = :checkbox
config.columns[:mycolumn].options = {:html_options => {:disabled => true}}

Do you think this enhancement request is reasonable?

Thanks,

ebi

Original issue reported on code.google.com by Yuichiro...@gmail.com on 19 Aug 2010 at 6:01

GoogleCodeExporter commented 9 years ago
Added to rails-2.3 and master branches. But it doesn't use :html_options key 
because check_box method only have html options (columns without form_ui 
doesn't use html_options) 

Original comment by sergio.c...@gmail.com on 23 Aug 2010 at 9:26