) . ' ' .
Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'invert' )->text(),
'nsInvert',
)
) . ' '
) .
- Html::rawElement( 'span', array( 'style' => 'white-space: nowrap' ),
+ Html::rawElement( 'span', array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'namespace_association' )->text(),
'associated',
if ( $this->getUser()->isAllowed( 'deletedhistory' ) ) {
$deletedOnlyCheck = Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'history-show-deleted' )->text(),
'deletedOnly',
$checkLabelTopOnly = Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'sp-contributions-toponly' )->text(),
'topOnly',
);
$checkLabelNewOnly = Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'sp-contributions-newonly' )->text(),
'newOnly',
Xml::openElement( 'fieldset' ) .
Xml::element( 'legend', array(), $this->msg( 'protectedpages' )->text() ) .
Html::hidden( 'title', $title->getPrefixedDBkey() ) . "\n" .
- $this->getNamespaceMenu( $namespace ) . " \n" .
- $this->getTypeMenu( $type ) . " \n" .
- $this->getLevelMenu( $level ) . " \n" .
- "<br /><span style='white-space: nowrap'>" .
- $this->getExpiryCheck( $indefOnly ) . " \n" .
- $this->getCascadeCheck( $cascadeOnly ) . " \n" .
- $this->getRedirectCheck( $noRedirect ) . " \n" .
- "</span><br /><span style='white-space: nowrap'>" .
- $this->getSizeLimit( $sizetype, $size ) . " \n" .
- "</span>" .
- " " . Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) . "\n" .
+ $this->getNamespaceMenu( $namespace ) . "\n" .
+ $this->getTypeMenu( $type ) . "\n" .
+ $this->getLevelMenu( $level ) . "\n" .
+ "<br />\n" .
+ $this->getExpiryCheck( $indefOnly ) . "\n" .
+ $this->getCascadeCheck( $cascadeOnly ) . "\n" .
+ $this->getRedirectCheck( $noRedirect ) . "\n" .
+ "<br />\n" .
+ $this->getSizeLimit( $sizetype, $size ) . "\n" .
+ Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) . "\n" .
Xml::closeElement( 'fieldset' ) .
Xml::closeElement( 'form' );
}
* @return string
*/
protected function getNamespaceMenu( $namespace = null ) {
- return Html::rawElement( 'span', array( 'style' => 'white-space: nowrap;' ),
+ return Html::rawElement( 'span', array( 'class' => 'mw-input-with-label' ),
Html::namespaceSelector(
array(
'selected' => $namespace,
* @return string Formatted HTML
*/
protected function getExpiryCheck( $indefOnly ) {
- return Xml::checkLabel(
+ return '<span class="mw-input-with-label">' . Xml::checkLabel(
$this->msg( 'protectedpages-indef' )->text(),
'indefonly',
'indefonly',
$indefOnly
- ) . "\n";
+ ) . "</span>\n";
}
/**
* @return string Formatted HTML
*/
protected function getCascadeCheck( $cascadeOnly ) {
- return Xml::checkLabel(
+ return '<span class="mw-input-with-label">' . Xml::checkLabel(
$this->msg( 'protectedpages-cascade' )->text(),
'cascadeonly',
'cascadeonly',
$cascadeOnly
- ) . "\n";
+ ) . "</span>\n";
}
/**
* @return string Formatted HTML
*/
protected function getRedirectCheck( $noRedirect ) {
- return Xml::checkLabel(
+ return '<span class="mw-input-with-label">' . Xml::checkLabel(
$this->msg( 'protectedpages-noredirect' )->text(),
'noredirect',
'noredirect',
$noRedirect
- ) . "\n";
+ ) . "</span>\n";
}
/**
protected function getSizeLimit( $sizetype, $size ) {
$max = $sizetype === 'max';
- return Xml::radioLabel(
+ return '<span class="mw-input-with-label">' . Xml::radioLabel(
$this->msg( 'minimum-size' )->text(),
'sizetype',
'min',
'wpmin',
!$max
) .
- ' ' .
+ ' ' .
Xml::radioLabel(
$this->msg( 'maximum-size' )->text(),
'sizetype',
'wpmax',
$max
) .
- ' ' .
+ ' ' .
Xml::input( 'size', 9, $size, array( 'id' => 'wpsize' ) ) .
- ' ' .
- Xml::label( $this->msg( 'pagesize' )->text(), 'wpsize' );
+ ' ' .
+ Xml::label( $this->msg( 'pagesize' )->text(), 'wpsize' ) . "</span>\n";
}
/**
$options[] = Xml::option( $text, $type, $selected ) . "\n";
}
- return "<span style='white-space: nowrap'>" .
+ return '<span class="mw-input-with-label">' .
Xml::label( $this->msg( 'restriction-type' )->text(), $this->IdType ) . ' ' .
Xml::tags( 'select',
array( 'id' => $this->IdType, 'name' => $this->IdType ),
$options[] = Xml::option( $text, $type, $selected );
}
- return "<span style='white-space: nowrap'>" .
+ return '<span class="mw-input-with-label">' .
Xml::label( $this->msg( 'restriction-level' )->text(), $this->IdLevel ) . ' ' .
Xml::tags( 'select',
array( 'id' => $this->IdLevel, 'name' => $this->IdLevel ),