From c89ae23656dceecba453c68ce97382b9fff5fda6 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 18 Feb 2015 14:27:58 -0500 Subject: [PATCH] Add support for new options to plugin_config.html This add support in the template for showing ComplexList and MappingList options. Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- templates/admin/plugin_config.html | 57 +++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/templates/admin/plugin_config.html b/templates/admin/plugin_config.html index 7071c7e..18792a2 100644 --- a/templates/admin/plugin_config.html +++ b/templates/admin/plugin_config.html @@ -23,7 +23,7 @@
- {%- set value = v.get_value() -%} + {% set value = v.get_value() -%} {% if v.__class__.__name__ in ['String', 'Template'] -%} + {% elif v.__class__.__name__ == 'ComplexList' -%} + + + {% for line in value -%} + {%- set basename = "%s %d-"|format(v.name, loop.index0) -%} + + + + + + {% endfor -%} +
#NameDelete
{{loop.index}} + + + + +
+ {% elif v.__class__.__name__ == 'MappingList' -%} + + + {% for line in value -%} + {%- set basename = "%s %d-"|format(v.name, loop.index0) -%} + + + + + + + {% endfor -%} +
#FromToDelete
{{loop.index}} + + + + + + +
{% else -%} {{ v.__class__.__name__ }} {% endif -%} -- 2.20.1