Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
4962 removed the ability to change user name, inline and on the edit …
…user page
  • Loading branch information
atutorlangs committed Sep 8, 2014
1 parent 2ffa431 commit 5a1af4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion themes/default/register.tmpl.php
Expand Up @@ -75,7 +75,15 @@ function encrypt_password()

<dl class="form_layout">
<dt><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="login"><?php echo _AT('login_name'); ?></label>:</dt>
<dd><input id="login" name="login" type="text" maxlength="20" size="30" value="<?php if (isset($_POST['login'])) echo stripslashes(htmlspecialchars($_POST['login'])); else echo stripslashes(htmlspecialchars($this->user_row['login'])); ?>" /></dd>
<dd>
<?php if($this->user_row['login'] != ''){
echo '<strong>'.stripslashes(htmlspecialchars($this->user_row['login'])).'</strong>';
}else{ ?>
<input id="login" name="login" type="text" maxlength="20" size="30" value="<?php if (isset($_POST['login'])) echo stripslashes(htmlspecialchars($_POST['login'])); else echo stripslashes(htmlspecialchars($this->user_row['login'])); ?>" />
<?php }
?>

</dd>
<p><small>&middot; <?php echo _AT('contain_only'); ?><br />
&middot; <?php echo _AT('20_max_chars'); ?></small></p>

Expand Down
2 changes: 1 addition & 1 deletion themes/default/user/index.tmpl.php
Expand Up @@ -145,7 +145,7 @@
id="rm<?php echo $row['user_id']; ?>">
<td><input type="checkbox" name="id[]" value="<?php echo $row['user_id']; ?>" id="m<?php echo $row['user_id']; ?>"
onmouseup="this.checked=!this.checked" onkeyup="this.checked=!this.checked" /></td>
<td><label for="m<?php echo $row['user_id']; ?>"><span class="inlineEdits" id="<?php echo "login-".$row['user_id']; ?>"><?php echo $row['login']; ?></span></label></td>
<td><label for="m<?php echo $row['user_id']; ?>"><?php echo $row['login']; ?></label></td>
<td><span class="inlineEdits" id="<?php echo "first_name-".$row['user_id']; ?>"><?php echo $row['first_name']; ?></span></td>
<td><span class="inlineEdits" id="<?php echo "last_name-".$row['user_id']; ?>"><?php echo $row['last_name']; ?></span></td>
<td><?php echo $row['user_group']; ?></td>
Expand Down

0 comments on commit 5a1af4d

Please sign in to comment.