diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/create.html | 21 | ||||
-rw-r--r-- | templates/error.html | 19 | ||||
-rw-r--r-- | templates/layout.xi | 24 | ||||
-rw-r--r-- | templates/login.html | 20 | ||||
-rw-r--r-- | templates/select.html | 17 |
5 files changed, 101 insertions, 0 deletions
diff --git a/templates/create.html b/templates/create.html new file mode 100644 index 0000000..2ac6563 --- /dev/null +++ b/templates/create.html @@ -0,0 +1,21 @@ +<!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>create</title> + </head> + <sub:bodyform> + <form action='docreate' 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">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='create'/> + </form> + </sub:bodyform> +</html> diff --git a/templates/error.html b/templates/error.html new file mode 100644 index 0000000..0399863 --- /dev/null +++ b/templates/error.html @@ -0,0 +1,19 @@ +<!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>login</title> + </head> + <body id="error"> + <img src="static/fire.png" alt="subdap"/> + <div id="cont"> + <h1>kaputt!</h1> + <p><code>subdap.exe</code> hat ein Problem festgestellt und musste beendet werden.<br/> + Bitte schicken sie einen Fehlerbericht an <code>equinox ! diac24 ! net</code>.</p> + <pre>${details}</pre> + </div> + </body> +</html> diff --git a/templates/layout.xi b/templates/layout.xi new file mode 100644 index 0000000..6a5418a --- /dev/null +++ b/templates/layout.xi @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:py="http://genshi.edgewall.org/" + xmlns:sub="http://local.sublab.org/subdap/xmlns-templates" + py:strip=""> +<!-- vim:syntax=html + --> + + <py:match path="head" once="true"> + <head py:attrs="select('@*')"> + <title py:with="title = list(select('title/text()'))">subdap<py:if test="title">: ${title}</py:if></title> + <link rel="stylesheet" href="${url('static/layout.css')}" type="text/css"/> + ${select('*[local-name()!="title"]')} + </head> + </py:match> + + <py:match path="sub:bodyform" once="true"> + <body id="formcont" py:attrs="select('@*')"> + <div> + <img id="logo" src="static/ldap.png" alt="subdap"/> + ${select('*')} + </div> + </body> + </py:match> +</html> diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..41b6c43 --- /dev/null +++ b/templates/login.html @@ -0,0 +1,20 @@ +<!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>login</title> + </head> + <sub:bodyform> + <form action='login' method='POST'> + <a href="create" id="create">Konto erstellen</a> + <div>uid: <input type='text' name='username' size="10"/></div> + <b class="error" py:if="'username' in errors">${errors.username}</b> + <div>passwort: <input type='password' name='password' size="10"/></div> + <b class="error" py:if="'password' in errors">${errors.password}</b> + <input type='submit' value='login'/> + </form> + </sub:bodyform> +</html> diff --git a/templates/select.html b/templates/select.html new file mode 100644 index 0000000..e7dc1f2 --- /dev/null +++ b/templates/select.html @@ -0,0 +1,17 @@ +<!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>login</title> + </head> + <sub:bodyform> + <div class="cont"> + Hallo ${user['cn']}! + <p class="app"><a href="http://sublab.org"><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> + </div> + </sub:bodyform> +</html> |