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/editor/form-message.tmpl | 19 ++++++++++ cmd/web/templates/editor/form.tmpl | 48 ++++++++++++++++++++++++++ cmd/web/templates/editor/htmx-editor-page.tmpl | 3 ++ 3 files changed, 70 insertions(+) create mode 100644 cmd/web/templates/editor/form-message.tmpl create mode 100644 cmd/web/templates/editor/form.tmpl create mode 100644 cmd/web/templates/editor/htmx-editor-page.tmpl (limited to 'cmd/web/templates/editor') diff --git a/cmd/web/templates/editor/form-message.tmpl b/cmd/web/templates/editor/form-message.tmpl new file mode 100644 index 0000000..1707e78 --- /dev/null +++ b/cmd/web/templates/editor/form-message.tmpl @@ -0,0 +1,19 @@ + {{ if .Errors }} +
+ +
+ {{ end }} + + {{ if .SuccessMessages }} +
+ +
+ {{ end }} \ No newline at end of file diff --git a/cmd/web/templates/editor/form.tmpl b/cmd/web/templates/editor/form.tmpl new file mode 100644 index 0000000..e735f75 --- /dev/null +++ b/cmd/web/templates/editor/form.tmpl @@ -0,0 +1,48 @@ +
+
+
+ +
+ +
+ {{ template "editor/form-message" . }} +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+
+
+
+
\ No newline at end of file diff --git a/cmd/web/templates/editor/htmx-editor-page.tmpl b/cmd/web/templates/editor/htmx-editor-page.tmpl new file mode 100644 index 0000000..ef5d8cd --- /dev/null +++ b/cmd/web/templates/editor/htmx-editor-page.tmpl @@ -0,0 +1,3 @@ +{{ template "editor/form" . }} +{{ template "components/navbar" . }} +{{ template "components/head" . }} \ No newline at end of file -- cgit v1.2.3