CommunityID/modules/users/views/scripts/profilegeneral/editaccountinfo.phtml

36 lines
1.5 KiB
PHTML
Raw Normal View History

2019-07-17 20:08:50 +00:00
<form name="accountInfoForm" class="formGrid">
2019-07-17 20:16:19 +00:00
<?php echo $this->accountInfoForm->username ?>
<?php echo $this->accountInfoForm->firstname ?>
<?php echo $this->accountInfoForm->lastname ?>
<?php echo $this->accountInfoForm->email ?>
<?php if (!$this->targetUser->id) {
2019-07-17 20:08:50 +00:00
echo $this->accountInfoForm->password1;
echo $this->accountInfoForm->password2;
} ?>
<div class="yui-gf">
<div class="yui-u first">&nbsp;</div>
<div class="yui-u">
2019-07-17 20:16:19 +00:00
<input type="button" id="save" value="<?php echo $this->translate('Save') ?>" onclick="COMMID.editAccountInfo.save()" />
<input type="button" id="cancel" value="<?php echo $this->translate('Cancel') ?>" onclick="COMMID.editAccountInfo.cancel()" />
2019-07-17 20:08:50 +00:00
<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function () {
new YAHOO.widget.Button(
"save",
{
type : "push",
onclick : {fn: function() {COMMID.editAccountInfo.save()}}
}
);
new YAHOO.widget.Button(
"cancel",
{
type : "push",
onclick : {fn: function() {COMMID.editAccountInfo.cancel()}}
}
);
});
</script>
</div>
</div>
</form>