aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/forms
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 02:25:58 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 02:25:58 +0000
commit94fa4e76e0aef93816c9b8c087fda914e246ada7 (patch)
tree91f0f68dc6b7db5be94b344ecee40ec93eee1ea4 /mod/developers/views/default/forms
parent95986a5592bd1b701228626a4e86ea4b97c7295e (diff)
downloadelgg-94fa4e76e0aef93816c9b8c087fda914e246ada7.tar.gz
elgg-94fa4e76e0aef93816c9b8c087fda914e246ada7.tar.bz2
started adding a settings page
git-svn-id: http://code.elgg.org/elgg/trunk@8414 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/developers/views/default/forms')
-rw-r--r--mod/developers/views/default/forms/developers/settings.php41
1 files changed, 41 insertions, 0 deletions
diff --git a/mod/developers/views/default/forms/developers/settings.php b/mod/developers/views/default/forms/developers/settings.php
new file mode 100644
index 000000000..2a3825500
--- /dev/null
+++ b/mod/developers/views/default/forms/developers/settings.php
@@ -0,0 +1,41 @@
+<?php
+/**
+ * Settings form body
+ *
+ * @uses $vars['values'] Array of current values
+ * @uses $vars['options'] Array of possible options
+ */
+
+$form_body = '<p>' . elgg_echo('elgg_dev_tools:settings:explanation') . '</p>';
+
+$sections = array(
+ 'simple_cache' => 'checkbox',
+ 'views_cache' => 'checkbox',
+ //'display_errors' => 'checkbox',
+ 'debug_level' => 'pulldown',
+);
+
+foreach ($sections as $name => $type) {
+ echo '<p>';
+ if ($type == 'checkbox') {
+ echo elgg_view("input/$type", array(
+ 'internalname' => $name,
+ 'value' => $vars['settings'][$name],
+ ));
+ echo '<label>' . elgg_echo("developers:label:$name") . '</label>';
+ echo '<span class="elgg-text-help">' . elgg_echo("developers:help:$name") . '</span>';
+ } else {
+ echo '<label>' . elgg_echo("developers:label:$name") . '</label>';
+ echo elgg_view("input/$type", array(
+ 'internalname' => $name,
+ 'value' => $vars['settings'][$name],
+ 'options' => $vars['options'][$name],
+ ));
+ echo '<span class="elgg-text-help">' . elgg_echo("developers:help:$name") . '</span>';
+ }
+ echo '</p>';
+}
+
+echo '<p>';
+echo elgg_view('input/submit', array('value' => elgg_echo('save')));
+echo '</p>'; \ No newline at end of file