Parent: [dbb69c] (diff)

Child: [9bed1e] (diff)

Download this file

app_admin_options.html    40 lines (35 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends g.theme.master %}
{% 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>&nbsp;</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 %}