diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/edit-domain.html | 75 | ||||
-rw-r--r-- | template/list-domains.html (renamed from template/domain-list.html) | 9 | ||||
-rw-r--r-- | template/login.html | 6 |
3 files changed, 86 insertions, 4 deletions
diff --git a/template/edit-domain.html b/template/edit-domain.html new file mode 100644 index 0000000..38abc62 --- /dev/null +++ b/template/edit-domain.html @@ -0,0 +1,75 @@ +<!DOCTYPE html> +<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>Domain names for <TMPL_VAR NAME=USER></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> / <TMPL_VAR NAME=DOMAIN> / + </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> + </div> + <br/> + </div> + <hr/> + + <h1>Edit domain <tt><TMPL_VAR NAME=DOMAIN></tt></h1> + + + <table width=90% align=center> + <tr> + <td width=30%> + Status: <b><TMPL_IF NAME=ISACTIVE><span class="active">Active</span><TMPL_ELSE><span class="inactive">Inactive</span></TMPL_IF></b> + (<a href="./?a=edit&active=<TMPL_IF NAME=ISACTIVE>FALSE<TMPL_ELSE>TRUE</TMPL_IF>">toggle</a>) + </td> + <td width=70% align=right> + <span class="ack"> + <TMPL_IF NAME=NEWCHANGES>Your changes have succesfully been submitted.</TMPL_IF> + </span> + </td> + </tr> + </table> + + <br/> + + <form class="editform" name="editform" method="post"> + <div class="editform"> + <input type="hidden" name="a" value="edit" /> + + <p> + <h4 class="label">Description</h4> + <textarea type="text" name="description" cols="50" rows="3" wrap="soft"><TMPL_VAR NAME=DESCRIPTION></textarea> + <div class="help"> + An optional description of your domain. + </div> + </p> + + <hr/> + + <p> + <h4 class="label">Catch-All aliases</h4> + <textarea type="text" name="maildrop" cols="50" rows="10" wrap="hard" ><TMPL_VAR NAME=MAILDROP></textarea> + <div class="help"> + An optional list of destinations (one e-mail address per line) that + will receive mail sent to <i>non existing</i> recipients. + Domain aliases can be defined by leaving the local part of + the destination empty, like in <tt>@example.org</tt>: email + to <tt>inexisting@<TMPL_VAR NAME=DOMAIN></tt> + will then be sent to <tt>inexisting@example.org</tt>. + </div> + </p> + + <hr/> + + <input type="hidden" name="destination" value="<TMPL_VAR NAME=DESTINATION>" /> + <input type="submit" name="submit" value="Submit Changes" /> + </div> + </form> + </body> +</html> diff --git a/template/domain-list.html b/template/list-domains.html index fcc7b23..9b8cf0e 100644 --- a/template/domain-list.html +++ b/template/list-domains.html @@ -17,7 +17,10 @@ </div> <br/> </div> + <hr/> + <h1>Manage domains</h1> + <table class="list"> <thead> <tr class="odd"> @@ -25,15 +28,17 @@ <th>Permissions</th> <th>Description</th> <th>Active?</th> + <th>Action</th> </tr> </thead> <tbody> <TMPL_LOOP NAME=DOMAINS> <TMPL_IF NAME=__even__><tr class="odd"><TMPL_ELSE><tr></TMPL_IF> - <td><a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/"><TMPL_VAR NAME=DOMAIN></a></td> + <td><tt><a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/"><TMPL_VAR NAME=DOMAIN></a></tt></td> <td><TMPL_IF NAME=PERMS><TMPL_VAR NAME=PERMS><TMPL_ELSE><span class="none">(none)</span></TMPL_IF></td> <td><TMPL_IF NAME=DESCRIPTION><TMPL_VAR NAME=DESCRIPTION><TMPL_ELSE><span class="none">(none)</span></TMPL_IF></td> - <td><TMPL_IF NAME=ISACTIVE><span class="active">✔</span><TMPL_ELSE><span class="nonactive">✘</span></TMPL_IF></td> + <td><TMPL_IF NAME=ISACTIVE><span class="active">✔</span><TMPL_ELSE><span class="inactive">✘</span></TMPL_IF></td> + <td><a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/?a=edit">edit</a></td> </tr> </TMPL_LOOP> </tbody> diff --git a/template/login.html b/template/login.html index 6ed2a7e..293f20f 100644 --- a/template/login.html +++ b/template/login.html @@ -13,10 +13,12 @@ src="/img/fripost_logo.png" title="fripost.org|demokratisk e-post" /></a> + <h2>Administrator Panel</h2> <br/> <br/> - <form class="loginform" name="loginform" method="post" > + + <form class="loginform" name="loginform" method="post"> <table class="loginform"> <tr> <td class="label">Username</td> @@ -28,7 +30,7 @@ </tr> </table> <div> - <input type="hidden" name="destination" value="<TMPL_VAR DESTINATION>" /> + <input type="hidden" name="destination" value="<TMPL_VAR NAME=DESTINATION>" /> <input type="submit" name="login" value="Log in" /> </div> </form> |