CommunityID/modules/users/views/scripts/personalinfo/edit.phtml

30 lines
1.0 KiB
PHTML
Raw Normal View History

<form name="personalInfoForm" class="formGrid" method="post" action="<?= $this->base ?>/users/personalinfo/save/profile/<?= $this->profile->id ?>">
2019-07-17 20:16:19 +00:00
<?php foreach ($this->fields as $field): ?>
<?php echo $field ?>
<?php endforeach ?><br />
<input type="submit" id="save" value="<?php echo $this->translate('Save') ?>" />
2019-07-17 20:16:19 +00:00
<input type="button" id="cancel" value="<?php echo $this->translate('Cancel') ?>" onclick="COMMID.editPersonalInfo.cancel()" />
<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function () {
COMMID.loader.insert(
["connection"],
2019-07-17 20:08:50 +00:00
null
);
2019-07-17 20:16:19 +00:00
});
2019-07-17 20:08:50 +00:00
var oButton = new YAHOO.widget.Button(
"save",
{
type : "submit"
2019-07-17 20:08:50 +00:00
}
);
var oButton = new YAHOO.widget.Button(
"cancel",
{
type : "push",
onclick : {fn: function() {COMMID.personalInfo.cancel();}}
2019-07-17 20:08:50 +00:00
}
);
</script>
</form>