From 6315f728e83cf8b35ce4451fe7e0d74cc4f5f7be Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 11 Aug 2008 10:52:20 +0000 Subject: Refs #210 & #211 git-svn-id: https://code.elgg.org/elgg/trunk@1820 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/account/forms/register.php | 34 +++++++++++++++----------------- 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'views/default/account/forms/register.php') diff --git a/views/default/account/forms/register.php b/views/default/account/forms/register.php index 931383aa4..f8c9ffe5b 100644 --- a/views/default/account/forms/register.php +++ b/views/default/account/forms/register.php @@ -13,26 +13,24 @@ $admin_option = false; if (($_SESSION['user']->admin) && ($vars['show_admin'])) - $admin_option = true; + $admin_option = true; + + $form_body = "


"; + + $form_body .= "
"; + $form_body .= "
"; + $form_body .= "
"; + $form_body .= "
"; + + if ($admin_option) + $form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option')))); + + $form_body .= elgg_view('input/hidden', array('internalname' => 'action', 'value' => 'register')); + $form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "

"; ?>
-

-
-


-
-
-
-
- -
- -

- -
+

+ "{$vars['url']}action/register", 'body' => $form_body)) ?>
\ No newline at end of file -- cgit v1.2.3