From f3575089742ba85ed420f6f9becd2cde4135097f Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 15 Oct 2014 20:26:24 -0400 Subject: Update style of plugins config page too Also fix a bug that would cause the config page to show no fields when saving. Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- templates/admin/plugin_config.html | 40 +++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) (limited to 'templates') diff --git a/templates/admin/plugin_config.html b/templates/admin/plugin_config.html index e722aa1..1372f55 100644 --- a/templates/admin/plugin_config.html +++ b/templates/admin/plugin_config.html @@ -1,31 +1,49 @@ {% extends "master-admin.html" %} {% block main %} -

{{ title }}

- {% if message %} -
-

{{ message }}

+{% if user.is_admin %} + +
+
+

{{ title }}

+
+
- {% endif %} + +
+
-
+ {% for o in options_order %}
- + +
{% set val = plugin.get_config_value(o) %} {% if val is string %} {% else %} {% endif %} + {{ plugin.get_config_desc(o) }} +
- {{ plugin.get_config_desc(o) }} +
{% endfor %} - - Back + + Back +

+ +{% endif %} {% endblock %} -- cgit