Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter.php |
— | — | @@ -56,7 +56,7 @@ |
57 | 57 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-cc_form_letter', 'class' => 'payflowpro_gateway-cc_form_column')); |
58 | 58 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-cc_form_letter_inside' )); |
59 | 59 | |
60 | | - $text_template = $wgRequest->getText( 'text_template' ); |
| 60 | + $text_template = $wgRequest->getText( 'text_template', '2010/JimmyAppealLong' ); |
61 | 61 | // if the user has uselang set, honor that, otherwise default to the language set for the form defined by 'language' in the query string |
62 | 62 | if ( $wgRequest->getText( 'language' )) $text_template .= '/' . $this->form_data[ 'language' ]; |
63 | 63 | |
— | — | @@ -94,6 +94,16 @@ |
95 | 95 | // email |
96 | 96 | $form .= $this->getEmailField(); |
97 | 97 | |
| 98 | + // amount |
| 99 | + $form = '<tr>'; |
| 100 | + $form .= '<td colspan="2"><span class="creditcard-error-msg">' . $this->form_errors['invalidamount'] . '</span></td>'; |
| 101 | + $form .= '</tr>'; |
| 102 | + $form .= '<tr>'; |
| 103 | + $form .= '<td class="label">' . Xml::label(wfMsg( 'payflowpro_gateway-donor-amount' ), 'amount') . '</td>'; |
| 104 | + $form .= '<td>' . Xml::input( 'amount', '7', $this->form_data['amount'], array( 'type' => 'text', 'maxlength' => '10', 'id' => 'amount' ) ) . |
| 105 | + ' ' . $this->generateCurrencyDropdown() . '</td>'; |
| 106 | + $form .= '</tr>'; |
| 107 | + |
98 | 108 | // card number |
99 | 109 | $form .= $this->getCardNumberField(); |
100 | 110 | |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter.php |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-cc_form_letter', 'class' => 'payflowpro_gateway-cc_form_column')); |
62 | 62 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-cc_form_letter_inside' )); |
63 | 63 | |
64 | | - $text_template = $wgRequest->getText( 'text_template' ); |
| 64 | + $text_template = $wgRequest->getText( 'text_template', '2010/JimmyAppealLong' ); |
65 | 65 | // if the user has uselang set, honor that, otherwise default to the language set for the form defined by 'language' in the query string |
66 | 66 | if ( $wgRequest->getText( 'language' )) $text_template .= '/' . $this->form_data[ 'language' ]; |
67 | 67 | |