Files
modoboa/templates/admin/parameters.html
T
Antoine Nguyen 6c7a64e947 !! VERY UNSTABLE CHANGESET !!
Many updates in this commit:
 * first work on the webmail plugin, for now only emails listing and folders browsing is supported...
 * New login form,
 * New graphical layout (still needing improvments)
 * code factoring between webmail and quarantine plugins
 * etc.
2010-01-15 12:15:15 +01:00

39 lines
1.1 KiB
HTML

{% extends "admin/settings_header.html" %}
{% block menu %}
{% load admin_extras %}
{% settings_menu "parameters" perms %}
{% endblock %}
{% block setcontent %}
{% load i18n %}
{% url admin.views.saveparameters as action %}
<form method="POST" action="{{ action }}">
<table class="hr">
<tr>
<th width="50%">{% trans "Name" %}</th>
<th>{% trans "Value" %}</th>
</tr>
{% for app, ps in params.items %}
{% for name, def in ps.items %}
<tr>
<td class="odd">{{ app }}::{{ name }}</td>
<td class="even">
{% if def.value %}
<input type="text" name="{{ app }}.{{ name }}" id="{{ app }}.{{ name }}" value="{{ def.value }}" />
{% else %}
<input type="text" name="{{ app }}.{{ name}}" id="{{ app }}.{{ name }}" value="{{ def.default }}" />
{% endif %}
{% if def.help %}
<a href="{{ def.help }}" onclick="return false;" class="Tips" title="{% trans 'Help' %}">
<img src="/static/pics/info.png" border="0" />
</a>
{% endif %}
</td>
</tr>
{% endfor %}
{% endfor %}
</table>
<p><input type="submit" name="update" value="{% trans 'Save' %}" /></p>
</form>
{% endblock %}