mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
perms object is no longer passed to builtins or filters, we use user instead (it seems that perms content is different with Django 1.2) #48 : I think I've found a way to include templatetags dynamically, using add_to_builtins.
23 lines
620 B
HTML
23 lines
620 B
HTML
{% extends "admin/settings_header.html" %}
|
|
{% block menu %}
|
|
{% load admin_extras %}
|
|
{% settings_menu "parameters" user %}
|
|
{% endblock %}
|
|
{% block setcontent %}
|
|
{% load i18n %}
|
|
{% url admin.views.saveparameters as action %}
|
|
<form method="POST" action="{{ action }}">
|
|
<div id="accordion">
|
|
{% for app in gparams %}
|
|
<h3 class="toggler atStart">{{ app.name }}</h3>
|
|
<div class="element atStart">
|
|
{% for p in app.params %}
|
|
{% param app.name p %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
<p><input type="submit" name="update" value="{% trans 'Save' %}" /></p>
|
|
</form>
|
|
{% endblock %}
|