diff options
Diffstat (limited to 'views/default/usersettings')
-rw-r--r-- | views/default/usersettings/form.php | 22 |
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 |