aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-27 21:34:41 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-27 21:34:41 -0500
commitd51459b56adaea48eb50ba9d6ef140751077de74 (patch)
tree50afa8e3cb16fa2764bcd10f42dd220ec6c4df65 /views/default
parent65afed116e377c5a17bd6faf278ae9b71dd5abdf (diff)
downloadelgg-d51459b56adaea48eb50ba9d6ef140751077de74.tar.gz
elgg-d51459b56adaea48eb50ba9d6ef140751077de74.tar.bz2
Fixes #3953 adds back the ability to change display name from settings page
Diffstat (limited to 'views/default')
-rw-r--r--views/default/core/settings/account/name.php21
1 files changed, 16 insertions, 5 deletions
diff --git a/views/default/core/settings/account/name.php b/views/default/core/settings/account/name.php
index 69ffcecaf..f719a84de 100644
--- a/views/default/core/settings/account/name.php
+++ b/views/default/core/settings/account/name.php
@@ -4,12 +4,23 @@
*
* @package Elgg
* @subpackage Core
-
-
*/
$user = elgg_get_page_owner_entity();
-
-// all hidden, but necessary for properly updating user details
-echo elgg_view('input/hidden', array('name' => 'name', 'value' => $user->name));
+?>
+<div class="elgg-module elgg-module-info">
+ <div class="elgg-head">
+ <h3><?php echo elgg_echo('user:name:label'); ?></h3>
+ </div>
+ <div class="elgg-body">
+ <p>
+ <?php echo elgg_echo('name'); ?>:
+ <?php
+ echo elgg_view('input/text', array('name' => 'name', 'value' => $user->name));
+ ?>
+ </p>
+ </div>
+</div>
+<?php
+// need the user's guid to make sure the correct user gets updated
echo elgg_view('input/hidden', array('name' => 'guid', 'value' => $user->guid));