From 7218f26d68c6470d0a9573b6883c8b12d8229a05 Mon Sep 17 00:00:00 2001 From: Diana Date: Mon, 21 Oct 2024 17:25:50 -0500 Subject: [PATCH] component switch --- template/components/form_switch.go | 8 ++++++++ template/components/form_switch.html | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 template/components/form_switch.go create mode 100644 template/components/form_switch.html diff --git a/template/components/form_switch.go b/template/components/form_switch.go new file mode 100644 index 0000000..9d43744 --- /dev/null +++ b/template/components/form_switch.go @@ -0,0 +1,8 @@ +package components + +type FormSwitch struct { + ID string + Label string + IsChecked bool + IsDisabled bool +} diff --git a/template/components/form_switch.html b/template/components/form_switch.html new file mode 100644 index 0000000..4841ffe --- /dev/null +++ b/template/components/form_switch.html @@ -0,0 +1,7 @@ +{{define "form_switch"}} + +
+ + +
+{{end}}