r103871 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103870‎ | r103871 | r103872 >
Date:23:48, 21 November 2011
Author:jamesur
Status:ok
Tags:
Comment:
add webmoney form
Modified paths:
  • /trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/ew (added) (history)
  • /trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/ew/ew-webmoney.html (added) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/ew/ew-webmoney.html
@@ -0,0 +1,169 @@
 2+<script type="text/javascript">
 3+ mw.loader.load('gc.form.rapidhtml.webitects.bt');
 4+ // these must go through RapidHTML and thus are inline
 5+ var amountErrors = ["#general|escape",'#retryMsg|escape','#amount|escape'];
 6+ var billingErrors = ['#fname|escape','#lname|escape','#city|escape','#country|escape','#street|escape','#state|escape','#zip|escape','#emailAdd|escape'];
 7+ var paymentErrors = ['#card_num|escape','#card_type|escape','#cvv|escape'];
 8+ var actionURL = "@action";
 9+ var scriptPath = "@script_path";
 10+</script>
 11+<!--[if lt IE 7]>
 12+<script type="text/javascript">
 13+ mw.loader.load('gc.form.rapidhtml.webitects.ie6');
 14+</script>
 15+<style type="text/css">
 16+ body{
 17+ behavior: url("@script_path/skins/vector/csshover.min.htc");
 18+ }
 19+</style><![endif]-->
 20+<!--[if IE 7]>
 21+<style>
 22+ .gainlayout {
 23+ zoom: 1;
 24+ height: 1%;
 25+ }
 26+</style>
 27+<![endif]-->
 28+
 29+<div class="ltr">
 30+ <table id="layouttable">
 31+ <tr>
 32+ <td>
 33+ <div id="appeal">
 34+ <div id="appeal-content">
 35+ <h2 id="appeal-head"> <span class="mw-headline">{{LanguageSwitch|2011FR/@appeal/title|@language}}</span></h2>
 36+ <div id="appeal-body" class="plainlinks">{{LanguageSwitch|2011FR/@appeal/text|@language}}</div>
 37+ </div>
 38+ </div>
 39+ </td>
 40+ <td>
 41+ <div id="donate">
 42+ <div id="donate-content">
 43+ <div id="donate-body" style="padding: 0 1em;">
 44+ <form method="post" name="paypalcontribution">
 45+
 46+ <div id="step1header"><h3>%donate_interface-amount-legend% <span id="selected-amount"></span> </div>
 47+
 48+ <div id="step2header"><h3>%donate_interface-cc-form-header-payment% <span class="mute" id="change-billing" style="display: none;">(<a href="#">%donate_interface-change%</a>)</span></h3></div>
 49+ <div id="step2wrapper">
 50+ <div id="billing-content" class="gainlayout">
 51+ <div id="billingErrorMessages" class="small"></div>
 52+ <div id="paymentErrorMessages" class="small"></div>
 53+ <div id="amtErrorMessages" class="small"></div>
 54+ <!--<div class="name-fields">-->
 55+ <!--<span class="name-first"><input class="txt" id="fname" name="fname" title="%donate_interface-donor-fname%" value="@fname" placeholder="%donate_interface-donor-fname%"/></span>-->
 56+ <!--<span class="name-last"><input class="txt" id="lname" name="lname" title="%donate_interface-donor-lname%" value="@lname" placeholder="%donate_interface-donor-lname%"/></span>-->
 57+ <!--</div>-->
 58+ <div class="nostate">
 59+ <!--<span class="loc-street"><input class="txt" id="street" name="street" title="%donate_interface-donor-street%" value="@street" placeholder="%donate_interface-donor-street%"/></span>-->
 60+ <!--<span class="loc-postal"><input class="txt" id="zip" name="zip" title="%donate_interface-donor-postal%" value="@zip" placeholder="%donate_interface-donor-postal%"/></span>-->
 61+ <!--<span class="loc-city"><input class="txt" id="city" name="city" title="%donate_interface-donor-city%" value="@city" placeholder="%donate_interface-donor-city%"/></span>-->
 62+ <span class="loc-country-wm">
 63+ <select class="txt" id="country" name="country" value="@country" placeholder="%donate_interface-country%">
 64+ <option value="">%donate_interface-select-country%</option>
 65+ <option value="AT">%donate_interface-country-dropdown-AT%</option>
 66+ <option value="CY">%donate_interface-country-dropdown-CY%</option>
 67+ <option value="DE">%donate_interface-country-dropdown-DE%</option>
 68+ <option value="EC">%donate_interface-country-dropdown-EC%</option>
 69+ <option value="ES">%donate_interface-country-dropdown-ES%</option>
 70+ <option value="FI">%donate_interface-country-dropdown-FI%</option>
 71+ <option value="FR">%donate_interface-country-dropdown-FR%</option>
 72+ <option value="GR">%donate_interface-country-dropdown-GR%</option>
 73+ <option value="IE">%donate_interface-country-dropdown-IE%</option>
 74+ <option value="ME">%donate_interface-country-dropdown-ME%</option>
 75+ <option value="MT">%donate_interface-country-dropdown-MT%</option>
 76+ <option value="RU">%donate_interface-country-dropdown-RU%</option>
 77+ <option value="SI">%donate_interface-country-dropdown-SI%</option>
 78+ <option value="UA">%donate_interface-country-dropdown-UA%</option>
 79+ </select>
 80+ </span>
 81+
 82+ <span class="ew-currency">
 83+ <select class="txt" id="currency_code" name="currency_code" value="@currency_code" >
 84+ <option value="USD">USD</option>
 85+ <option value="EUR">EUR</option>
 86+ <option value="RUB">RUB</option>
 87+ <option value="UAH">UAH</option>
 88+ <option value="UZS">UZS</option>
 89+ </select>
 90+ </span>
 91+
 92+
 93+ </div>
 94+ <!--<p><input class="txt" title="%donate_interface-donor-email%" id="emailAdd" name="emailAdd" value="@emailAdd" placeholder="%donate_interface-donor-email%"/> </p>-->
 95+ <table style="margin-top: 10px;" >
 96+ <tr><td>
 97+ <div id="bt-continue" style="margin-top: 7px;"> <input class="btn" id="bt-continueBtn" type="button" value="%donate_interface-continue%" /></div>
 98+ </td><td>
 99+ <img style="margin-left: 40px; width:150px;" src="@script_path/extensions/DonationInterface/gateway_forms/includes/wmlogo_blue.png" alt="WebMoney">
 100+ </td></tr>
 101+ </table>
 102+ </div>
 103+ </div>
 104+
 105+
 106+ <input type="hidden" name="returnto" value="Thank_You/en" />
 107+ <input type="hidden" value="0" name="PaypalRedirect" id="PaypalRedirect">
 108+
 109+ <input type="hidden" value="@amount" name="amount" />
 110+ <!--<input type="hidden" value="EUR" name="currency_code" />-->
 111+ <input type="hidden" value="@utm_source" name="utm_source"/>
 112+ <input type="hidden" value="@utm_medium" name="utm_medium"/>
 113+ <input type="hidden" value="@utm_campaign" name="utm_campaign"/>
 114+ <input type="hidden" value="@language" name="language"/>
 115+ <input type="hidden" value="@referrer" name="referrer"/>
 116+ <input type="hidden" value="@comment" name="comment"/>
 117+ <input type="hidden" value="@comment-option" name="comment-option"/>
 118+ <input type="hidden" value="1" name="email-opt"/>
 119+ <input type="hidden" value="@token" name="token"/>
 120+ <input type="hidden" value="@order_id" name="order_id"/>
 121+ <input type="hidden" value="@numAttempt" name="numAttempt"/>
 122+ <input type="hidden" value="@contribution_tracking_id" name="contribution_tracking_id"/>
 123+ <input type="hidden" value="@data_hash" name="data_hash"/>
 124+ <input type="hidden" value="@owa_session" name="owa_session"/>
 125+ <input type="hidden" value="@owa_ref" name="owa_ref"/>
 126+ <!-- new required fields -->
 127+ <input type="hidden" value="@gateway" name="gateway"/>
 128+ <!-- required fields for bt and dd -->
 129+ <input type="hidden" value="ew" name="payment_method"/>
 130+ <input type="hidden" value="ew_webmoney" name="payment_submethod"/>
 131+ <!-- required fields omitted above -->
 132+ <input type="hidden" value="John" name="fname" id="fname" />
 133+ <input type="hidden" value="Doe" name="lname" id="lname" />
 134+ <input type="hidden" value="n/a" name="street" id="street" />
 135+ <input type="hidden" value="n/a" name="city" id="city" />
 136+ <input type="hidden" value="XX" name="state" id="state" />
 137+ <input type="hidden" value="00000" name="zip" id="zip" />
 138+ <input type="hidden" value="nobody@wikimedia.org" name="emailAdd" id="emailAdd" />
 139+ </form>
 140+ <div id="where-content">
 141+ {{LanguageSwitch|2011FR/core-appeal-whitebox-nodiv|@language}}
 142+ </div>
 143+ </div>
 144+ </div>
 145+ <p id="informationsharing">%donate_interface-informationsharing|url%</p>
 146+ <table>
 147+ <tr>
 148+ <td>
 149+ <ul id="moreinfolinks">
 150+ <li><a href="http://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Monthly_donations&language=@language&uselang=@language&country=@country">%donate_interface-monthly-donation%</a></li>
 151+ <li><a href="http://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Ways_to_Give&language=@language&uselang=@language&country=@country">%donate_interface-otherways-short%</a></li>
 152+ <li><a href="http://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=FAQ&language=@language&uselang=@language&country=@country">%donate_interface-faqs%</a></li>
 153+ <li><a href="http://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Tax_Deductibility&language=@language&uselang=@language&country=@country">%donate_interface-tax-info%</a></li>
 154+ </ul>
 155+ </td>
 156+ <td>@verisign_logo</td>
 157+ </tr>
 158+ </table>
 159+ </div>
 160+ </td>
 161+ </tr>
 162+ </table>
 163+
 164+
 165+
 166+</div>
 167+
 168+<!-- Wikimedia Project logo
 169+<li id="footer-copyrightico"><a href="https://www.mediawiki.org//wikimediafoundation.org/"><img src="//bits.wikimedia.org/images/wikimedia-button.png" width="88" height="31" alt="Wikimedia Foundation"/></a></li>
 170+ -->

Follow-up revisions

RevisionCommit summaryAuthorDate
r103986MFT r103871, r103960, r103963, r103972, r103983khorn00:08, 23 November 2011
r103987MFT r103871, r103960, r103963, r103972, r103983khorn00:09, 23 November 2011

Status & tagging log