X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=templates%2Fadmin%2Fplugin_config.html;h=c6ae044de9fe60bac85229ffb8fc59804a65068b;hp=d95bf75cdb2b1b6a087f0d2be4c5fe004cd99636;hb=12139c6090941f67c098bf4387ce00a8503e825e;hpb=14e8ecd7cf8ea8d342eac5c4c66b764b3a8e2dbb diff --git a/templates/admin/plugin_config.html b/templates/admin/plugin_config.html index d95bf75..c6ae044 100644 --- a/templates/admin/plugin_config.html +++ b/templates/admin/plugin_config.html @@ -1,26 +1,217 @@ {% extends "master-admin.html" %} +{% block scripts %} + +{% endblock %} {% block main %} -

{{ title }}

- {% if message %} -
-

{{ message }}

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

{{ title }}

+
+
- {% endif %} -
-
- {% for o in options_order %} +
+ +
+ + {% for k, v in config.iteritems() %}
- - + +
+ {% set value = v.get_value() -%} + {% if v.__class__.__name__ in ['String', 'Template'] -%} + + {% elif v.__class__.__name__ == 'List' -%} + + {% elif v.__class__.__name__ == 'Choice' -%} + {% set entries = v.get_allowed() -%} +
+ {% for e in entries -%} +
+  {{ e }} +
+ {% endfor %} +
+ {% elif v.__class__.__name__ == 'Pick' -%} + {% set entries = v.get_allowed() -%} +
+ {% for e in entries -%} +
+  {{ e }} +
+ {% endfor %} +
+ {% elif v.__class__.__name__ == 'Condition' -%} + + {% elif v.__class__.__name__ == 'ComplexList' -%} + + + {% for line in value -%} + {%- set basename = "%s %d-"|format(v.name, loop.index0) -%} + + + + + + {% endfor -%} + + {%- set basename = "%s %d-"|format(v.name, value|length) -%} + + + + + + + + + +
#NameDelete
{{loop.index}} + + + + +
+
+ {% elif v.__class__.__name__ == 'MappingList' -%} + + + {% for line in value -%} + {%- set basename = "%s %d-"|format(v.name, loop.index0) -%} + + + + + + + {% endfor -%} + + {%- set basename = "%s %d-"|format(v.name, value|length) -%} + + + + + + + + + + +
#FromToDelete
{{loop.index}} + + + + + + +
+
+ {% else -%} + {{ v.__class__.__name__ }} + {% endif -%} + {{ v.description }} +
- {{ options[o][0] }} +
{% endfor %} - - Back + + Back +

+ +{% endif %} {% endblock %}