summaryrefslogtreecommitdiff
path: root/pages/chpw.templ
diff options
context:
space:
mode:
Diffstat (limited to 'pages/chpw.templ')
-rw-r--r--pages/chpw.templ25
1 files changed, 25 insertions, 0 deletions
diff --git a/pages/chpw.templ b/pages/chpw.templ
new file mode 100644
index 0000000..3cf5ded
--- /dev/null
+++ b/pages/chpw.templ
@@ -0,0 +1,25 @@
+package pages
+
+import (
+ "gosten/form"
+)
+
+templ changePassword(chpw chpw) {
+ @content(){
+ if chpw.Success {
+ <div class="alert alert-success d-flex align-items-center" role="alert">
+ <svg class="svg me-2" role="img" aria-label="Success:"><use xlink:href="#check-circle-fill"/></svg>
+ <div>
+ Passwort ändern erfolgreich!
+ </div>
+ </div>
+ }
+
+ <form action={templ.SafeURL(getCurrPath(ctx))} method="post" class="container mx-auto" style="max-width: 440px;">
+ <h3>Passwort Ändern</h3>
+ @form.Form(chpw, chpw.Errors)
+ @chpw.Csrf()
+ <input class="btn btn-primary w-100" type="submit" />
+ </form>
+ }
+} \ No newline at end of file