* Add a nice fieldset around the input form
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 17 Mar 2008 23:25:00 +0000 (23:25 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 17 Mar 2008 23:25:00 +0000 (23:25 +0000)
* Found CSS classes for aligning in shared.css -> use them!

includes/SpecialAllpages.php

index 8375d07..35326b2 100644 (file)
@@ -60,32 +60,34 @@ class SpecialAllpages {
  * @param string $from Article name we are starting listing at.
  */
 function namespaceForm ( $namespace = NS_MAIN, $from = '' ) {
-       global $wgScript, $wgContLang;
+       global $wgScript;
        $t = SpecialPage::getTitleFor( $this->name );
-       $align = $wgContLang->isRtl() ? 'left' : 'right';
 
        $out  = Xml::openElement( 'div', array( 'class' => 'namespaceoptions' ) );
        $out .= Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) );
        $out .= Xml::hidden( 'title', $t->getPrefixedText() );
+       $out .= Xml::openElement( 'fieldset' );
+       $out .= Xml::element( 'legend', null, wfMsg( 'allpages' ) );
        $out .= Xml::openElement( 'table', array( 'id' => 'nsselect', 'class' => 'allpages' ) );
        $out .= "<tr>
-                       <td align='$align'>" .
+                       <td class='mw-label'>" .
                                Xml::label( wfMsg( $this->nsfromMsg ), 'nsfrom' ) .
                        "</td>
-                       <td>" .
+                       <td class='mw-input'>" .
                                Xml::input( 'from', 20, $from, array( 'id' => 'nsfrom' ) ) .
                        "</td>
                </tr>
                <tr>
-                       <td align='$align'>" .
+                       <td class='mw-label'>" .
                                Xml::label( wfMsg( 'namespace' ), 'namespace' ) .
                        "</td>
-                       <td>" .
-                               Xml::namespaceSelector( $namespace, null ) .
+                       <td class='mw-input'>" .
+                               Xml::namespaceSelector( $namespace, null ) . ' ' .
                                Xml::submitButton( wfMsg( 'allpagessubmit' ) ) .
                        "</td>
                        </tr>";
        $out .= Xml::closeElement( 'table' );
+       $out .= Xml::closeElement( 'fieldset' );
        $out .= Xml::closeElement( 'form' );
        $out .= Xml::closeElement( 'div' );
        return $out;