Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetterCA.php |
— | — | @@ -120,7 +120,13 @@ |
121 | 121 | $form .= $this->getCityField(); |
122 | 122 | |
123 | 123 | // 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>'; |
125 | 131 | |
126 | 132 | // zip |
127 | 133 | $form .= $this->getZipField(); |
— | — | @@ -160,7 +166,7 @@ |
161 | 167 | // generate dropdown of state opts |
162 | 168 | foreach ( $states as $value => $state_name ) { |
163 | 169 | $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 ); |
165 | 171 | } |
166 | 172 | |
167 | 173 | $state_menu = Xml::openElement( |