{% extends 'jinja_master/master.html' %}
{% block title %}{{c.project.name}} / {{app.config.options.mount_label}} / Options{% endblock %}
{% block header %}{{app.config.options.mount_point}} Options{% endblock %}
{% block content %}
<form method="post" action="configure">
<ol>
{% for o in app.config_options if o.name not in ['mount_point', 'mount_label', 'ordinal'] %}
<li><label for="{{o.name}}" class="span-3">{{o.name}}</label>
{% if not allow_config %}
<div>
{{app.config.options.get(o.name, o.default)}}
</div>
{% else%}
<div class="editable viewing" style="min-height:1em;">
<div class="viewer">{{app.config.options.get(o.name, o.default)}}</div>
<div class="editor"><input name="{{o.name}}" value="{{app.config.options.get(o.name, o.default)}}"/></div>
</div>
{% endif %}
</li>
<hr class="clear clearfix" />
{% else %}
<li>No options to administer for {{app.config.options.mount_point}}.</li>
{% endfor %}
<li>
<label> </label>
{% if allow_config %}
<input type="submit" value="Update config" />
{% if app.installable %}
<input type="submit" name="delete" value="Delete Tool" />
{% endif %}
{% endif %}
</li>
</ol>
</form>
{% endblock %}