Skip to content
Snippets Groups Projects
Commit 0c497ca3 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Fix bug where button was placed outside form in consent module... introduced earlier this week...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1275 44740490-163a-0410-bde0-09ae8108e29a
parent 81640b27
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,10 @@ $this->includeAtTemplateBase('includes/header.php'); ...@@ -78,6 +78,10 @@ $this->includeAtTemplateBase('includes/header.php');
?> ?>
</p> </p>
<form style="display: inline; margin: 0px; padding: 0px" action="<?php echo htmlspecialchars($this->data['yesTarget']); ?>">
<p style="margin: 1em">
<?php <?php
if ($this->data['usestorage']) { if ($this->data['usestorage']) {
$checked = ($this->data['checked'] ? 'checked="checked"' : ''); $checked = ($this->data['checked'] ? 'checked="checked"' : '');
...@@ -86,16 +90,13 @@ $this->includeAtTemplateBase('includes/header.php'); ...@@ -86,16 +90,13 @@ $this->includeAtTemplateBase('includes/header.php');
?> ?>
<p style="margin: 1em">
<form style="display: inline; margin: 0px; padding: 0px" action="<?php echo htmlspecialchars($this->data['yesTarget']); ?>">
<?php <?php
// Embed hidden fields... // Embed hidden fields...
foreach ($this->data['yesData'] as $name => $value) { foreach ($this->data['yesData'] as $name => $value) {
echo('<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />'); echo('<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />');
} }
?> ?>
</p>
<input type="submit" name="yes" id="yesbutton" value="<?php echo htmlspecialchars($this->t('{consent:consent:yes}')) ?>" /> <input type="submit" name="yes" id="yesbutton" value="<?php echo htmlspecialchars($this->t('{consent:consent:yes}')) ?>" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment