From: Victor Vasiliev Date: Fri, 29 Aug 2008 20:16:29 +0000 (+0000) Subject: * Add class='mw-input' to the input row X-Git-Tag: 1.31.0-rc.0~45556 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=f7df81b59fbbcdc698df6e706b8741cd4ed2c6d8;p=lhc%2Fweb%2Fwiklou.git * Add class='mw-input' to the input row * Move submit button to the table --- 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; }