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;
|
|
|
|
} ?>
|
2019-07-17 20:31:04 +00:00
|
|
|
<? if ($this->yubikey->enabled): ?>
|
|
|
|
<? if (!$this->yubikey->force): ?>
|
|
|
|
<?= $this->accountInfoForm->authMethod ?>
|
|
|
|
<? endif ?>
|
|
|
|
<div id="yubikeyWrapper" style="display:<?= $this->yubikey->force? 'block' : 'none' ?>">
|
|
|
|
<?= $this->accountInfoForm->yubikey ?>
|
|
|
|
</div>
|
|
|
|
<? endif ?>
|
2019-07-17 20:08:50 +00:00
|
|
|
<div class="yui-gf">
|
|
|
|
<div class="yui-u first"> </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 () {
|
2019-07-17 20:31:04 +00:00
|
|
|
<? if ($this->yubikey->enabled && !$this->yubikey->force): ?>
|
|
|
|
COMMID.general.toggleYubikey();
|
|
|
|
<? endif ?>
|
|
|
|
|
2019-07-17 20:08:50 +00:00
|
|
|
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>
|