diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-08 19:49:11 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-08 23:40:50 +0200 |
commit | 4a0d87e642c4d97ee2a026f1207e25a001518f3a (patch) | |
tree | b742103cfbce8c7c576766f4db9016f0faa9b629 /template/edit-mailbox.html | |
parent | 0dfeabffccf3695f5f270964aa8ef8e3460ae440 (diff) |
Abstracting the LDAP stuff in an OO library.
Diffstat (limited to 'template/edit-mailbox.html')
-rw-r--r-- | template/edit-mailbox.html | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/template/edit-mailbox.html b/template/edit-mailbox.html index 69b91ab..3dce6e7 100644 --- a/template/edit-mailbox.html +++ b/template/edit-mailbox.html @@ -2,30 +2,30 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> - <title>Edit mailbox <TMPL_VAR NAME=MAILBOX>@<TMPL_VAR NAME=DOMAIN></title> + <title>Edit mailbox <TMPL_VAR NAME=user>@<TMPL_VAR NAME=domain></title> <link href="/css/style.css" media="all" rel="stylesheet" type="text/css" /> </head> <body> <div id="header"> <div class="left column"> - <a href="<TMPL_VAR NAME=URL>/">Root</a> / - <a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/"><TMPL_VAR NAME=DOMAIN></a> / - <TMPL_VAR NAME=MAILBOX> / + <a href="<TMPL_VAR NAME=url>/">Root</a> / + <a href="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=domain>/"><TMPL_VAR NAME=domain></a> / + <TMPL_VAR NAME=user> / </div> <div class="right column"> - Logged as <a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=USER_DOMAINPART>/<TMPL_VAR NAME=USER_LOCALPART>/?a=edit" - ><TMPL_VAR NAME=USER_LOCALPART>@<TMPL_VAR NAME=USER_DOMAINPART></a> - | <a href="<TMPL_VAR NAME=URL>/?a=logout">Log out</a> + Logged as <a href="<TMPL_VAR NAME=url>/<TMPL_VAR NAME=user_domainpart>/<TMPL_VAR NAME=user_localpart>/?a=edit" + ><TMPL_VAR NAME=user_localpart>@<TMPL_VAR NAME=user_domainpart></a> + | <a href="<TMPL_VAR NAME=url>/?a=logout">Log out</a> </div> <br/> </div> <hr/> - - <h1>Edit mailbox <tt><TMPL_VAR NAME=MAILBOX>@<TMPL_VAR NAME=DOMAIN></tt></h1> - <TMPL_IF NAME=NEWCHANGES> - <TMPL_IF NAME=ERROR> - <div class="fail">Error: <TMPL_VAR NAME=ERROR></div> + <h1>Edit mailbox <tt><TMPL_VAR NAME=user>@<TMPL_VAR NAME=domain></tt></h1> + + <TMPL_IF NAME=newChanges> + <TMPL_IF NAME=error> + <div class="fail">Error: <TMPL_VAR NAME=error></div> <TMPL_ELSE> <div class="success">Your changes have succesfully been submitted.</div> </TMPL_IF> @@ -43,9 +43,9 @@ <p> <a name="status"></a> <h4 class="label">Status</h4> - <select name="status"> - <option value="active" <TMPL_IF NAME=ISACTIVE>selected</TMPL_IF>>Active</option> - <option value="inactive" <TMPL_UNLESS NAME=ISACTIVE>selected</TMPL_UNLESS>>Inactive</option> + <select name="isactive"> + <option value="1" <TMPL_IF NAME=isactive>selected</TMPL_IF>>Active</option> + <option value="0" <TMPL_UNLESS NAME=isactive>selected</TMPL_UNLESS>>Inactive</option> </select> <div class="help"> <b>Warning</b>: emails are <i>not</i> delivered to inactive entries. @@ -57,26 +57,26 @@ <p> <a name="password"></a> <h4 class="label">Change password</h4> - + <table class="loginform"> <tr> <td class="label">Current password</td> - <td><input type="password" name="oldpassword" size="20" /></td> + <td><input type="password" name="oldpw" size="20" /></td> </tr> <tr> <td class="label">New password</td> - <td><input type="password" name="newpassword" size="20" /></td> + <td><input type="password" name="newpw" size="20" /></td> </tr> <tr> <td class="label">Repeat new password</td> - <td><input type="password" name="newpassword2" size="20" /></td> + <td><input type="password" name="newpw2" size="20" /></td> </tr> </table> <div class="help"> <i>Note</i>: You need to enter - <tt><TMPL_VAR NAME=USER_LOCALPART>@<TMPL_VAR NAME=USER_DOMAINPART></tt>'s + <tt><TMPL_VAR NAME=user_localpart>@<TMPL_VAR NAME=user_domainpart></tt>'s current password first. </div> </p> @@ -86,7 +86,7 @@ <p> <a name="description"></a> <h4 class="label">Description</h4> - <textarea type="text" name="description" cols="50" rows="3" wrap="soft"><TMPL_VAR NAME=DESCRIPTION></textarea> + <textarea type="text" name="description" cols="50" rows="3" wrap="soft"><TMPL_VAR NAME=description></textarea> <div class="help"> An optional description. (HTML tags are allowed.) </div> @@ -97,17 +97,16 @@ <p> <a name="forward"></a> <h4 class="label">Mail forwarding</h4> - <textarea type="text" name="maildrop" cols="50" rows="10" wrap="hard" ><TMPL_VAR NAME=MAILDROP></textarea> + <textarea type="text" name="forwards" cols="50" rows="10" wrap="hard" ><TMPL_VAR NAME=forwards></textarea> <div class="help"> An optional list of destinations (one e-mail address per line) that - will <i>also</i> receive mail sent to - <tt><TMPL_VAR NAME=MAILBOX>@<TMPL_VAR NAME=DOMAIN><tt>. + will <i>also</i> receive mail delivered to + <tt><TMPL_VAR NAME=user>@<TMPL_VAR NAME=domain><tt>. </div> </p> <hr/> - <input type="hidden" name="destination" value="<TMPL_VAR NAME=DESTINATION>" /> <input type="submit" name="submit" value="Submit Changes" /> </div> </form> |