add hidden input

master
Kanezoh 2021-06-17 21:19:36 +09:00
parent c7f361a698
commit ca102c53a8
1 changed files with 3 additions and 0 deletions

View File

@ -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