aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/account/forms/useradd.php35
-rw-r--r--views/default/admin/user_opt/adduser.php8
2 files changed, 41 insertions, 2 deletions
diff --git a/views/default/account/forms/useradd.php b/views/default/account/forms/useradd.php
new file mode 100644
index 000000000..daf645437
--- /dev/null
+++ b/views/default/account/forms/useradd.php
@@ -0,0 +1,35 @@
+<?php
+ /**
+ * Elgg add user form.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ $admin_option = false;
+ if (($_SESSION['user']->admin) && ($vars['show_admin']))
+ $admin_option = true;
+?>
+
+ <h2><?php echo elgg_echo('adduser'); ?></h2>
+ <div id="add-box">
+ <form action="<?php echo $vars['url']; ?>action/useradd" method="POST">
+ <p><label><?php echo elgg_echo('name'); ?>: <input name="name" type="text" class="general-textarea" /></label><br />
+ <label><?php echo elgg_echo('email'); ?>: <input name="email" type="text" class="general-textarea" /></label><br />
+ <label><?php echo elgg_echo('username'); ?>: <input name="username" type="text" class="general-textarea" /></label><br />
+ <label><?php echo elgg_echo('password'); ?>: <input name="password" type="password" class="general-textarea" /></label><br />
+ <label><?php echo elgg_echo('passwordagain'); ?>: <input name="password2" type="password" class="general-textarea" /></label><br />
+ <?php
+ if ($admin_option) {
+?>
+ <label><?php echo elgg_echo('admin_option'); ?> <input type="checkbox" name="admin" /></label> <br />
+<?php
+ }
+ ?>
+ <input type="submit" name="submit" class="submit_button" value="<?php echo elgg_echo('adduser'); ?>" /></p>
+ </form>
+ </div> \ No newline at end of file
diff --git a/views/default/admin/user_opt/adduser.php b/views/default/admin/user_opt/adduser.php
index 4774c64a2..29827d798 100644
--- a/views/default/admin/user_opt/adduser.php
+++ b/views/default/admin/user_opt/adduser.php
@@ -12,5 +12,9 @@
*/
?>
-
-<?php echo elgg_view('account/forms/register', array('show_admin'=>true)); ?> \ No newline at end of file
+<div>
+ <?php echo elgg_echo('admin:user:adduser:label'); ?>
+</div>
+<div id="add_user_showhide">
+<?php echo elgg_view('account/forms/useradd', array('show_admin'=>true)); ?>
+</div> \ No newline at end of file