From f7df81b59fbbcdc698df6e706b8741cd4ed2c6d8 Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Fri, 29 Aug 2008 20:16:29 +0000 Subject: [PATCH] * Add class='mw-input' to the input row * Move submit button to the table --- includes/Xml.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/includes/Xml.php b/includes/Xml.php index 05e93bc3eb..f7e4d57ae9 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -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 .= ""; - - if ($submitLabel) { - $form .= Xml::submitButton( wfMsg($submitLabel) ); - } + return $form; } -- 2.20.1