aboutsummaryrefslogtreecommitdiff
path: root/views/default/usersettings
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 12:52:17 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 12:52:17 +0000
commit0d824354c94d69b08345cdf8bf322aa07b4958c3 (patch)
treef16a06df7403072d9d27b0b4bf0af74814fbf8cb /views/default/usersettings
parent0a93b4d2dacd35c17ef998e50d7d60e53e720825 (diff)
downloadelgg-0d824354c94d69b08345cdf8bf322aa07b4958c3.tar.gz
elgg-0d824354c94d69b08345cdf8bf322aa07b4958c3.tar.bz2
Refs #210 & #211 : Some more core settings / admin pages moved to use admin_gatekeeper. Install script action now also refuses to be run if the site has already been installed.
git-svn-id: https://code.elgg.org/elgg/trunk@1824 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/usersettings')
-rw-r--r--views/default/usersettings/form.php22
1 files changed, 7 insertions, 15 deletions
diff --git a/views/default/usersettings/form.php b/views/default/usersettings/form.php
index e245a0da1..509146162 100644
--- a/views/default/usersettings/form.php
+++ b/views/default/usersettings/form.php
@@ -1,15 +1,7 @@
-<form action="<?php echo $vars['url']; ?>action/usersettings/save" method="post" >
-
- <div class="settings_form">
-<?php
-
- echo elgg_view("usersettings/user");
-
-?>
- </div>
-
- <p>
- <input type="submit" value="<?php echo elgg_echo('save'); ?>" />
- </p>
-
-</form> \ No newline at end of file
+<?php
+
+ $form_body = "<div class=\"settings_form\">" . elgg_view("usersettings/user") . "</div>";
+ $form_body .= "<p>" . elgg_view('input/submit', array('value' => elgg_echo('save'))) . "</p>";
+
+ echo elgg_view('input/form', array('action' => "{$vars['url']}action/usersettings/save", 'body' => $form_body));
+?> \ No newline at end of file