diff --git a/template/components/button.go b/template/components/form_button.go similarity index 83% rename from template/components/button.go rename to template/components/form_button.go index 0c52a38..2cfee00 100644 --- a/template/components/button.go +++ b/template/components/form_button.go @@ -1,6 +1,6 @@ package components -type Button struct { +type FormButton struct { Text string Link string Icon string diff --git a/template/components/button.html b/template/components/form_button.html similarity index 89% rename from template/components/button.html rename to template/components/form_button.html index 6590905..5e1d68c 100644 --- a/template/components/button.html +++ b/template/components/form_button.html @@ -1,7 +1,6 @@ -{{define "button"}} - {{end}} \ No newline at end of file diff --git a/template/components/form_input.go b/template/components/form_input.go new file mode 100644 index 0000000..0ce7ce4 --- /dev/null +++ b/template/components/form_input.go @@ -0,0 +1,12 @@ +package components + +type FormInput struct { + ID string + Label string + Type string + Placeholder string + Value string + Hint string + Error string + IsDisabled bool +} diff --git a/template/components/form_input.html b/template/components/form_input.html new file mode 100644 index 0000000..b79ae87 --- /dev/null +++ b/template/components/form_input.html @@ -0,0 +1,15 @@ +{{define "form_input"}} +
{{.CardBody}}
{{end}} + {{block "page_card_content" .}}{{end}} + {{if .CardLink}}Card link{{end}} +