CommunityID/modules/users/views/scripts/register/eula.phtml

31 lines
1.4 KiB
PHTML
Raw Normal View History

2019-07-17 20:16:19 +00:00
<h2><?php echo $this->translate('Please read the following EULA in order to continue') ?></h2>
2019-07-17 20:08:50 +00:00
<form name="eulaForm" action="accepteula" method="post">
2019-07-17 20:16:19 +00:00
<input type="hidden" name="token" value="<?php echo $this->token ?>" />
2019-07-17 20:08:50 +00:00
<div>
2019-07-17 20:16:19 +00:00
<textarea rows="30" style="width:700px"><?php echo $this->eula ?></textarea>
2019-07-17 20:08:50 +00:00
</div>
<div style="margin-top:20px">
2019-07-17 20:16:19 +00:00
<input type="submit" id="agree" value="<?php echo $this->translate('I AGREE') ?>" />&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" id="disagree" value="<?php echo $this->translate('I DISAGREE') ?>" onclick="this.form.action='declineeula'; return true" />
2019-07-17 20:08:50 +00:00
<script>
YAHOO.util.Event.onDOMReady(function () {
COMMID.loader.insert(
["button"],
function() {
new YAHOO.widget.Button("disagree", {
type: "push",
label: "I DISAGREE",
onclick : {fn: function(){
document.eulaForm.action = 'declineeula';
document.eulaForm.submit();
}}
});
new YAHOO.widget.Button("disagree");
new YAHOO.widget.Button("agree");
}
);
});
</script>
</div>
</form>