diff options
| author | lsces <lester@lsces.co.uk> | 2013-07-29 13:47:22 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2013-07-29 13:47:22 +0100 |
| commit | 55e0ab57f0714a9f5434b4822f8611f0d3812ab4 (patch) | |
| tree | ac99720a73ec38a4623cd757f1e3c8daf9f22870 /smartyplugins/block.form.php | |
| parent | 898b6d5ac8cf4940b2d53677f5c899322fad880d (diff) | |
| download | themes-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.php | 4 |
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; } } |
