Sha256: 6708255802ef874223e8ac7a038e6e0672b656a0ee70c5eea95afde603ccc6d6
Contents?: true
Size: 930 Bytes
Versions: 3
Compression:
Stored size: 930 Bytes
Contents
<% input_class = '' if ([:prepend, :append, :prepend_html, :append_html] & options.keys).present? input_class << ' input-prepend' if options[:prepend] || options[:prepend_html] input_class << ' input-append' if options[:append] || options[:append_html] end input_class.strip! %> <%= render :partial => 'formatted_form/templates/label', :locals => { :options => options } %> <% if input_class.present? %> <%= content_tag(:div, :class => input_class) do %> <%= options[:prepend_html].html_safe if options[:prepend_html].present? %> <%= content_tag(:span, options[:prepend], :class => 'add-on') if options[:prepend].present? %> <%= options[:content] %> <%= content_tag(:span, options[:append], :class => 'add-on') if options[:append].present? %> <%= options[:append_html].html_safe if options[:append_html].present? %> <% end %> <% else %> <%= options[:content] %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems