summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-19 02:03:54 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-19 02:03:54 +1000
commit5051e0572a1f0618156cd84c1cb93107e2d584a9 (patch)
tree6d964a74140d59e9624ef5950f38a8ba267213cc /templates
parent740b710dd445b8ce988825fb649a3e03704833e5 (diff)
Missing theme conf type "checkbox"
Diffstat (limited to 'templates')
-rw-r--r--templates/mod/theme_config.html19
1 files changed, 14 insertions, 5 deletions
diff --git a/templates/mod/theme_config.html b/templates/mod/theme_config.html
index 2dbb8397..d85b5df1 100644
--- a/templates/mod/theme_config.html
+++ b/templates/mod/theme_config.html
@@ -7,12 +7,21 @@
<tr>
<th>{{ conf.title }}</th>
<td>
- <input type="text" name="{{ conf.name }}"
- {% if settings[conf.name] %}value="{{ settings[conf.name] }}"{% else %}{% if conf.default %}value="{{ conf.default }}"{% endif %}{% endif %}
- {% if conf.size %}
- size="{{ conf.size }}"
+ {% if conf.type == 'checkbox' %}
+ <input type="checkbox" name="{{ conf.name }}"
+ {% if settings[conf.name] or (not settings[conf.name] is defined and conf.default) %}
+ checked
+ {% endif %}>
+ {% else %}
+ <input type="text" name="{{ conf.name }}"
+ {% if settings[conf.name] %}
+ value="{{ settings[conf.name] }}"
+ {% else %}
+ {% if conf.default %}value="{{ conf.default }}"{% endif %}{% endif %}
+ {% if conf.size %}
+ size="{{ conf.size }}"
+ {% endif %}>
{% endif %}
- />
{% if conf.comment %}
<span class="unimportant">{{ conf.comment }}</span>
{% endif %}