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

Version Path
adva-core-0.0.14 app/views/admin/sections/_select_type.html.rb
adva-core-0.0.13 app/views/admin/sections/_select_type.html.rb
adva-core-0.0.9 app/views/admin/sections/_select_type.html.rb
adva-core-0.0.8 app/views/admin/sections/_select_type.html.rb
adva-core-0.0.7 app/views/admin/sections/_select_type.html.rb
adva-core-0.0.6 app/views/admin/sections/_select_type.html.rb
adva-core-0.0.5 app/views/admin/sections/_select_type.html.rb
adva-core-0.0.4 app/views/admin/sections/_select_type.html.rb
adva-core-0.0.2 app/views/admin/sections/_select_type.html.rb
adva-core-0.0.1 app/views/admin/sections/_select_type.html.rb