Sha256: 7acbf33517fdc30c2576253c68e3eb1c44ec957d7f55e299dce97a1e939e1818
Contents?: true
Size: 583 Bytes
Versions: 10
Compression:
Stored size: 583 Bytes
Contents
class Admin::Sections::SelectType < Minimal::Template def to_html simple_form_for(resources, :as => :section, :url => { :action => :new }, :html => { :method => :get, :class => 'section_type' }) do |f| fieldset do f.label :type div :class => :radio_group do section_types_option_values.each do |name, value| f.radio_button :type, value, :class => :section_type f.label "type_#{value.underscore}", name, :class => :inline end f.submit 'Select', :class => :inline end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems