Sha256: 221592e1d679555a4d6a1be7e1c56b5d070c33f9e950c3d4cbee2e605e71397f

Contents?: true

Size: 247 Bytes

Versions: 17

Compression:

Stored size: 247 Bytes

Contents

ActionView::Helpers::FormTagHelper.module_eval do

  def required_label_tag(name, text = nil, options = {})
    options = {:class => "required"}.merge!(options)
    text ||= "#{name.to_s.humanize} *"

    label_tag(name, text, options)
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
refinerycms-core-2.1.5 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.1.4 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.1.3 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.1.2 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.1.1 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.1.0 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.0.10 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.0.9 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.0.8 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.0.7 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.0.6 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.0.5 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.0.4 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.0.3 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.0.2 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.0.1 lib/refinery/ext/action_view/helpers/form_tag_helper.rb
refinerycms-core-2.0.0 lib/refinery/ext/action_view/helpers/form_tag_helper.rb