summaryrefslogtreecommitdiff
path: root/smartyplugins/block.form.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2013-07-29 13:47:22 +0100
committerlsces <lester@lsces.co.uk>2013-07-29 13:47:22 +0100
commit55e0ab57f0714a9f5434b4822f8611f0d3812ab4 (patch)
treeac99720a73ec38a4623cd757f1e3c8daf9f22870 /smartyplugins/block.form.php
parent898b6d5ac8cf4940b2d53677f5c899322fad880d (diff)
downloadthemes-55e0ab57f0714a9f5434b4822f8611f0d3812ab4.tar.gz
themes-55e0ab57f0714a9f5434b4822f8611f0d3812ab4.tar.bz2
themes-55e0ab57f0714a9f5434b4822f8611f0d3812ab4.zip
Not sure if theis is browser (seamonkey/konquerer) related, but without extra
<div> around the form body, the submit buttons are dropping below the closing {/form} on all forms.
Diffstat (limited to 'smartyplugins/block.form.php')
-rw-r--r--smartyplugins/block.form.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/smartyplugins/block.form.php b/smartyplugins/block.form.php
index 94cef96..562cc0a 100644
--- a/smartyplugins/block.form.php
+++ b/smartyplugins/block.form.php
@@ -95,11 +95,11 @@ function smarty_block_form( $pParams, $pContent, &$gBitSmarty) {
}
$onsub = ( !empty( $onsubmit ) ? ' onsubmit="'.$onsubmit.'"' : '' );
- $ret = '<form action="'.$url.( !empty( $pParams['ianchor'] ) ? '#'.$pParams['ianchor'] : '' ).'" '.$atts.$onsub.'>';
+ $ret = '<form action="'.$url.( !empty( $pParams['ianchor'] ) ? '#'.$pParams['ianchor'] : '' ).'" '.$atts.$onsub.'><div class="form">';
$ret .= isset( $legend ) ? '<fieldset>'.$legend : ''; // adding the div makes it easier to be xhtml compliant
$ret .= $pContent;
$ret .= isset( $legend ) ? '</fieldset>' : ''; // close the open tags
- $ret .= '</form>';
+ $ret .= '</div></form>';
return $ret;
}
}