Initial import

This commit is contained in:
tonio
2009-03-24 16:59:18 +01:00
commit 18ad148479
58 changed files with 5887 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
{% extends "admin/domain_header.html" %}
{% block menu %}
{% load admin_extras %}
{% domain_menu domain.id "aliases" %}
{% endblock %}
{% block domcontent %}
{% if not aliases %}
<p>No alias defined.</p>
{% else %}
<table>
<tr>
<th width="50px">Actions</th>
<th width="150px">Address</th>
<th width="200px">Mailbox</th>
<th width="75px">Enabled</th>
</tr>
{% for alias in aliases %}
<tr>
<td>
{% url admin.views.editalias domain.id alias.id as edit_url %}
<a href="{{ edit_url }}" class="boxed"
rel="{handler:'iframe',size:{x:300,y:190}}">
<img src="/static/pics/edit.png" border="0" title="Edit alias"/>
</a>
<a href="{{ del_url }}" name="deleteAlias">
<img src="/static/pics/remove.png" border="0" title="Delete alias" />
</a>
</td>
<td>{{ alias.address }}@{{ alias.mbox.domain.name }}</td>
<td>{{ alias.mbox.address }}@{{ alias.mbox.domain.name }}</td>
<td>{{ alias.enabled|yesno }}</td
{% url admin.views.delalias domain.id alias.id as del_url %}
</tr>
{% endfor %}
</table>
{% endif %}
{% endblock %}
+17
View File
@@ -0,0 +1,17 @@
{% extends "admin/layout.html" %}
{% block html_head %}
<script src="/static/js/domains.js" type="text/javascript"></script>
{% endblock %}
{% block mainframe %}
<div class="header">
<h1>Domain {{ domain.name }}</h1>
</div>
<div id="menubar" class="menu2">
{% block menu %}{% endblock %}
</div>
<div id="domcontent">
{% block domcontent %}{% endblock %}
</div>
{% endblock %}
+27
View File
@@ -0,0 +1,27 @@
{% url admin.views.editdomain domain_id as edit_url %}
{% url admin.views.newmailbox domain_id as new_url %}
{% url admin.views.mailboxes domain_id as mboxes_url %}
{% url full-aliases domain_id as aliases_url %}
<ul>
{% url admin.views.newmailbox domain.id as newmb_url %}
<li>
<a href="{{ new_url }}"
class="boxed" rel="{handler:'iframe',size:{x:300,y:280}}">
<img src="/static/pics/add.png" border="0" />
New mailbox
</a>
</li>
<li {% ifequal selection "mailboxes" %}class="selected"{% endifequal %}>
<a href="{{ mboxes_url }}">
<img src="/static/pics/mailbox.png" border="0"/>
Mailboxes</a></li>
<li {% ifequal selection "aliases" %}class="selected"{% endifequal %}>
<a href="{{ aliases_url }}">
<img src="/static/pics/alias.png" border="0"/>
Aliases</a></li>
<li>
<a href="{{ edit_url }}" class="boxed"
rel="{handler:'iframe',size:{x:300,y:180}}">
<img src="/static/pics/edit.png" border="0"/>
Properties</a></li>
</ul>
+45
View File
@@ -0,0 +1,45 @@
{% extends "admin/layout.html" %}
{% block html_head %}
<script src="/static/js/domains.js" type="text/javascript"></script>
{% endblock %}
{% block mainframe %}
<div class="header">
<h1>Available domains</h1>
</div>
<div id="domcontent">
{% if not domains %}
No domain defined.
{% else %}
<table>
<tr>
<th width="50px">Actions</th>
<th width="80px">Name</th>
<th width="50px">Mailboxes</th>
<th width="50px">Quota</th>
<th width="50px">Enabled</th>
</tr>
{% for dom in domains %}
<tr class="{% cycle 'odd' 'even' %}">
<td>
{% url admin.views.editdomain dom.id as edit_url %}
<a href="{{ edit_url }}" class="boxed"
rel="{handler:'iframe',size:{x:300,y:180}}">
<img src="/static/pics/edit.png" border="0" title="Edit domain"/>
</a>
{% url admin.views.deldomain dom.id as del_url %}
<a href="{{ del_url }}" name="deleteDom">
<img src="/static/pics/remove.png" border="0" title="Delete domain"/>
</a>
</td>
{% url admin.views.mailboxes dom.id as domurl %}
<td><a name="loadDom" href="{{ domurl }}">{{ dom.name }}</a></td>
<td>{{ dom.mboxcounter }}</td>
<td>{{ dom.quota }} MB</td>
<td>{{ dom.enabled|yesno }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>
{% endblock %}
+15
View File
@@ -0,0 +1,15 @@
{% extends "admin/layout_simple.html" %}
{% block html_head %}
<script src="/static/js/form.js" type="text/javascript"></script>
{% endblock %}
{% block content %}
<div class="title"><h1>Alias {{ alias.address }}</h1></div>
{% url admin.views.editalias alias.mbox.domain.id alias.id as edit_url %}
<form action="{{ edit_url }}" method="POST" id="aliasform" name="aliasform">
{% include "admin/genericform.html" %}
<div class="spacer"></div>
<div class="lastrow" align="center">
<input type="submit" name="submit" value="Update" />
</div>
</form>
{% endblock %}
+16
View File
@@ -0,0 +1,16 @@
{% extends "admin/layout_simple.html" %}
{% block html_head %}
<script src="/static/js/form.js" type="text/javascript"></script>
{% endblock %}
{% block content %}
<div class="title"><h1>Domain {{ domain.name }}</h1></div>
{% url admin.views.editdomain domain.id as dom_url %}
<form action="{{ dom_url }}" method="post" name="domform" id="domform">
{% include "admin/genericform.html" %}
<div class="lastrow" align="center">
<input type="submit" class="button" name="submit" value="Update" />
</div>
</form>
{% endblock %}
+17
View File
@@ -0,0 +1,17 @@
{% extends "admin/layout_simple.html" %}
{% block html_head %}
<script src="/static/js/form.js" type="text/javascript"></script>
{% endblock %}
{% block content %}
<div class="title"><h1>Mailbox {{ mbox.name }}</h1></div>
{% url admin.views.editmailbox mbox.domain_id mbox.id as box_url %}
<form action="{{ box_url }}" method="POST" id="mboxform" name="mboxform">
{% include "admin/genericform.html" %}
<div class="spacer"></div>
<div class="lastrow" align="center">
<input type="submit" name="submit" value="Update" />
</div>
</form>
{% endblock %}
+5
View File
@@ -0,0 +1,5 @@
{% for field in form %}
<div class="row">
{{ field.label_tag }} {{ field }} {% ifequal noerrors False %}{{ field.errors }}{% endifequal %}
</div>
{% endfor %}
+12
View File
@@ -0,0 +1,12 @@
{% extends "admin/layout.html" %}
{%block pagetitle %}Administration{%endblock %}
{%block breadcrumb %}Domains{%endblock %}
{% block html_head %}
<script src="/static/js/domains.js" type="text/javascript"></script>
{% endblock %}
{% block content %}
{% include default %}
{% endblock %}
+48
View File
@@ -0,0 +1,48 @@
{% extends "layout.html" %}
{% block content %}
{% url admin.views.domains as dom_url %}
<div id="body">
<div id="leftcol">
<div id="userbox" class="leftbox">
{% if user.first_name %}
<h3>{{ user.first_name }} {{ user.last_name }}</h3>
{% else %}
<h3>{{ user.username }}</h3>
{% endif %}
<ul>
<li>
{% url django.contrib.auth.views.logout_then_login as logout_url %}
<a href="{{ logout_url }}">
<img src="/static/pics/logout.png" border="0" />Logout</a>
</li>
</ul>
</div>
<br/>
<div id="menubox" class="leftbox">
<ul>
<li>
{% url admin.views.newdomain as newdom_url %}
<a href="{{ newdom_url }}" class="boxed"
rel="{handler:'iframe',size:{x:300,y:200}}">
<img src="/static/pics/add.png" border="0"/>
New domain
</a>
</li>
<li>
<a name="loadContent" href="{{ dom_url }}">
<img src="/static/pics/domains.png" border="0"/>
Domains</a>
</li>
<li>
<a name="loadContent" href="">
<img src="/static/pics/settings.png" border="0"/>
Settings</a>
</li>
</ul>
</div>
</div>
<div id="content">
{%block mainframe %}{% endblock %}
</div>
</div>
{% endblock %}
+18
View File
@@ -0,0 +1,18 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/static/stylesheets/SqueezeBox.css" />
<link rel="stylesheet" type="text/css" href="/static/stylesheets/box.css" />
<script src="/static/js/mootools.js" type="text/javascript"></script>
<script src="/static/js/SqueezeBox.js" type="text/javascript"></script>
{%block html_head %}{% endblock %}
</head>
<body>
<div id="content">
{%block content %}{% endblock %}
</div>
</body>
</html>
+22
View File
@@ -0,0 +1,22 @@
{% extends "admin/layout.html" %}
{% block html_head %}{% endblock %}
{% block content %}
<div class="header">
<h1>Mailbox {{ mbox.address }}@{{ mbox.domain.name }}</h1>
</div>
<div id="menubar" class="menu2">
{% block menu %}{% endblock %}
</div>
<div id="mboxcontent">
<div class="row">
<label>Name :</label><label>{{ mb.name }}</label>
</div>
<h2>Aliases</h2>
{% for alias in aliases %}
{{ alias.address }}
{% endfor %}
</div>
{% endblock %}
+50
View File
@@ -0,0 +1,50 @@
{% extends "admin/domain_header.html" %}
{% block menu %}
{% load admin_extras %}
{% domain_menu domain.id "mailboxes" %}
{% endblock %}
{% block domcontent %}
{% if not mailboxes %}
<p>No mailbox defined.</p>
{% else %}
<table>
<tr>
<th width="80px">Actions</th>
<th width="130px">Name</th>
<th width="170px">Address</th>
<th width="60px">Quota</th>
<th width="50px">Enabled</th>
</tr>
{% for mb in mailboxes %}
<tr class="{% cycle 'odd' 'even' %}">
<td>
{% url admin.views.editmailbox domain.id mb.id as edit_url %}
<a href="{{ edit_url }}" class="boxed"
rel="{handler:'iframe',size:{x:300,y:280}}">
<img src="/static/pics/edit.png" border="0" title="Edit mailbox"/>
</a>
{% url admin.views.delmailbox domain.id mb.id as del_url %}
<a href="{{ del_url }}" name="deleteMb">
<img src="/static/pics/remove.png" border="0"
title="Delete mailbox" />
</a>
{% url admin.views.newalias domain.id mb.id as alias_url %}
<a href="{{ alias_url }}" class="boxed"
rel="{handler:'iframe',size:{x:300,y:190}}">
<img src="/static/pics/add.png" border="0" title="Add new alias"/>
</a>
{% url mbox-aliases domain.id mb.id as aliases_url %}
<a href="{{ aliases_url }}">
<img src="/static/pics/alias.png" border="0" title="Mailbox aliases"/>
</a>
</td>
<td>{{ mb.name }}</td>
<td>{{ mb.address }}@{{ mb.domain.name }}</td>
<td>{{ mb.quota }} MB</td>
<td>{{ mb.user.is_active|yesno }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% endblock %}
+14
View File
@@ -0,0 +1,14 @@
{% extends "admin/layout_simple.html" %}
{% block html_head %}
<script src="/static/js/form.js" type="text/javascript"></script>
{% endblock %}
{% block content %}
<div class="title"><h1>Aliases for {{ mbox.address }}</h1></div>
<p>
<ul>
{% for alias in aliases %}
<li>{{alias.address}}</li>
{% endfor %}
</ul>
</p>
{% endblock %}
+15
View File
@@ -0,0 +1,15 @@
{% extends "admin/layout_simple.html" %}
{% block html_head %}
<script src="/static/js/form.js" type="text/javascript"></script>
{% endblock %}
{% block content %}
<div class="title"><h1>New alias</h1></div>
{% url admin.views.newalias mbox.domain_id mbox.id as box_url %}
<form action="{{ box_url }}" method="POST" id="aliasform" name="aliasform">
{% include "admin/genericform.html" %}
<div class="spacer"></div>
<div class="lastrow" align="center">
<input type="submit" name="submit" value="Create" />
</div>
</form>
{% endblock %}
+18
View File
@@ -0,0 +1,18 @@
{% extends "admin/layout_simple.html" %}
{% block html_head %}
<script src="/static/js/form.js" type="text/javascript"></script>
{% endblock %}
{% block content %}
<div class="title"><h1>New domain</h1></div>
{% if error %}<div class="error">{{ error }}</div>{% endif %}
{% url admin.views.newdomain as dom_url %}
<form action="{{ dom_url }}" method="post" name="domform" id="domform">
{% include "admin/genericform.html" %}
<div class="lastrow" align="center">
<input type="submit" class="button" name="submit" value="Create" />
</div>
</form>
{% endblock %}
²
+18
View File
@@ -0,0 +1,18 @@
{% extends "admin/layout_simple.html" %}
{% block html_head %}
<script src="/static/js/form.js" type="text/javascript"></script>
{% endblock %}
{% block content %}
<div class="title"><h1>New mailbox</h1></div>
{% if error %}<div class="error">{{ error }}</div>{% endif %}
{% url admin.views.newmailbox domain.id as box_url %}
<form action="{{ box_url }}" method="POST" id="mboxform" name="mboxform">
{% include "admin/genericform.html" %}
<div class="spacer"></div>
<div class="lastrow" align="center">
<input type="submit" name="submit" value="Create" />
</div>
</form>
{% endblock %}
+36
View File
@@ -0,0 +1,36 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MailNG - {%block pagetitle %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="/static/stylesheets/basic.css" />
<link rel="stylesheet" type="text/css" href="/static/stylesheets/SqueezeBox.css" />
<script src="/static/js/mootools.js" type="text/javascript"></script>
<script src="/static/js/SqueezeBox.js" type="text/javascript"></script>
{%block html_head %}{% endblock %}
</head>
<body>
<div id="header" class="rounded">
<div id="logo"></div>
<div id="title">
<h1>MailNG</h1>
<h2>Simple web messaging solution</h2>
<div id="info"></div>
</div>
</div>
<div id="content">
{%block content %}{% endblock %}
</div>
<div class="spacer"></div>
<div id="footer">
&copy; Antoine Nguyen 2009
</div>
</body>
</html>
+29
View File
@@ -0,0 +1,29 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MailNG - {%block pagetitle %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="/static/stylesheets/basic.css" />
<link rel="stylesheet" type="text/css" href="/static/stylesheets/SqueezeBox.css" />
<script src="/static/js/mootools.js" type="text/javascript"></script>
<script src="/static/js/SqueezeBox.js" type="text/javascript"></script>
{%block html_head %}{% endblock %}
</head>
<body>
<div id="header" class="rounded">
<div id="logo"></div>
<div id="title">
<h1>MailNG</h1>
<h2>Simple web messaging solution</h2>
</div>
</div>
{% block content %}{% endblock %}
<div class="spacer"></div>
<div id="footer">
&copy; Antoine Nguyen 2009
</div>
</body>
</html>
+25
View File
@@ -0,0 +1,25 @@
{% extends "layout.html" %}
{% block html_head %}
<link rel="stylesheet" type="text/css" href="/static/stylesheets/box.css" />
{% endblock %}
{% block content %}
<div id="loginbox">
<h3>Welcome</h3>
{% if form.errors %}
<div class="error">
<p>Your username and password didn't match. Please try again.</p>
</div>
{% endif %}
<form method="post" action=".">
{% for field in form %}
<div class="row">
{{ field.label_tag }}{{ field }}
</div>
{% endfor %}
<div class="lastrow" align="center">
<input type="submit" value="login" />
</div>
<input type="hidden" name="next" value="{{ next }}" />
</form>
</div>
{% endblock %}