/
config.html
34 lines (29 loc) · 1.35 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
{% import 'macros/form.html' as form %}
{% extends "page.html" %}
{% block title %}{{ _('Administration') }} - {{ super() }}{% endblock %}
{% block breadcrumb_content %}
{% endblock %}
{% block primary %}
<article class="module">
<div class="module-content">
<h1 class="page-heading">{{ _('Configuration Settings') }}</h1>
<form method='post' action="" class="form-horizontal">
<div class="control-group">
<label for="style" class="control-label">Style</label>
<div class="controls">
<select name="style">
{% for style, css in styles|sort %}
<option value="{{ css }}" {% if css == data.style %}selected="selected"{% endif %} >{{ style }}</option>
{% endfor %}
</select>
</div>
</div>
{{ form.input('title', id='field-title', label=_('Site Title'), placeholder=_('eg. CKAN'), value=data.title, error=errors.title) }}
{{ form.input('tagline', id='field-tagline', label=_('Tag Line'), placeholder=_('eg. The Open Source Data Portal'), value=data.tagline, error=errors.tagline) }}
{{ form.markdown('about', id='field-about', label=_('About Text'), placeholder=_('About contents'), value=data.about, error=errors.about) }}
<button type="submit" class="btn btn-primary" name="save">Update</button>
</form>
</div>
</article>
{% endblock %}
{% block sidebar %}{% endblock %}