From c4175a77f62d064ec66d0dd537db9a20581ccc87 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Fri, 5 Dec 2008 14:10:14 +0000
Subject: [PATCH] Added separate form for no consent given...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1055 44740490-163a-0410-bde0-09ae8108e29a
---
 .../consent/templates/default/consentform.php | 20 ++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/modules/consent/templates/default/consentform.php b/modules/consent/templates/default/consentform.php
index 9e1b1b343..f3e67337d 100644
--- a/modules/consent/templates/default/consentform.php
+++ b/modules/consent/templates/default/consentform.php
@@ -107,6 +107,7 @@ $this->includeAtTemplateBase('includes/header.php');
 )) ?>
 </p>
 
+	<p style="margin: 1em">
 <form style="display: inline; margin: 0px; padding: 0px" action="<?php echo htmlspecialchars($this->data['yesTarget']); ?>">
 <?php
 	// Embed hidden fields...
@@ -114,7 +115,7 @@ $this->includeAtTemplateBase('includes/header.php');
 		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}')) ?>" />
 
 <?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
 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
 foreach ($this->data['noData'] as $name => $value) {
 	echo('<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />');
-- 
GitLab