-
Notifications
You must be signed in to change notification settings - Fork 2k
/
config.html
30 lines (21 loc) · 1.26 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
{% import 'macros/form.html' as form %}
{% extends "page.html" %}
{% block title %}{{ _('Administration') }} - {{ super() }}{% endblock %}
{% block primary %}
<article class="module">
<div class="module-content">
<h1 class="page-heading">{{ _('Configuration Settings') }}</h1>
<form method='post' action="" class="form-horizontal">
{{ form.select('style', id='field-style', label=_('Style'), options=styles, selected=data.style, error=errors.style) }}
{{ form.input('title', id='field-title', label=_('Site Title'), placeholder=_('eg. CKAN'), value=data.title, error=errors.title, classes=['control-medium']) }}
{{ form.input('tagline', id='field-tagline', label=_('Tag Line'), placeholder=_('eg. The Open Source Data Portal'), value=data.tagline, error=errors.tagline, classes=['control-medium']) }}
{{ form.markdown('about', id='field-about', label=_('About Text'), placeholder=_('About contents'), value=data.about, error=errors.about) }}
<div class="form-actions">
<button type="submit" class="btn" name="reset">Reset</button>
<button type="submit" class="btn btn-primary" name="save">Update</button>
</div>
</form>
</div>
</article>
{% endblock %}
{% block sidebar %}{% endblock %}