summaryrefslogtreecommitdiff
path: root/templates/mod/config-editor.html
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-09-09 01:33:51 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-09-09 01:33:51 +1000
commiteea4e42609e319b38f14bca9f31cc3327ffaf175 (patch)
tree50eff229bcb7314e6f22837f1046a151adf3ddf7 /templates/mod/config-editor.html
parent9a846d5ad5838d4db824623d9916d6b4e34c29ee (diff)
Add ability to create custom user/permissions groups
Diffstat (limited to 'templates/mod/config-editor.html')
-rw-r--r--templates/mod/config-editor.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/mod/config-editor.html b/templates/mod/config-editor.html
index a43f8cf7..4f4cba93 100644
--- a/templates/mod/config-editor.html
+++ b/templates/mod/config-editor.html
@@ -42,10 +42,11 @@
<input name="{{ name }}" type="text" value="{{ var.value|e }}">
{% elseif var.permissions %}
<select name="{{ name }}">
- <option value="{{ constant('JANITOR') }}"{% if var.value == constant('JANITOR')%} selected{% endif %}>JANITOR</option>
- <option value="{{ constant('MOD') }}"{% if var.value == constant('MOD')%} selected{% endif %}>MOD</option>
- <option value="{{ constant('ADMIN') }}"{% if var.value == constant('ADMIN')%} selected{% endif %}>ADMIN</option>
- <option value="{{ constant('DISABLED') }}"{% if var.value == constant('DISABLED')%} selected{% endif %}>DISABLED</option>
+ {% for group_value, group_name in config.mod.groups %}
+ <option value="{{ group_value }}"{% if var.value == group_value %} selected{% endif %}>
+ {{ group_name }}
+ </option>
+ {% endfor %}
</select>
{% elseif var.type == 'integer' %}
<input name="{{ name }}" type="number" value="{{ var.value|e }}">