aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/add-domain-1.html91
-rw-r--r--templates/add-domain-2.html63
-rw-r--r--templates/list-domains.html15
-rw-r--r--templates/list-locals.html2
-rw-r--r--templates/new-domain.tt32
5 files changed, 199 insertions, 4 deletions
diff --git a/templates/add-domain-1.html b/templates/add-domain-1.html
new file mode 100644
index 0000000..df6ac65
--- /dev/null
+++ b/templates/add-domain-1.html
@@ -0,0 +1,91 @@
+<!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>Add 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="./">Root</a> /
+ </div>
+ <div class="right column">
+ Logged as <a href="<TMPL_VAR NAME=userURI>/?a=edit"
+ ><TMPL_VAR NAME=user_localpart>@<TMPL_VAR NAME=user_domainpart></a>
+ | <a href="./?a=logout">Log out</a>
+ </div>
+ <br/>
+ </div>
+ <hr/>
+
+ <div id="content">
+ <h1>Add domain</h1>
+
+ <TMPL_IF NAME=error>
+ <div class="fail">Error: <TMPL_VAR NAME=error></div>
+ <TMPL_ELSE>
+ <br/>
+ </TMPL_IF>
+
+ <br/>
+
+ <form class="editform" name="editform" method="post" action="?">
+ <div class="editform">
+ <input type="hidden" name="a" value="add" />
+
+ <h4 class="label" id="domain">Domain name</h4>
+ <input type="text" name="domain" size="15" value="<TMPL_VAR NAME=domain>" />
+ <div class="help">
+ The domain name to be added.
+
+ If you want to transfer an existing domain do use our MX'es, we
+ will ask you to an e-mail where to send a confirmation token
+ token proving you indeed own the domain.
+
+ Buying new domains from this interface will be feasible in the
+ future, but it has not been implemented yet.
+ </div>
+
+ <hr/>
+
+ <h4 class="label" id="status">Status</h4>
+ <select name="isactive">
+ <option value="1" <TMPL_IF NAME=isactive>selected="selected"</TMPL_IF>>Active</option>
+ <option value="0" <TMPL_UNLESS NAME=isactive>selected="selected"</TMPL_UNLESS>>Inactive</option>
+ </select>
+ <div class="help">
+ <b>Warning</b>: emails are <i>not</i> delivered to users,
+ aliases or lists under inactive domains.
+ </div>
+
+ <hr/>
+
+ <h4 class="label" id="description">Description</h4>
+ <textarea name="description" cols="50" rows="5" ><TMPL_VAR NAME=description></textarea>
+ <div class="help">
+ An optional description. (HTML tags are allowed.)
+ </div>
+
+ <hr/>
+
+ <h4 class="label" id="catch-all">Catch-All aliases</h4>
+ <textarea name="catchalls" cols="50" rows="5" ><TMPL_VAR NAME=catchalls></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 <span class="email">@example.org</span>:
+ email to <span class="email">inexisting@this-new-domain.org</span>
+ will then be sent to <span class="email">inexisting@example.org</span>.
+ </div>
+ <hr/>
+ <br/>
+
+ <input type="submit" name="submit" value="Submit" />
+ <input type="submit" name="cancel" value="Cancel" />
+ </div>
+ </form>
+ </div>
+ </body>
+</html>
diff --git a/templates/add-domain-2.html b/templates/add-domain-2.html
new file mode 100644
index 0000000..0e1b660
--- /dev/null
+++ b/templates/add-domain-2.html
@@ -0,0 +1,63 @@
+<!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>Add domain <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="./">Root</a> /
+ </div>
+ <div class="right column">
+ Logged as <a href="<TMPL_VAR NAME=userURI>/?a=edit"
+ ><TMPL_VAR NAME=user_localpart>@<TMPL_VAR NAME=user_domainpart></a>
+ | <a href="./?a=logout">Log out</a>
+ </div>
+ <br/>
+ </div>
+ <hr/>
+
+ <div id="content">
+ <form name="addform" method="post" action="?">
+ <input type="hidden" name="a" value="add" />
+ <input type="hidden" name="domain" value="<TMPL_VAR NAME=domain>" />
+ <input type="hidden" name="isactive" value="<TMPL_VAR NAME=isactive>" />
+ <input type="hidden" name="description" value="<TMPL_VAR NAME=description>" />
+ <input type="hidden" name="catchalls" value="<TMPL_VAR NAME=catchalls>" />
+
+ <TMPL_IF NAME=postmasters>
+ <div class="message">
+ You have asked to let us manage e-mail
+ <span class="email">@<TMPL_VAR NAME=domain></span>.
+ Please select an address below where to send a confirmation
+ token, proving that you indeed own the domain
+ <span class="domain"><TMPL_VAR NAME=domain></span>.
+ </div>
+ <table class="align" id="postmasters">
+ <tbody>
+ <TMPL_LOOP NAME=postmasters>
+ <TMPL_IF NAME=__even__><tr class="odd"><TMPL_ELSE><tr></TMPL_IF>
+ <td><input type="radio" name="postmaster" value="<TMPL_VAR NAME=postmaster>"/></td>
+ <td><span class="email"><TMPL_VAR NAME=postmaster></td>
+ </tr>
+ </TMPL_LOOP>
+ </tbody>
+ </table>
+ <input type="submit" name="submit" value="1" class="hidden" />
+ <input type="submit" name="cancel" value="Cancel" />
+ <input type="submit" name="submit" value="Send" />
+ <TMPL_ELSE>
+ <div class="error">
+ I couldn't find a valid e-mail in your domain's WHOIS,
+ and no valid postmaster address has been found (either because
+ <span class="domain"><TMPL_VAR NAME=domain></span> has no configured MX,
+ or because it already uses ours).
+ </div>
+ <input type="submit" name="cancel" value="Cancel" />
+ </TMPL_IF>
+ </form>
+ </div>
+ </body>
+</html>
diff --git a/templates/list-domains.html b/templates/list-domains.html
index 5ebdd05..5edb4fc 100644
--- a/templates/list-domains.html
+++ b/templates/list-domains.html
@@ -33,9 +33,18 @@
<tbody>
<TMPL_LOOP NAME=domains>
<TMPL_IF NAME=__even__><tr class="odd"><TMPL_ELSE><tr></TMPL_IF>
- <td><span class="domain"><a href="<TMPL_VAR NAME=domainURI>/"><TMPL_VAR NAME=domain></a></span></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">&#x2714;</span><TMPL_ELSE><span class="inactive">&#x2718;</span></TMPL_IF></td>
+ <td><span class="domain"><TMPL_UNLESS NAME=ispending><a href="<TMPL_VAR NAME=domainURI>/"></TMPL_UNLESS><TMPL_VAR NAME=domain><TMPL_UNLESS NAME=ispending></a></TMPL_UNLESS></span></td>
+ <td><TMPL_IF NAME=ispending
+ ><form class="unlock" method="post" action="?"
+ ><input type="text" name="unlock" size="32"
+ ><input type="hidden" name="domain" value="<TMPL_VAR NAME=domain>"
+ /><input type="submit" name="submit" value="Unlock domain"
+ /></form
+ ><TMPL_ELSE><TMPL_IF NAME=description><TMPL_VAR NAME=description><TMPL_ELSE><span class="none">(none)</span></TMPL_IF
+ ></TMPL_IF></td>
+ <td><TMPL_IF NAME=ispending><span class="pending">&#x2691;</span>
+ <TMPL_ELSE><TMPL_IF NAME=isactive><span class="active">&#x2714;</span>
+ <TMPL_ELSE><span class="inactive">&#x2718;</span></TMPL_IF></TMPL_IF></td>
</tr>
</TMPL_LOOP>
</tbody>
diff --git a/templates/list-locals.html b/templates/list-locals.html
index 4f21ee8..0c3a3ab 100644
--- a/templates/list-locals.html
+++ b/templates/list-locals.html
@@ -96,7 +96,7 @@
</TMPL_LOOP>
<TMPL_IF NAME=catchalls>
<TMPL_IF NAME=CAodd><tr class="odd"><TMPL_ELSE><tr></TMPL_IF>
- <td><a href="./?a=edit#catch-all">*</a></td>
+ <td><a class="dunno" href="./?a=edit#catch-all">&#x2014;</a></td>
<td>Catch-all alias(es) for domain <span class="domain"><TMPL_VAR NAME=domain></span>.</td>
<td><span class="dunno">&#x2014;</span></td>
<td><TMPL_LOOP NAME=catchalls><span class="email"><TMPL_VAR NAME=catchall></span><TMPL_UNLESS NAME=__last__>, </TMPL_UNLESS></TMPL_LOOP></td>
diff --git a/templates/new-domain.tt b/templates/new-domain.tt
new file mode 100644
index 0000000..d42c921
--- /dev/null
+++ b/templates/new-domain.tt
@@ -0,0 +1,32 @@
+Hi!
+
+
+Someone, hopefully you, has asked Fripost to manage the e-mails under a
+domain you own: [% domain %]. If you have not done this, please ignore
+this message.
+
+To add your domain [% domain %] in our system, you need to click on the
+following link, or paste it into your favorite browser:
+
+ [% unlockurl %]
+
+Alternatively, you can log in to the administration panel and paste the
+following token in the page that lists pending domains:
+
+ [% token %]
+
+The token will expire after 24 hours.
+
+
+
+Note that adding your domain in our system is not enough to let us
+manage your e-mails. You also need to change your MX'es to use ours;
+under GNU/Linux you can list our current MX'es with the following
+command:
+
+ dig +short fripost.org MX
+
+
+Cheers,
+--
+The Fripost administration team.