import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
19
modules/users/views/scripts/profile/index.phtml
Executable file → Normal file
19
modules/users/views/scripts/profile/index.phtml
Executable file → Normal file
@ -13,12 +13,17 @@ YAHOO.util.Event.onDOMReady(function () {
|
||||
<h2><?php echo $this->translate('Account info') ?></h2>
|
||||
<?php if ($this->targetUser->id == $this->user->id): ?>
|
||||
<div class="linksTopRight">
|
||||
<a href="javascript:void(0);" onclick="COMMID.general.editAccountInfo();">
|
||||
<?php echo $this->translate('Edit') ?>
|
||||
</a> |
|
||||
<a href="javascript:void(0);" onclick="COMMID.general.changePassword()" >
|
||||
<?php echo $this->translate('Change Password') ?>
|
||||
</a>
|
||||
<? if ($this->canEditAccountInfo): ?>
|
||||
<a href="javascript:void(0);" onclick="COMMID.general.editAccountInfo();">
|
||||
<?php echo $this->translate('Edit') ?>
|
||||
</a>
|
||||
<? endif ?>
|
||||
<? if ($this->canChangePassword && (!$this->yubikey->enabled || !$this->yubikey->force)): ?>
|
||||
|
|
||||
<a href="javascript:void(0);" onclick="COMMID.general.changePassword()" >
|
||||
<?php echo $this->translate('Change Password') ?>
|
||||
</a>
|
||||
<? endif ?>
|
||||
<img id="loadingAccountInfo" src="<?php echo $this->base ?>/images/progress.gif" style="visibility:hidden" />
|
||||
</div>
|
||||
<?php endif ?>
|
||||
@ -34,7 +39,7 @@ YAHOO.util.Event.onDOMReady(function () {
|
||||
<?php if ($this->targetUser->id && $this->targetUser->id == $this->user->id): ?>
|
||||
<div class="accountForm">
|
||||
<div class="linksTopRight" >
|
||||
<?php if ($this->user->role == Users_Model_User::ROLE_REGISTERED): ?>
|
||||
<?php if ($this->user->role == Users_Model_User::ROLE_REGISTERED && $this->canEditAccountInfo): ?>
|
||||
<a href="<?php echo $this->base ?>/users/profilegeneral/confirmdelete">
|
||||
<?php echo $this->translate('Delete Account') ?>
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user