-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.html
41 lines (40 loc) · 1.61 KB
/
config.html
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
40
{% extends "base.html" %}
{% set tab = 'admin' %}
{% block title %}Edit Configuration{% endblock %}
{% block content %}
<div class="row-fluid">
<div class="span12">
<form class="form-horizontal" method="post">
{% for name, val in config|dictsort %}
<div class="control-group">
<label class="control-label" for="config_{{ name }}">{{ name }}
{% if flags[name] %}
<span class="label label-success">Updated</span>
{% elif flags[name] == None %}
<span class="label label-danger">Failed</span>
{% endif %}</label>
<div class="controls">
<input type="text" id="config_{{ name }}"
name="config_{{ name }}" value="{{ val }}"/>
</div>
</div>
{% endfor %}
<div class="control-group">
<label class="control-label" for="new_entry">Add a new key</label>
<div class="controls">
<input type="text" id="new_name" name="new_name"
placeholder="Name"/>
<input type="text" id="new_value" name="new_value"
placeholder="Value"/>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn">Save</button>
</div>
</div>
</form>
</div>
</div>
{% endblock %}
{# vim: set ts=4 sts=4 sw=4 et: #}