r76733 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76732‎ | r76733 | r76734 >
Date:23:18, 15 November 2010
Author:kaldari
Status:deferred
Tags:
Comment:
padlock to submit button
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php
@@ -59,6 +59,20 @@
6060 $form .= $this->generateBillingContainer();
6161 return $form;
6262 }
 63+
 64+ function generateFormSubmit() {
 65+ // submit button
 66+ $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit' ) );
 67+ $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) );
 68+ // $form .= Xml::submitButton( wfMsg( 'payflowpro_gateway-submit-button' ));
 69+ $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-cc-button' ), 'onclick' => 'submit_form( this )', 'type' => 'submit' ) );
 70+ $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button
 71+ $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) .
 72+ Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/padlock.gif", 'style' => 'vertical-align:baseline;margin-right:4px;' ) ) . wfMsg( 'payflowpro_gateway-donate-click' );
 73+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage
 74+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit
 75+ return $form;
 76+ }
6377
6478 public function generateFormEnd() {
6579 $form = '';
@@ -106,7 +120,17 @@
107121 $form .= '</tr>';
108122
109123 // name
110 - $form .= $this->getNameField();
 124+ $form .= '<tr>';
 125+ $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['fname'] . '</span></td>';
 126+ $form .= '</tr>';
 127+ $form .= '<tr>';
 128+ $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['lname'] . '</span></td>';
 129+ $form .= '</tr>';
 130+ $form .= '<tr>';
 131+ $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-name-on-card' ), 'fname' ) . '</td>';
 132+ $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-first' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) .
 133+ Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-last' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>';
 134+ $form .= "</tr>";
111135
112136 // email
113137 $form .= $this->getEmailField();

Status & tagging log