Sha256: f0819bfbde27de63a58c1f4a0ba111006cc62b334d5f0ee55e134a7ab33dc4a3

Contents?: true

Size: 802 Bytes

Versions: 1

Compression:

Stored size: 802 Bytes

Contents

class AuthenticationForm < Dynamics::Form
    
  def on_submit
    super 
    
    # email = data_source.find('Email')
    # password = data_source.find('Password')       
  end
      
protected
  
  def viewDidLoad
    super
    
    auth_dsl = {
      controller: self,
      sections: 
      [
        {
          rows: 
          [
            {          
              name: "Email",
              type: :string
            }, 
            {         
              name: "Password",
              type: :string
            }
          ]
        }, 
        {
          rows: 
          [
            {
              name: "Login To #{App.name}",
              type: :submit
            }
          ]
        }
      ]
    }
    self.data_source = Dynamics::DataSource.new(auth_dsl)
  end
    
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dynamics-0.2.0 base/app/forms/authentication_form.rb