From 8b83a7cdae9d11e7081137fd6971d89b7d708e5b Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 6 Oct 2008 16:14:50 +0000 Subject: [PATCH] * Fix sequence of tabindex * Use existing CSS classes for label and input * Break long lines --- includes/FileDeleteForm.php | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index f2738a3df2..2557dc9d50 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -124,13 +124,16 @@ class FileDeleteForm { * Show the confirmation form */ private function showForm() { - global $wgOut, $wgUser, $wgRequest, $wgContLang; - $align = $wgContLang->isRtl() ? 'left' : 'right'; + global $wgOut, $wgUser, $wgRequest; if( $wgUser->isAllowed( 'suppressrevision' ) ) { - $suppress = ""; - $suppress .= Xml::checkLabel( wfMsg( 'revdelete-suppress' ), 'wpSuppress', 'wpSuppress', false, array( 'tabindex' => '2' ) ); - $suppress .= ""; + $suppress = " + + " . + Xml::checkLabel( wfMsg( 'revdelete-suppress' ), + 'wpSuppress', 'wpSuppress', false, array( 'tabindex' => '3' ) ) . + " + "; } else { $suppress = ''; } @@ -140,30 +143,32 @@ class FileDeleteForm { Xml::element( 'legend', null, wfMsg( 'filedelete-legend' ) ) . Xml::hidden( 'wpEditToken', $wgUser->editToken( $this->oldimage ) ) . $this->prepareMessage( 'filedelete-intro' ) . - Xml::openElement( 'table' ) . + Xml::openElement( 'table', array( 'id' => 'mw-img-deleteconfirm-table' ) ) . " - " . + " . Xml::label( wfMsg( 'filedelete-comment' ), 'wpDeleteReasonList' ) . " - " . + " . Xml::listDropDown( 'wpDeleteReasonList', wfMsgForContent( 'filedelete-reason-dropdown' ), wfMsgForContent( 'filedelete-reason-otherlist' ), '', 'wpReasonDropDown', 1 ) . " - " . + " . Xml::label( wfMsg( 'filedelete-otherreason' ), 'wpReason' ) . " - " . - Xml::input( 'wpReason', 60, $wgRequest->getText( 'wpReason' ), array( 'type' => 'text', 'maxlength' => '255', 'tabindex' => '2', 'id' => 'wpReason' ) ) . + " . + Xml::input( 'wpReason', 60, $wgRequest->getText( 'wpReason' ), + array( 'type' => 'text', 'maxlength' => '255', 'tabindex' => '2', 'id' => 'wpReason' ) ) . " {$suppress} - " . - Xml::submitButton( wfMsg( 'filedelete-submit' ), array( 'name' => 'mw-filedelete-submit', 'id' => 'mw-filedelete-submit', 'tabindex' => '3' ) ) . + " . + Xml::submitButton( wfMsg( 'filedelete-submit' ), + array( 'name' => 'mw-filedelete-submit', 'id' => 'mw-filedelete-submit', 'tabindex' => '4' ) ) . " " . Xml::closeElement( 'table' ) . -- 2.20.1