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

Added separate form for no consent given...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1055 44740490-163a-0410-bde0-09ae8108e29a
parent b87e010c
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,7 @@ $this->includeAtTemplateBase('includes/header.php'); ...@@ -107,6 +107,7 @@ $this->includeAtTemplateBase('includes/header.php');
)) ?> )) ?>
</p> </p>
<p style="margin: 1em">
<form style="display: inline; margin: 0px; padding: 0px" action="<?php echo htmlspecialchars($this->data['yesTarget']); ?>"> <form style="display: inline; margin: 0px; padding: 0px" action="<?php echo htmlspecialchars($this->data['yesTarget']); ?>">
<?php <?php
// Embed hidden fields... // Embed hidden fields...
...@@ -114,7 +115,7 @@ $this->includeAtTemplateBase('includes/header.php'); ...@@ -114,7 +115,7 @@ $this->includeAtTemplateBase('includes/header.php');
echo('<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />'); echo('<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />');
} }
?> ?>
<p style="margin: 1em">
<input type="submit" name="yes" id="yesbutton" value="<?php echo htmlspecialchars($this->t('{consent:yes}')) ?>" /> <input type="submit" name="yes" id="yesbutton" value="<?php echo htmlspecialchars($this->t('{consent:yes}')) ?>" />
<?php <?php
...@@ -125,11 +126,20 @@ $this->includeAtTemplateBase('includes/header.php'); ...@@ -125,11 +126,20 @@ $this->includeAtTemplateBase('includes/header.php');
?> ?>
<input type="submit" name="no" id="nobutton" value="<?php echo htmlspecialchars($this->t('{consent:no}')) ?>" />
</p>
</form>
<form style="display: inline; margin-left: .5em;" action="<?php echo htmlspecialchars($this->data['noTarget']); ?>" method="get">
<?php
foreach ($this->data['noData'] as $name => $value) {
echo('<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />');
}
?>
<input type="submit" style="display: inline" name="no" id="nobutton" value="<?php echo htmlspecialchars($this->t('{consent:no}')) ?>" />
</p>
<!-- /form --> </form>
<?php <?php
if ($this->data['sppp'] !== FALSE) { if ($this->data['sppp'] !== FALSE) {
...@@ -139,7 +149,7 @@ if ($this->data['sppp'] !== FALSE) { ...@@ -139,7 +149,7 @@ if ($this->data['sppp'] !== FALSE) {
} }
?> ?>
<!-- form style="display: inline; margin-left: .5em;" action="<?php echo htmlspecialchars($this->data['noTarget']); ?>" method="GET" --> <form style="display: inline; margin-left: .5em;" action="<?php echo htmlspecialchars($this->data['noTarget']); ?>" method="get">
<?php <?php
foreach ($this->data['noData'] as $name => $value) { foreach ($this->data['noData'] as $name => $value) {
echo('<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />'); echo('<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />');
......
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