integrate multi-user approach, based on pre-defined list of tuples
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<body>
|
||||
<h1>Autoreply Editor</h1>
|
||||
|
||||
<p>{{ result }}</p>
|
||||
<p>{{ error }}</p>
|
||||
|
||||
<p><a href="/">Go back</a></p>
|
||||
|
||||
@@ -6,33 +6,11 @@
|
||||
<body>
|
||||
<h1>Autoreply Editor</h1>
|
||||
|
||||
<h2>Toggle autoreply message</h2>
|
||||
<ul>
|
||||
{% for user in users %}
|
||||
<li><a href="/user/{{ user[1].split('@')[0] }}">{{ user[0] }} {{"<"}}{{ user[1] }}{{">"}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
The autoreply is <strong>{%if qmail_status%}active{%else%}inactive{%endif%}</strong>
|
||||
</p>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="action" value="qmail" />
|
||||
{% if qmail_status %}
|
||||
<input type="hidden" name="status" value="off" />
|
||||
<input type="submit" value="Deactivate">
|
||||
{% else %}
|
||||
<input type="hidden" name="status" value="on" />
|
||||
<input type="submit" value="Activate">
|
||||
{% endif %}
|
||||
</form>
|
||||
|
||||
<h2>Change autoreply message</h2>
|
||||
|
||||
<p>
|
||||
Below you can see the current text of your autoreply message. You
|
||||
can edit and update it directly below:
|
||||
</p>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="action" value="message" />
|
||||
<textarea name="message" cols="120" rows="20">{{ message }}</textarea>
|
||||
<br />
|
||||
<input type="submit" value="Update">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
14
autoreply_editor/templates/update.html
Normal file
14
autoreply_editor/templates/update.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>Autoreply Editor</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Autoreply Editor</h1>
|
||||
|
||||
<p>{{ result }}</p>
|
||||
|
||||
<p><a href="/user/{{ user }}">Go back</a></p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
38
autoreply_editor/templates/user.html
Normal file
38
autoreply_editor/templates/user.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>Autoreply Editor</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Autoreply Editor</h1>
|
||||
|
||||
<h2>Toggle autoreply message</h2>
|
||||
|
||||
<p>
|
||||
The autoreply is <strong>{%if qmail_status%}active{%else%}inactive{%endif%}</strong>
|
||||
</p>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="action" value="qmail" />
|
||||
{% if qmail_status %}
|
||||
<input type="hidden" name="status" value="off" />
|
||||
<input type="submit" value="Deactivate">
|
||||
{% else %}
|
||||
<input type="hidden" name="status" value="on" />
|
||||
<input type="submit" value="Activate">
|
||||
{% endif %}
|
||||
</form>
|
||||
|
||||
<h2>Change autoreply message</h2>
|
||||
|
||||
<p>
|
||||
Below you can see the current text of your autoreply message. You
|
||||
can edit and update it directly below:
|
||||
</p>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="action" value="message" />
|
||||
<textarea name="message" cols="120" rows="20">{{ message }}</textarea>
|
||||
<br />
|
||||
<input type="submit" value="Update">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user