r76899 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76898‎ | r76899 | r76900 >
Date:19:52, 17 November 2010
Author:kaldari
Status:deferred
Tags:
Comment:
fixing canada
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetterCA.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetterCA.php
@@ -120,7 +120,13 @@
121121 $form .= $this->getCityField();
122122
123123 // state
124 - $form .= $this->getStateField();
 124+ $form .= '<tr>';
 125+ $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['state'] . '</span></td>';
 126+ $form .= '</tr>';
 127+ $form .= '<tr>';
 128+ $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-state-province' ), 'state' ) . '</td>';
 129+ $form .= '<td>' . $this->generateStateDropdown() . '</td>';
 130+ $form .= '</tr>';
125131
126132 // zip
127133 $form .= $this->getZipField();
@@ -160,7 +166,7 @@
161167 // generate dropdown of state opts
162168 foreach ( $states as $value => $state_name ) {
163169 $selected = ( $this->form_data[ 'state' ] == $value ) ? true : false;
164 - $state_opts .= Xml::option( wfMsg( 'payflowpro_gateway-state-dropdown-' . $value ), $value, $selected );
 170+ $state_opts .= Xml::option( $state_name, $value, $selected );
165171 }
166172
167173 $state_menu = Xml::openElement(

Status & tagging log