From c6fab2542f52f6cca71c207c1925785971e51295 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 14 Oct 2014 11:57:28 -0400 Subject: Handle lists type options in plugins configuration Autodetect and convert config values based on the options definition. If the option is marked as list split a string on setting the configuration or join the list into a string before saving it to the database. Signed-off-by: Simo Sorce --- templates/admin/plugin_config.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates/admin/plugin_config.html') diff --git a/templates/admin/plugin_config.html b/templates/admin/plugin_config.html index 70d56f0..e722aa1 100644 --- a/templates/admin/plugin_config.html +++ b/templates/admin/plugin_config.html @@ -12,7 +12,12 @@ {% for o in options_order %}
- + {% set val = plugin.get_config_value(o) %} + {% if val is string %} + + {% else %} + + {% endif %}
{{ plugin.get_config_desc(o) }} {% endfor %} -- cgit