Sha256: 7a5bee9ed636a9e271e84bc907a3fbec74eecd7064f76bcf0042d87cfd4372ea

Contents?: true

Size: 913 Bytes

Versions: 9

Compression:

Stored size: 913 Bytes

Contents

module Celerity
  class Form < Element
    include Container

    TAGS = [Identifier.new('form')]

    # HTML 4.01 Transitional DTD
    ATTRIBUTES = BASE_ATTRIBUTES | [
                                      :'accept-charset',
                                      :accept,
                                      :action,
                                      :enctype,
                                      :method,
                                      :name,
                                      :onreset,
                                      :onsubmit,
                                      :target,
                                    ]
    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

9 entries across 9 versions & 2 rubygems

Version Path
fletcherm-culerity-0.2.9 vendor/gems/celerity-0.7.6/lib/celerity/elements/form.rb
fletcherm-culerity-0.2.8 vendor/gems/celerity-0.7.6/lib/celerity/elements/form.rb
celerity-0.7.8 lib/celerity/elements/form.rb
fletcherm-culerity-0.2.7 vendor/gems/celerity-0.7.6/lib/celerity/elements/form.rb
celerity-0.7.7 lib/celerity/elements/form.rb
fletcherm-culerity-0.2.6 vendor/gems/celerity-0.7.6/lib/celerity/elements/form.rb
fletcherm-culerity-0.2.5 vendor/gems/celerity-0.7.6/lib/celerity/elements/form.rb
celerity-0.7.6 lib/celerity/elements/form.rb
celerity-0.7.5 lib/celerity/elements/form.rb