From 0c497ca304e53061e27e866a34d47ced0265600e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Mon, 16 Feb 2009 17:56:13 +0000 Subject: [PATCH] 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 --- modules/consent/templates/consentform.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/consent/templates/consentform.php b/modules/consent/templates/consentform.php index 89e9a4246..606ecd68c 100644 --- a/modules/consent/templates/consentform.php +++ b/modules/consent/templates/consentform.php @@ -78,6 +78,10 @@ $this->includeAtTemplateBase('includes/header.php'); ?> </p> + +<form style="display: inline; margin: 0px; padding: 0px" action="<?php echo htmlspecialchars($this->data['yesTarget']); ?>"> +<p style="margin: 1em"> + <?php if ($this->data['usestorage']) { $checked = ($this->data['checked'] ? 'checked="checked"' : ''); @@ -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 // Embed hidden fields... foreach ($this->data['yesData'] as $name => $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}')) ?>" /> -- GitLab