Sha256: 4b524cbbb9c6ea4d16a240b435f3d4946e4bfb5253c1dde43775b04b3807533a

Contents?: true

Size: 569 Bytes

Versions: 5

Compression:

Stored size: 569 Bytes

Contents

module Celerity
  class Form < Element
    include Container
    
    TAGS = [Identifier.new('form')]
    
    # HTML 4.01 Transitional DTD
    ATTRIBUTES = BASE_ATTRIBUTES | [:action, :method, :enctype, :accept, :name, :onsubmit, :onreset, :target, :'accept-charset']
    DEFAULT_HOW = :name

    #
    # Submits the form.
    # 
    # This method should be avoided - invoke the user interface element that triggers the submit instead.
    # 
    
    def submit
      assert_exists
      @container.update_page @object.submit(nil)
    end

  end # Form
end # Celerity

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jarib-celerity-0.0.6.3 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.4 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.5 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.6 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.7 lib/celerity/elements/form.rb