r104071 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104070‎ | r104071 | r104072 >
Date:19:37, 23 November 2011
Author:kaldari
Status:ok
Tags:
Comment:
prettifying the bt table
Modified paths:
  • /trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php
@@ -260,22 +260,22 @@
261261
262262 $return .= Xml::tags( 'h2', array(), wfMsg( 'donate_interface-bt-information' ) );
263263
264 - $return .= Xml::openElement( 'table', array( 'id' => $id . '_table', 'width' => '50%' ) );
 264+ $return .= Xml::openElement( 'table', array( 'id' => $id . '_table', 'style' => 'width:600px; margin-left:auto; margin-right:auto;' ) );
265265
266266 foreach ( $fields as $field => $meta ) {
267267
268268 if ( isset( $results['data'][ $field ] ) ) {
269269 $return .= Xml::openElement( 'tr', array() );
270270
271 - $return .= Xml::tags( 'th', array(), wfMsg( $meta['translation'] ) );
272 - $return .= Xml::tags( 'td', array(), $results['data'][ $field ] );
 271+ $return .= Xml::tags( 'td', array( 'style' => 'text-align:right; font-weight:bold; padding-right:0.5em;' ), wfMsg( $meta['translation'] ) );
 272+ $return .= Xml::tags( 'td', array( 'style' => 'padding-left:0.5em;' ), $results['data'][ $field ] );
273273
274274 $return .= Xml::closeElement( 'tr' );
275275 }
276276 }
277277
278278 $return .= Xml::openElement( 'tr', array() );
279 - $return .= Xml::tags( 'td', array('style' => 'font-weight:bold', 'colspan' => '2'), wfMsg( 'donate_interface-bank_transfer_message' ) );
 279+ $return .= Xml::tags( 'td', array( 'style' => 'font-weight:bold;', 'colspan' => '2' ), wfMsg( 'donate_interface-bank_transfer_message' ) );
280280 $return .= Xml::closeElement( 'tr' );
281281
282282 $return .= Xml::closeElement( 'table' ); // close $id . '_table'
@@ -284,9 +284,9 @@
285285
286286 $url = $this->adapter->getThankYouPage() . $queryString;
287287
288 - $link = HTML::input('MyButton', 'finished', 'button', array( 'onclick' => "window.location = '$url'" ) );
 288+ $link = HTML::input('MyButton', wfMsg( 'donate_interface-bt-finished') , 'button', array( 'onclick' => "window.location = '$url'" ) );
289289
290 - $return .= Xml::tags( 'p', array(), $link );
 290+ $return .= Xml::tags( 'p', array( 'style' => 'text-align:center;' ), $link );
291291
292292 $return .= Xml::closeElement( 'div' ); // $id
293293

Follow-up revisions

RevisionCommit summaryAuthorDate
r104724MFT r103970, r104071, r104224, r104717, r104718khorn19:30, 30 November 2011

Status & tagging log