From 09af5ebc028a457cc436c67083a47e37886c187c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Wed, 7 Jan 2009 12:32:25 +0000
Subject: [PATCH] Fix for HTML validation (Thomas Graff)

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

diff --git a/modules/consent/templates/default/consentform.php b/modules/consent/templates/default/consentform.php
index 8b194a96c..f8cd4482a 100644
--- a/modules/consent/templates/default/consentform.php
+++ b/modules/consent/templates/default/consentform.php
@@ -136,8 +136,6 @@ foreach ($this->data['noData'] as $name => $value) {
 ?>
 	<input type="submit" style="display: inline" name="no" id="nobutton" value="<?php echo htmlspecialchars($this->t('{consent:no}')) ?>" />
 
-</p>
-
 </form>
 
 <?php
@@ -186,10 +184,9 @@ foreach ($this->data['noData'] as $name => $value) {
 		$alternate = array('odd', 'even'); $i = 0;
 		
 		$parentStr = (strlen($nameParent) > 0)? strtolower($nameParent) . '_': '';
+		$str = (strlen($nameParent) > 0)? '<table class="attributes">': '<table id="table_with_attributes"  class="attributes">';
 
-		$str = '<table style="" id="table_with_attributes"  class="attributes">';
 		foreach ($attributes as $name => $value) {
-		
 			$nameraw = $name;
 			$nameTag = '{attributes:attribute_' . $parentStr . str_replace(":", "_", strtolower($name) ) . '}';
 			if ($t->getTag($nameTag) !== NULL) {
-- 
GitLab