aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/useradd.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-15 02:15:39 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-15 02:15:39 +0000
commite2ecdb543fdf4ac0adf7097c979e74950c39165e (patch)
treeeb6b9addd1c4a0afc9f221f56613f3e7a792cd1d /views/default/forms/useradd.php
parentcbc74d984665a8bc0de18e0fa7c2fe270e9b7476 (diff)
downloadelgg-e2ecdb543fdf4ac0adf7097c979e74950c39165e.tar.gz
elgg-e2ecdb543fdf4ac0adf7097c979e74950c39165e.tar.bz2
moved account forms into forms directory
git-svn-id: http://code.elgg.org/elgg/trunk@7623 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/forms/useradd.php')
-rw-r--r--views/default/forms/useradd.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/views/default/forms/useradd.php b/views/default/forms/useradd.php
new file mode 100644
index 000000000..7c1969f1b
--- /dev/null
+++ b/views/default/forms/useradd.php
@@ -0,0 +1,31 @@
+<?php
+/**
+ * Elgg add user form.
+ *
+ * @package Elgg
+ * @subpackage Core
+ */
+
+$admin_option = false;
+if ((get_loggedin_user()->isAdmin()) && ($vars['show_admin'])) {
+ $admin_option = true;
+}
+
+$form_body = "<p><label>" . elgg_echo('name') . "<br />" . elgg_view('input/text' , array('internalname' => 'name')) . "</label></p>";
+$form_body .= "<p><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text' , array('internalname' => 'username')) . "</label></p>";
+$form_body .= "<p><label>" . elgg_echo('email') . "<br />" . elgg_view('input/text' , array('internalname' => 'email')) . "</label></p>";
+$form_body .= "<p><label>" . elgg_echo('password') . "<br />" . elgg_view('input/password' , array('internalname' => 'password')) . "</label></p>";
+$form_body .= "<p><label>" . elgg_echo('passwordagain') . "<br />" . elgg_view('input/password' , array('internalname' => 'password2')) . "</label></p>";
+$form_body .= "<p>";
+
+if ($admin_option) {
+ $form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option'))));
+}
+
+$form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "</p>";
+?>
+
+<div class="admin_settings add-user">
+ <h3><?php echo elgg_echo('adduser'); ?></h3>
+ <?php echo elgg_view('input/form', array('action' => "action/useradd", 'body' => $form_body)) ?>
+</div> \ No newline at end of file