From 57eb8f6712361a3bf75983ce153fac4846dc0273 Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Tue, 11 Feb 2025 16:31:08 +0530 Subject: Initial commit --- cmd/web/templates/settings/htmx-setting-page.tmpl | 3 +++ cmd/web/templates/settings/index.tmpl | 22 +++++++++++++++++++ .../templates/settings/partials/form-message.tmpl | 25 ++++++++++++++++++++++ cmd/web/templates/settings/partials/form.tmpl | 25 ++++++++++++++++++++++ .../settings/partials/htmx-form-message.tmpl | 2 ++ 5 files changed, 77 insertions(+) create mode 100644 cmd/web/templates/settings/htmx-setting-page.tmpl create mode 100644 cmd/web/templates/settings/index.tmpl create mode 100644 cmd/web/templates/settings/partials/form-message.tmpl create mode 100644 cmd/web/templates/settings/partials/form.tmpl create mode 100644 cmd/web/templates/settings/partials/htmx-form-message.tmpl (limited to 'cmd/web/templates/settings') diff --git a/cmd/web/templates/settings/htmx-setting-page.tmpl b/cmd/web/templates/settings/htmx-setting-page.tmpl new file mode 100644 index 0000000..618c17f --- /dev/null +++ b/cmd/web/templates/settings/htmx-setting-page.tmpl @@ -0,0 +1,3 @@ +{{ template "settings/index" . }} +{{ template "components/navbar" . }} +{{ template "components/head" . }} \ No newline at end of file diff --git a/cmd/web/templates/settings/index.tmpl b/cmd/web/templates/settings/index.tmpl new file mode 100644 index 0000000..321b169 --- /dev/null +++ b/cmd/web/templates/settings/index.tmpl @@ -0,0 +1,22 @@ +
+
+
+ +
+

Your Settings

+ + {{ template "settings/partials/form-message" }} + + {{ template "settings/partials/form" . }} +
+ +
+
+ +
+ +
+
+
\ No newline at end of file diff --git a/cmd/web/templates/settings/partials/form-message.tmpl b/cmd/web/templates/settings/partials/form-message.tmpl new file mode 100644 index 0000000..44b855f --- /dev/null +++ b/cmd/web/templates/settings/partials/form-message.tmpl @@ -0,0 +1,25 @@ +
+ {{ if .Errors }} +
+
    + {{ range $error := .Errors }} +
  • {{ $error }}
  • + {{ end }} +
+
+ {{ end }} + + {{ if .SuccessMessages }} +
+
    + {{ range $message := .SuccessMessages }} +
  • {{ $message }}
  • + {{ end }} +
+
+ {{ end }} +
\ No newline at end of file diff --git a/cmd/web/templates/settings/partials/form.tmpl b/cmd/web/templates/settings/partials/form.tmpl new file mode 100644 index 0000000..c0d8c4a --- /dev/null +++ b/cmd/web/templates/settings/partials/form.tmpl @@ -0,0 +1,25 @@ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ +
\ No newline at end of file diff --git a/cmd/web/templates/settings/partials/htmx-form-message.tmpl b/cmd/web/templates/settings/partials/htmx-form-message.tmpl new file mode 100644 index 0000000..1e5f5bc --- /dev/null +++ b/cmd/web/templates/settings/partials/htmx-form-message.tmpl @@ -0,0 +1,2 @@ +{{ template "settings/partials/form-message" . }} +{{ template "components/navbar" . }} \ No newline at end of file -- cgit v1.2.3