Sha256: a20347b43a589f64f969eca1dac298885e9547a2ec53d32af6088690a04e5734

Contents?: true

Size: 699 Bytes

Versions: 1

Compression:

Stored size: 699 Bytes

Contents

class PagedownTextInput < Formtastic::Inputs::StringInput


  def input_html_options
    super.merge(:class => "wmd-input", :id => 'wmd-input')
  end

  def to_html
    input_wrapping do

      label_html <<

          template.content_tag(:div, :class => 'wmd-panel' ) do
            template.content_tag(:div, "", :id => 'wmd-button-bar') <<
                builder.text_area(method, input_html_options)
          end <<

          template.content_tag(:div, "", :style=> 'margin-top:20px' ) do
            template.content_tag(:label, "Preview" ) <<
                template.content_tag(:div, "", :id => "wmd-preview", :class => "wmd-panel wmd-preview" )
          end
    end.html_safe
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activeadmin_pagedown-0.0.1 app/inputs/pagedown_text_input.rb