diff options
author | equinox <equinox@diac24.net> | 2011-09-27 02:09:53 +0200 |
---|---|---|
committer | equinox <equinox@diac24.net> | 2011-09-27 02:09:53 +0200 |
commit | 8d2b75d61631e0794d436eefefb25644de1d2de4 (patch) | |
tree | 01193f125c25b3f1068ae4638a002aedb5387c01 /templates | |
parent | ed927fd7ccafebfa68dc327c7389876131a9a870 (diff) |
password change application
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layout.xi | 8 | ||||
-rw-r--r-- | templates/pwchange.html | 23 | ||||
-rw-r--r-- | templates/select.html | 5 |
3 files changed, 35 insertions, 1 deletions
diff --git a/templates/layout.xi b/templates/layout.xi index 7b59619..e14e21b 100644 --- a/templates/layout.xi +++ b/templates/layout.xi @@ -14,8 +14,16 @@ </head> </py:match> + <py:match path="sub:infobox" once="true"> + <div id="infobox"> + <img src="static/info.png" alt="info"/> + <p>${select('text()')}</p> + </div> + </py:match> + <py:match path="sub:bodyform" once="true"> <body id="formcont" py:attrs="select('@*')"> + ${select('sub:infobox')} <div> <img id="logo" src="static/ldap.png" alt="subdap"/> ${select('*')} diff --git a/templates/pwchange.html b/templates/pwchange.html new file mode 100644 index 0000000..a7e0605 --- /dev/null +++ b/templates/pwchange.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:py="http://genshi.edgewall.org/" + xmlns:sub="http://local.sublab.org/subdap/xmlns-templates" + xmlns:xi="http://www.w3.org/2001/XInclude"> + <xi:include href="layout.xi"/> + <head> + <title>change password</title> + </head> + <sub:bodyform> + <form action='pwchange' method='POST'> + <div>uid: <input type='text' name='username' size="10" value="${username}"/></div> + <b class="error" py:if="'username' in errors">${errors.username}</b> + <div id="creatpw">old password: <input type='password' name='oldpassword' size="10" value=""/></div> + <b class="error" py:if="'oldpassword' in errors">${errors.oldpassword}</b> + <div id="creatpw">password: <input type='password' name='password' size="10" value=""/></div> + <b class="error" py:if="'password' in errors">${errors.password}</b> + <div>repeat: <input type='password' name='password2' size="10" value=""/></div> + <b class="error" py:if="'password2' in errors">${errors.password2}</b> + <input type='submit' value='change password'/> + </form> + </sub:bodyform> +</html> diff --git a/templates/select.html b/templates/select.html index 8b5e47f..1391431 100644 --- a/templates/select.html +++ b/templates/select.html @@ -8,11 +8,14 @@ <head> <title>login</title> </head> + <sub:infobox py:if="message != None"> + ${message} + </sub:infobox> <sub:bodyform> <div class="cont"> Hallo ${user['cn']}! <p class="app"><a href="https://wiki.sublab.org/auth_subdap.php?${tgts['wiki']}"><img src="${url('static/app_wiki.png')}" alt="wiki"/> sublab.org wiki</a></p> - <p class="app"><a href=""><img src="${url('static/app_subdap.png')}" alt="wiki"/> Benutzerdaten</a></p> + <p class="app"><a href="pwchange?username=${user['cn']}"><img src="${url('static/app_password.png')}" alt="pwchange"/> Passwort ändern</a></p> </div> </sub:bodyform> </html> |