Showing and allowing to edit arrays in order config

This commit is contained in:
4Giedrius committed 2014-11-26 17:33:17 +02:00
1 parent 9f58bf0a75
commit bba745dd2b
1 file changed
+7 -1
@@ -343,7 +343,13 @@
<div class="rowElem noborder">
<label>{{ key }}</label>
<div class="formRight noborder">
<input type="text" name="config[{{key}}]" value="{{ config }}" {% if config is null %} placeholder="null" {% endif %}/>
{% if config is iterable %}
{% for key2, config2 in config %}
<input type="text" name="config[{{key}}][{{key2}}]" value="{{ config2 }}" {% if config2 is null %} placeholder="null" {% endif %}/>
{% endfor %}
{% else %}
<input type="text" name="config[{{key}}]" value="{{ config }}" {% if config is null %} placeholder="null" {% endif %}/>
{% endif %}
</div>
<div class="fix"></div>
</div>