aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src/systemtemplates/settings.html
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-11-26 21:51:01 +0100
committerKevin Chabowski <kevin@kch42.de>2011-11-26 21:51:01 +0100
commite11f256bf045da15620dae50806929f758c77e6d (patch)
tree0fb611e76a49cb85a579f4f542dc8f939d68a812 /ratatoeskr/templates/src/systemtemplates/settings.html
parent55a1c0cecfae4ecf0ed75ea60894de08bf62b872 (diff)
downloadratatoeskr-cms-e11f256bf045da15620dae50806929f758c77e6d.tar.gz
ratatoeskr-cms-e11f256bf045da15620dae50806929f758c77e6d.tar.bz2
ratatoeskr-cms-e11f256bf045da15620dae50806929f758c77e6d.zip
Added a settings page to the backend.
Diffstat (limited to 'ratatoeskr/templates/src/systemtemplates/settings.html')
-rw-r--r--ratatoeskr/templates/src/systemtemplates/settings.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/settings.html b/ratatoeskr/templates/src/systemtemplates/settings.html
new file mode 100644
index 0000000..5b0d0c5
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/settings.html
@@ -0,0 +1,52 @@
+<ste:load name="master.html" />
+<ste:load name="instant_select.tpl" />
+<ste:block name="content">
+ <ste:if>$error
+ <ste:then>
+ <div class="error"><ste:escape>$error</ste:escape></div>
+ </ste:then>
+ </ste:if>
+ <ste:if>$success
+ <ste:then>
+ <div class="success"><ste:escape>$success</ste:escape></div>
+ </ste:then>
+ </ste:if>
+
+ <form action="$rel_path_to_root/backend/admin/settings" method="POST" accept-charset="UTF-8">
+ <h2><ste:get_translation for="comment_settings" /></h2>
+ <strong><ste:get_translation for="comment_textprocessor" />:</strong> <ste:instant_select name="comment_textprocessor" array="textprocessors" selected="$comment_textprocessor" /><br />
+ <strong><ste:get_translation for="comment_auto_visible" />:</strong> <input type="checkbox" name="comment_auto_visible" value="yes"?{$comment_auto_visible| checked="checked"|} /><br />
+ <input type="submit" name="save_comment_settings" />
+ </form>
+
+ <form action="$rel_path_to_root/backend/admin/settings" method="POST" accept-charset="UTF-8">
+ <h2><ste:get_translation for="language_settings" /></h2>
+ <table class="listtab">
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th><ste:get_translation for="language_code" /></th>
+ <th><ste:get_translation for="language" /></th>
+ <th><ste:get_translation for="default_language" /></th>
+ </tr>
+ </thead>
+ <tbody>
+ <ste:foreach array="used_langs" value="lang">
+ <tr>
+ <td><input type="radio" name="language_select" value="$lang[code]" /></td>
+ <td>$lang[code]</td>
+ <td><ste:escape>$lang[name]</ste:escape></td>
+ <td>?{$lang[default]|<strong><ste:get_translation for="yes" /></strong>|<ste:get_translation for="no" />}</td>
+ </tr>
+ </ste:foreach>
+ </tbody>
+ </table>
+ <div>
+ <input type="submit" name="delete" value="<ste:get_translation for='delete' />" />&nbsp;<select name="really_delete"><option value="no" selected="selected"><ste:get_translation for="no" /></option><option value="yes"><ste:get_translation for="yes" /></option></select>
+ |
+ <input type="submit" name="make_default" value="<ste:get_translation for='make_default' />" />
+ |
+ <input type="submit" name="add_language" value="<ste:get_translation for='add_language' />" />&nbsp;<ste:instant_select name="language_to_add" array="all_langcodes" />
+ </div>
+ </form>
+</ste:block>