Sha256: 3f80b959240635ab23a7e647729d926f7867ea54f36a562f3043fb68f687ee1a

Contents?: true

Size: 909 Bytes

Versions: 58

Compression:

Stored size: 909 Bytes

Contents

module Cms
  module FormTagHelper
    
    # A drop-down is just a specialized HTML select
    
    def drop_down_tag(name, option_tags = nil, options = {}) 
      select_tag(name, option_tags, options)
    end
    
    def drop_down(object, method, choices, options = {}, html_options = {})
      select(object, method, choices, options, html_options)
    end
    
    # A text editor is an HTML WYSIWYG editor.  The result of this
    # will be a div with a select and a textarea in it.
    
    def text_editor_options(options={})
      opts = options.dup
      (opts[:class] ||= "") << " editor"
      opts
    end
    
    def text_editor_tag(name, content = nil, options = {})
      text_area_tag(name, content, text_editor_options(options))
    end
    
    def text_editor(object_name, method, options = {})
      text_area(object_name, method, text_editor_options(options))
    end
        
  end
end

Version data entries

58 entries across 58 versions & 11 rubygems

Version Path
SFEley-browsercms-3.0.2 app/helpers/cms/form_tag_helper.rb
buzzware-browsercms-3.0.2 app/helpers/cms/form_tag_helper.rb
coredumplings-browsercms-3.0.0 app/helpers/cms/form_tag_helper.rb
nate-browsercms-3.0.210 app/helpers/cms/form_tag_helper.rb
nate-browsercms-3.0.211 app/helpers/cms/form_tag_helper.rb
we5-browsercms-3.0.1.1 app/helpers/cms/form_tag_helper.rb
webficient-browsercms-3.0.1 app/helpers/cms/form_tag_helper.rb
webficient-browsercms-3.0.2 app/helpers/cms/form_tag_helper.rb
webficient-browsercms-3.0.3 app/helpers/cms/form_tag_helper.rb
webficient-browsercms-3.0.4 app/helpers/cms/form_tag_helper.rb
browsercms-3.5.7 app/helpers/cms/form_tag_helper.rb
browsercms-3.5.6 app/helpers/cms/form_tag_helper.rb
browsercms-3.5.5 app/helpers/cms/form_tag_helper.rb
browsercms-3.5.4 app/helpers/cms/form_tag_helper.rb
browsercms-3.5.3 app/helpers/cms/form_tag_helper.rb
browsercms-3.5.2 app/helpers/cms/form_tag_helper.rb
browsercms-3.5.1 app/helpers/cms/form_tag_helper.rb
browsercms-3.5.0 app/helpers/cms/form_tag_helper.rb
browsercms-3.5.0.rc3 app/helpers/cms/form_tag_helper.rb
browsercms-3.5.0.rc2 app/helpers/cms/form_tag_helper.rb