Sha256: 4b868cc98433ca312d177b590cb071d3977cf2a8085d6e83b42f5f1f32cb567e

Contents?: true

Size: 914 Bytes

Versions: 10

Compression:

Stored size: 914 Bytes

Contents

class Installations::New < Adva::View::Form
  include do
    def form_tag
      h2 :'.title'
      p :'.welcome'
      super
    end

    def form_arguments
      [resource, { :url => installations_path }]
    end

    def fields
      form.label :name
      form.text_field :name

      form.simple_fields_for(:sections) do |s|
        s.input :name, :label => t(:'.section_name')

        s.label :type
        section_types_option_values.each do |name, value|
          s.radio_button :type, value
          s.label :"type_#{value.underscore}", name, :class => :inline
        end
      end
    end

    # f.field_set :admin_account do
    #   fields_for @user do |user|
    #     column do
    #       user.text_field :email, :label => true, :tabindex => 3
    #     end
    #     column do
    #       user.password_field :password, :label => true, :tabindex => 4
    #     end
    #   end
    # end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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