aboutsummaryrefslogtreecommitdiffstats
path: root/templates/add-list.html
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@fripost.org>2013-01-29 02:39:17 +0100
committerGuilhem Moulin <guilhem.moulin@fripost.org>2013-01-29 02:39:17 +0100
commit38bbf969d6c29891f40973a0db376d5f5ee5ab07 (patch)
tree2b0e4a02308b06d14a4361786acf8deb209d9d3d /templates/add-list.html
parent7b81775603b8208c995cd1c4a15cd2a287009404 (diff)
Factorized the code to add localparts.
Diffstat (limited to 'templates/add-list.html')
-rw-r--r--templates/add-list.html23
1 files changed, 12 insertions, 11 deletions
diff --git a/templates/add-list.html b/templates/add-list.html
index 136899d..6e9f8bd 100644
--- a/templates/add-list.html
+++ b/templates/add-list.html
@@ -2,17 +2,17 @@
<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 list under <TMPL_VAR NAME=domain></title>
+ <title>Add list under <TMPL_VAR NAME=domainname></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> /
- <a href="./"><TMPL_VAR NAME=domain></a> /
+ <a href="./"><TMPL_VAR NAME=domainname></a> /
</div>
<div class="right column">
- Logged as <a href="<TMPL_VAR NAME=userURL>/?a=edit"
+ Logged as <a href="<TMPL_VAR NAME=user_URL>/?a=edit"
><TMPL_VAR NAME=user_localpart>@<TMPL_VAR NAME=user_domainpart></a>
| <a href="../?a=logout">Log out</a>
</div>
@@ -21,7 +21,7 @@
<hr/>
<div id="content">
- <h1>Add list under <span class="domain"><TMPL_VAR NAME=domain></span></h1>
+ <h1>Add list under <span class="domain"><TMPL_VAR NAME=domainname></span></h1>
<TMPL_IF NAME=error>
<div class="fail">Error: <TMPL_VAR NAME=error></div>
@@ -37,14 +37,14 @@
<input type="hidden" name="t" value="list" />
<h4 class="label">List name</h4>
- <input type="text" name="list" size="15" value="<TMPL_VAR NAME=list>"/>@<TMPL_VAR NAME=domain>
+ <input type="text" name="name" size="15" value="<TMPL_VAR NAME=name>"/>@<TMPL_VAR NAME=domainname>
<hr/>
<h4 class="label">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 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 inactive entries.
@@ -82,8 +82,9 @@
<h4 class="label">Transport</h4>
<select name="transport">
- <option value="mailman" <TMPL_UNLESS NAME=isenc>selected="selected"</TMPL_UNLESS>>GNU Mailman</option>
- <option value="schleuder" <TMPL_IF NAME=isenc>selected="selected"</TMPL_IF>>Schleuder</option>
+ <TMPL_LOOP NAME=transport>
+ <option value="<TMPL_VAR NAME=item>" <TMPL_IF NAME=selected>selected="selected"</TMPL_IF>><TMPL_VAR NAME=name></option>
+ </TMPL_LOOP>
</select>
<div class="help">
The mailing list manager. (<i>Note</i>: It is not possible to
@@ -103,7 +104,7 @@
<i>Note</i>: No confirmation email will be sent. It may take a while for the list to be created (especially
for the Schleuder list manager, as it requires a GPG key creation); Once the list has succefully been created,
it will be visible under the
- <a href="./">management page for <span class="domain"><TMPL_VAR NAME=domain></span></a>.
+ <a href="./">management page for <span class="domain"><TMPL_VAR NAME=domainname></span></a>.
</div>
</div>
</form>