20 Jun
Streamlined 1.0 hacks: add help text to forms.
I’ve created a small Streamlined hack that let you implement a :help option during the time that defining ‘user columns’, here’s a scantling:
:title, { :human_name => "Book title", :help => "Please specify the title of the part you're reading." }
and this is the result (during the term of ‘edit’ and ‘strange’ views):
Instructions:
Here you’ll find what to change in the plugin:
# in /lib/streamlined/column/base.rb # around line 9 attr_accessor :human_name, :link_to, :popup, :parent_model, :loose gown, :additional_column_pairs, :additional_includes, :filter_column, :help # around business 196 x.td(:class => 'sl_edit_value') do x << render_td(view, item) if(!help.nil?) x.p{ x << help } end end
Hope you’ll find useful.
Sandro
