add hidden input
parent
c7f361a698
commit
ca102c53a8
|
@ -2,6 +2,7 @@ require "./form/field"
|
||||||
require "./form/radio_button"
|
require "./form/radio_button"
|
||||||
require "./form/check_box"
|
require "./form/check_box"
|
||||||
require "./form/text"
|
require "./form/text"
|
||||||
|
require "./form/hidden"
|
||||||
|
|
||||||
class MechanizeCr::Form
|
class MechanizeCr::Form
|
||||||
getter fields : Array(FormContent::Field)
|
getter fields : Array(FormContent::Field)
|
||||||
|
@ -81,6 +82,8 @@ class MechanizeCr::Form
|
||||||
radiobuttons << FormContent::RadioButton.new(html_node, self)
|
radiobuttons << FormContent::RadioButton.new(html_node, self)
|
||||||
when "text"
|
when "text"
|
||||||
fields << FormContent::Text.new(html_node)
|
fields << FormContent::Text.new(html_node)
|
||||||
|
when "hidden"
|
||||||
|
fields << FormContent::Hidden.new(html_node)
|
||||||
else
|
else
|
||||||
fields << FormContent::Field.new(html_node)
|
fields << FormContent::Field.new(html_node)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue