From: Simo Sorce Date: Wed, 18 Feb 2015 19:27:58 +0000 (-0500) Subject: Add support for new options to plugin_config.html X-Git-Tag: v0.4.0~16 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fipsilon.git;a=commitdiff_plain;h=c89ae23656dceecba453c68ce97382b9fff5fda6 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 --- 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 -%}