Sha256: 2bd08ccdf6df9a6aa35747e1270881d94eaa33383bb50cdff97455a85196aef1

Contents?: true

Size: 456 Bytes

Versions: 10

Compression:

Stored size: 456 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.
    # 
    
    def submit
      assert_exists
      @container.update_page @object.submit(nil)
    end

  end # Form
end # Celerity

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
jarib-celerity-0.0.5.10 lib/celerity/elements/form.rb
jarib-celerity-0.0.5.11 lib/celerity/elements/form.rb
jarib-celerity-0.0.5.6 lib/celerity/elements/form.rb
jarib-celerity-0.0.5.7 lib/celerity/elements/form.rb
jarib-celerity-0.0.5.8 lib/celerity/elements/form.rb
jarib-celerity-0.0.5.9 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.1 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.2 lib/celerity/elements/form.rb
jarib-celerity-0.0.6 lib/celerity/elements/form.rb
celerity-0.0.6 lib/celerity/elements/form.rb