Display sorted plugins and parameters.

This commit is contained in:
tonio
2010-01-29 19:01:46 +01:00
parent 7d69baa413
commit f29cb1a342
4 changed files with 49 additions and 23 deletions
+4 -16
View File
@@ -8,23 +8,11 @@
{% url admin.views.saveparameters as action %}
<form method="POST" action="{{ action }}">
<div id="accordion">
{% for app, ps in params.items %}
<h3 class="toggler atStart">{{ app }}</h3>
{% for app in gparams %}
<h3 class="toggler atStart">{{ app.name }}</h3>
<div class="element atStart">
{% for name, def in ps.items %}
<div class="row">
<label>{{ name }}</label>
{% 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 %}
</div>
{% for p in app.params %}
{% param app.name p %}
{% endfor %}
</div>
{% endfor %}