Sha256: f7163218ed227793229513bcc6124b9a62f78e89260dc3a28416313ccfa2603a

Contents?: true

Size: 532 Bytes

Versions: 12

Compression:

Stored size: 532 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
      @object.submit(nil)
    end

  end # Form
end # Celerity

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
drnic-celerity-0.0.6.17 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.14 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.15 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.16 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.17 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.18 lib/celerity/elements/form.rb
jarib-celerity-0.0.6.19 lib/celerity/elements/form.rb
jarib-celerity-0.0.7.1 lib/celerity/elements/form.rb
celerity-0.7.4 lib/celerity/elements/form.rb
celerity-0.7.3 lib/celerity/elements/form.rb
celerity-0.0.7.2 lib/celerity/elements/form.rb
celerity-0.0.7 lib/celerity/elements/form.rb