Class: KirguduBase::DynamicPages::Form

Inherits:
PageElement show all
Defined in:
app/models/kirgudu_base/dynamic_pages/form.rb

Instance Attribute Summary collapse

Attributes inherited from PageElement

#enabled, #html_options, #id, #name, #use_i18n, #visible

Attributes inherited from Element

#parent_entry

Instance Method Summary collapse

Methods inherited from PageElement

#i18n_data_as_string, #to_external_hash

Methods inherited from Element

#as_json, #fix_parent_entry, #kontroller_klass, #to_external_hash

Methods included from Models::MergeableElements::ClassMethods

#get_mergeable_attributes, #mergeable_attributes

Methods included from Models::FixableElements::ClassMethods

#fixable_attributes, #get_kb_fixable_attributes

Methods included from Models::FixableElements::InstanceMethods

#fix_parent_entry

Methods included from Models::MergeableElements::InstanceMethods

#merge

Constructor Details

#initialize(options = {}) ⇒ Form

Returns a new instance of Form.



15
16
17
18
19
20
21
22
23
24
25
26
# File 'app/models/kirgudu_base/dynamic_pages/form.rb', line 15

def initialize(options = {})
	self.url = nil
	self.http_method = nil
	self.allow_client_validations = nil
	self.is_ajax = nil
	self.properties = nil
	self.elements = nil
	self.parent = nil

	super(options)

end

Instance Attribute Details

#allow_client_validationsObject

Returns the value of attribute allow_client_validations.



31
32
33
# File 'app/models/kirgudu_base/dynamic_pages/form.rb', line 31

def allow_client_validations
  @allow_client_validations
end

#elementsObject

Returns the value of attribute elements.



33
34
35
# File 'app/models/kirgudu_base/dynamic_pages/form.rb', line 33

def elements
  @elements
end

#http_methodObject

Returns the value of attribute http_method.



29
30
31
# File 'app/models/kirgudu_base/dynamic_pages/form.rb', line 29

def http_method
  @http_method
end

#is_ajaxObject

Returns the value of attribute is_ajax.



30
31
32
# File 'app/models/kirgudu_base/dynamic_pages/form.rb', line 30

def is_ajax
  @is_ajax
end

#parentObject

Returns the value of attribute parent.



34
35
36
# File 'app/models/kirgudu_base/dynamic_pages/form.rb', line 34

def parent
  @parent
end

#propertiesObject

Returns the value of attribute properties.



32
33
34
# File 'app/models/kirgudu_base/dynamic_pages/form.rb', line 32

def properties
  @properties
end

#urlObject

Returns the value of attribute url.



28
29
30
# File 'app/models/kirgudu_base/dynamic_pages/form.rb', line 28

def url
  @url
end