<div id="options">
<form role="form" id="{{ name }}" action="{{ action }}" method="post" enctype="application/x-www-form-urlencoded">
- {% for o in options %}
+ {% for o in options_order %}
<div class="form-group">
<label for="{{ o }}">{{ o }}:</label>
- <input type="text" class="form-control" name="{{ o }}" value="{{ options[o][2] }}">
+ {% set val = plugin.get_config_value(o) %}
+ {% if val is string %}
+ <input type="text" class="form-control" name="{{ o }}" value="{{ val }}">
+ {% else %}
+ <input type="text" class="form-control" name="{{ o }}" value="{{ val|join(', ') }}">
+ {% endif %}
</div>
- <span class="help-block">{{ options[o][0] }}</span>
+ <span class="help-block">{{ plugin.get_config_desc(o) }}</span>
{% endfor %}
<button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit">
Save
</button>
- <a href="{{ basepath }}/admin/login" class="btn btn-default" title="Back">Back</a>
+ <a href="{{ back }}" class="btn btn-default" title="Back">Back</a>
</form>
</div>
{% endblock %}