summaryrefslogtreecommitdiffstats
path: root/py-bin/templates/set_pw_form.em
diff options
context:
space:
mode:
Diffstat (limited to 'py-bin/templates/set_pw_form.em')
-rw-r--r--py-bin/templates/set_pw_form.em29
1 files changed, 29 insertions, 0 deletions
diff --git a/py-bin/templates/set_pw_form.em b/py-bin/templates/set_pw_form.em
new file mode 100644
index 0000000..7e7a3b7
--- /dev/null
+++ b/py-bin/templates/set_pw_form.em
@@ -0,0 +1,29 @@
+@{em_inherit = "jman_base.em"}
+@{title = "Passwort setzen"}
+
+@{if not "command" in locals(): command = "set_pw_process"}
+
+<div class="carbonbar">
+ <div id="userbar">
+ <i>@user_id</i>
+ @[if command == "set_pw_process"]
+ &nbsp;&nbsp;|&nbsp;
+ <a href="main.py?cmd=logout">Ausloggen</a>
+ @[end if]
+ </div>
+ <h2>@title</h2>
+</div>
+
+<div id="content">
+ @[if "error" in locals() and error != ""] <p>Fehler: <b>@error</b></p> @[end if]
+ <form method="post" action="main.py?cmd=@command">
+ <p>Passwort: <input type="password" name="password"/></p>
+ <p>Passwort bestätigen: <input type="password" name="password2"/></p>
+ <p><input type="reset" value="Zurücksetzen"/>
+ <input type="submit" name="submitted" value="Passwort setzen"/></p>
+ </form>
+
+ @[if command == "set_pw_process"]
+ <p><a href="main.py?cmd=setup_main">Zurück</a></p>
+ @[end if]
+</div>