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:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -1,8 +1,8 @@
<form name="personalInfoForm" class="formGrid" >
<form name="personalInfoForm" class="formGrid" method="post" action="<?= $this->base ?>/users/personalinfo/save/profile/<?= $this->profile->id ?>">
<?php foreach ($this->fields as $field): ?>
<?php echo $field ?>
<?php endforeach ?><br />
<input type="button" id="save" value="<?php echo $this->translate('Save') ?>" onclick="COMMID.editPersonalInfo.save()" />
<input type="submit" id="save" value="<?php echo $this->translate('Save') ?>" />
<input type="button" id="cancel" value="<?php echo $this->translate('Cancel') ?>" onclick="COMMID.editPersonalInfo.cancel()" />
<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function () {
@ -15,15 +15,14 @@
var oButton = new YAHOO.widget.Button(
"save",
{
type : "push",
onclick : {fn: COMMID.personalInfo.save}
type : "submit"
}
);
var oButton = new YAHOO.widget.Button(
"cancel",
{
type : "push",
onclick : {fn: COMMID.personalInfo.cancel}
onclick : {fn: function() {COMMID.personalInfo.cancel();}}
}
);
</script>

View File

@ -11,18 +11,50 @@ YAHOO.util.Event.onDOMReady(function () {
<div id="generalTab" class="dataSection">
<div class="formHeader">
<h2><?php echo $this->translate('Personal Info') ?></h2>
<div>
<a href="javascript:void(0);" onclick="COMMID.personalInfo.edit();">
<?php echo $this->translate('Edit') ?>
</a>
<img id="loadingEditPersonalInfo" src="<?php echo $this->base ?>/images/progress.gif" style="visibility:hidden" />
</div>
</div>
<div style="margin:10px 0">
<em><?php echo $this->translate('This information will be used to automatically populate registration fields to any OpenID transaction that requires so') ?></em>
</div>
<div id="personalInfo">
<?php echo $this->action('show', 'personalinfo', 'users', array('userid' => $this->targetUser->id)) ?>
<? $i= 0; foreach ($this->profiles as $profile): ?>
<? $i++ ?>
<div id="personalInfo" style="position:relative; margin-bottom:15px; padding:20px; border:1px solid #999; -moz-border-radius:10px; -webkit-border-radius:10px">
<div style="position:absolute; right:10px; top:10px">
<a href="<?= $this->base ?>/users/personalinfo/edit/profile/<?= $profile->id ?>">
<?= $this->translate('Edit profile') ?>
</a>
<? if ($i > 1 || count($this->profiles) > 1): ?>
<form id="deleteprofile_<?= $profile->id ?>" method="post" action="<?= $this->base ?>/users/personalinfo/delete">
<input type="hidden" name="profile" value="<?= $profile->id ?>" />
<a href="#" onclick="COMMID.personalInfo.erase(<?= $profile->id ?>); return false;">
<?= $this->translate('Delete profile') ?>
</a>
</form>
<? endif ?>
</div>
<div class="formGrid">
<div class="yui-gf">
<div class="yui-u first">
<?= $this->translate('Profile Name') ?>:
</div>
<div class="yui-u">
<?= $profile->name ?>
</div>
</div>
<?php foreach ($profile->getFields() as $field): ?>
<div class="yui-gf">
<div class="yui-u first">
<?= $this->translate($field->name) ?>:
</div>
<div class="yui-u">
<?= (!$field->value)? $this->translate('Not Entered') : $field->value ?>
</div>
</div>
<?php endforeach ?>
</div>
</div>
<? endforeach ?>
<div style="text-align:right; margin-top:20px">
<a href="<?= $this->base ?>/users/personalinfo/edit"><?= $this->translate('Add another profile') ?></a>
</div>
</div>
</div>

View File

@ -1,12 +0,0 @@
<div class="formGrid">
<?php foreach ($this->fields as $field): ?>
<div class="yui-gf">
<div class="yui-u first">
<?php echo $this->translate($field->name) ?>:
</div>
<div class="yui-u">
<?php echo is_null($field->value)? $this->translate('Not Entered') : $field->value ?>
</div>
</div>
<?php endforeach ?>
</div>