Sha256: d6525db32beaa9040dd8fde86bc14b12d86e441cb48279f7ca08463c4cca7beb
Contents?: true
Size: 660 Bytes
Versions: 1
Compression:
Stored size: 660 Bytes
Contents
class PagedownTextInput < Formtastic::Inputs::StringInput def input_html_options super.merge(:class => "wmd-input") end def to_html input_wrapping do label_html << template.content_tag(:div, :class => 'wmd-panel' ) do template.content_tag(:div, "", :class => '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, "", :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.2 | app/inputs/pagedown_text_input.rb |