* Add class='mw-input' to the input row
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Fri, 29 Aug 2008 20:16:29 +0000 (20:16 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Fri, 29 Aug 2008 20:16:29 +0000 (20:16 +0000)
* Move submit button to the table

includes/Xml.php

index 05e93bc..f7e4d57 100644 (file)
@@ -640,15 +640,19 @@ class Xml {
                        
                        $form .= Xml::openElement( 'tr', array( 'id' => $id ) );
                        $form .= Xml::tags( 'td', array('class' => 'mw-label'), wfMsgExt( $labelmsg, array('parseinline') ) );
-                       $form .= Xml::openElement( 'td' ) . $input . Xml::closeElement( 'td' );
+                       $form .= Xml::openElement( 'td', array( 'class' => 'mw-input' ) ) . $input . Xml::closeElement( 'td' );
+                       $form .= Xml::closeElement( 'tr' );
+               }
+
+               if( $submitLabel ) {
+                       $form .= Xml::openElement( 'tr', array( 'id' => $id ) );
+                       $form .= Xml::tags( 'td', array(), '' );
+                       $form .= Xml::openElement( 'td', array( 'class' => 'mw-input' ) ) . Xml::submitButton( wfMsg( $submitLabel ) ) . Xml::closeElement( 'td' );
                        $form .= Xml::closeElement( 'tr' );
                }
        
                $form .= "</tbody></table>";
-               
-               if ($submitLabel) {     
-                       $form .= Xml::submitButton( wfMsg($submitLabel) );
-               }
+
        
                return $form;
        }