From 36f9f738bf2a44423d714f3f4db6bbf5f3fe28a3 Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Fri, 18 Jun 2021 20:20:10 +0900 Subject: [PATCH] add buttons --- src/mechanize/form/button.cr | 4 ++++ src/mechanize/form/reset_button.cr | 2 ++ src/mechanize/form/submit_button.cr | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 src/mechanize/form/button.cr create mode 100644 src/mechanize/form/reset_button.cr create mode 100644 src/mechanize/form/submit_button.cr diff --git a/src/mechanize/form/button.cr b/src/mechanize/form/button.cr new file mode 100644 index 0000000..f932aa7 --- /dev/null +++ b/src/mechanize/form/button.cr @@ -0,0 +1,4 @@ +class MechanizeCr::FormContent::Button < MechanizeCr::FormContent::Field +end +require "./reset_button" +require "./submit_button" diff --git a/src/mechanize/form/reset_button.cr b/src/mechanize/form/reset_button.cr new file mode 100644 index 0000000..3183853 --- /dev/null +++ b/src/mechanize/form/reset_button.cr @@ -0,0 +1,2 @@ +class MechanizeCr::FormContent::ResetButton < MechanizeCr::FormContent::Button +end diff --git a/src/mechanize/form/submit_button.cr b/src/mechanize/form/submit_button.cr new file mode 100644 index 0000000..14aaee8 --- /dev/null +++ b/src/mechanize/form/submit_button.cr @@ -0,0 +1,2 @@ +class MechanizeCr::FormContent::SubmitButton < MechanizeCr::FormContent::Button +end