r102549 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102548‎ | r102549 | r102550 >
Date:17:55, 9 November 2011
Author:jamesur
Status:ok
Tags:fundraising 
Comment:
Add 2 new rtbt forms for enets (SG) and eps (AT)
Modified paths:
  • /trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/rtbt/rtbt-enets.html (added) (history)
  • /trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/rtbt/rtbt-eps.html (added) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/rtbt/rtbt-eps.html
@@ -0,0 +1,146 @@
 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|@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+ <div id="step1header"><h3>%donate_interface-amount-legend% <span id="selected-amount">@amount EUR</span></h3></div>
 46+ <div id="amtErrorMessages" class="small"></div>
 47+ <div id="step2header"><h3>%donate_interface-billing-address% <span class="mute" id="change-billing" style="display: none;">(<a href="#">%donate_interface-change%</a>)</span></h3></div>
 48+ <div id="step2wrapper">
 49+ <div id="billing-content" class="gainlayout">
 50+ <div id="billingErrorMessages" class="small"></div>
 51+ <div id="paymentErrorMessages" class="small"></div>
 52+ <div class="name-fields">
 53+ <span class="name-first"><input class="txt" id="fname" name="fname" title="%donate_interface-donor-fname%" value="@fname" placeholder="%donate_interface-donor-fname%"/></span>
 54+ <span class="name-last"><input class="txt" id="lname" name="lname" title="%donate_interface-donor-lname%" value="@lname" placeholder="%donate_interface-donor-lname%"/></span>
 55+ </div>
 56+ <div class="loc-fields nostate">
 57+ <span class="loc-street"><input class="txt" id="street" name="street" title="%donate_interface-donor-street%" value="@street" placeholder="%donate_interface-donor-street%"/></span>
 58+ <span class="loc-postal"><input class="txt" id="zip" name="zip" title="%donate_interface-donor-postal%" value="@zip" placeholder="%donate_interface-donor-postal%"/></span>
 59+ <span class="loc-city"><input class="txt" id="city" name="city" title="%donate_interface-donor-city%" value="@city" placeholder="%donate_interface-donor-city%"/></span>
 60+ <span class="loc-country">
 61+ <select class="txt" id="country" name="country" value="@country" placeholder="%donate_interface-country%">
 62+ <option value="">%donate_interface-select-country%</option>
 63+ <option value="AT">%donate_interface-country-dropdown-AT%</option>
 64+ </select>
 65+ </span>
 66+ </div>
 67+ <p><input class="txt" title="%donate_interface-donor-email%" id="emailAdd" name="emailAdd" value="@emailAdd" placeholder="%donate_interface-donor-email%"/> </p>
 68+ <table style="margin-top: 10px;" ><tr><td><select id="issuer_id" name="issuer_id" value="@issuer_id">
 69+ <option value="">%donate_interface-rtbt-issuer_id%</option>
 70+ <option value="825">Hypo Tirol Bank</option>
 71+ <option value="829">Easy</option>
 72+ <option value="828">P.S.K.</option>
 73+ <option value="827">BAWAG</option>
 74+ <option value="826">Erste Bank und Sparkassen</option>
 75+ <option value="831">Sparda-Bank</option>
 76+ <option value="824">Bankhaus Spängler</option>
 77+ <option value="823">Voralberger HYPO</option>
 78+ <option value="822">NÖ HYPO</option>
 79+ <option value="821">Volksbanken Gruppe</option>
 80+ <option value="820">Raifeissen</option></select></td>
 81+
 82+ <td><div id="bt-continue"> <input class="btn" id="bt-continueBtn" type="button" value="%donate_interface-continue%" /></div></td></tr></table>
 83+ </div>
 84+ </div>
 85+
 86+
 87+ <input type="hidden" name="returnto" value="Thank_You/en" />
 88+ <input type="hidden" value="0" name="PaypalRedirect" id="PaypalRedirect">
 89+
 90+ <input type="hidden" value="@amount" name="amount" />
 91+ <!--<input type="hidden" value="@country" name="country" id="country" /> -->
 92+ <input type="hidden" value="EUR" name="currency_code" />
 93+ <input type="hidden" value="@utm_source" name="utm_source"/>
 94+ <input type="hidden" value="@utm_medium" name="utm_medium"/>
 95+ <input type="hidden" value="@utm_campaign" name="utm_campaign"/>
 96+ <input type="hidden" value="@language" name="language"/>
 97+ <input type="hidden" value="@referrer" name="referrer"/>
 98+ <input type="hidden" value="@comment" name="comment"/>
 99+ <input type="hidden" value="@comment-option" name="comment-option"/>
 100+ <input type="hidden" value="1" name="email-opt"/>
 101+ <input type="hidden" value="@token" name="token"/>
 102+ <input type="hidden" value="@order_id" name="order_id"/>
 103+ <input type="hidden" value="@numAttempt" name="numAttempt"/>
 104+ <input type="hidden" value="@contribution_tracking_id" name="contribution_tracking_id"/>
 105+ <input type="hidden" value="@data_hash" name="data_hash"/>
 106+ <input type="hidden" value="@owa_session" name="owa_session"/>
 107+ <input type="hidden" value="@owa_ref" name="owa_ref"/>
 108+ <!-- new required fields -->
 109+ <input type="hidden" value="@gateway" name="gateway"/>
 110+ <input type="hidden" value="@payment_method" name="payment_method"/>
 111+ <!-- required fields for bt and dd -->
 112+ <input type="hidden" value="rtbt" name="payment_method"/>
 113+ <input type="hidden" value="rtbt_eps" name="payment_submethod"/>
 114+ <!-- required fields omitted above -->
 115+ <input type="hidden" value="XX" name="state"/>
 116+ </form>
 117+ <div id="where-content">
 118+ {{LanguageSwitch|2011FR/core-appeal-whitebox-nodiv|@language}}
 119+ </div>
 120+ </div>
 121+ </div>
 122+ <p id="informationsharing">%donate_interface-informationsharing|url%</p>
 123+ <table>
 124+ <tr>
 125+ <td>
 126+ <ul id="moreinfolinks">
 127+ <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>
 128+ <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>
 129+ <li><a href="http://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=FAQ&language=@language&uselang=@language&country=@country">%donate_interface-faqs%</a></li>
 130+ <!--<li><a href="">%donate_interface-tax-info%</a></li>--><!-- TODO: localize the link -->
 131+ </ul>
 132+ </td>
 133+ <td>@verisign_logo</td>
 134+ </tr>
 135+ </table>
 136+ </div>
 137+ </td>
 138+ </tr>
 139+ </table>
 140+
 141+
 142+
 143+</div>
 144+
 145+<!-- Wikimedia Project logo
 146+<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>
 147+ -->
Index: trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/rtbt/rtbt-enets.html
@@ -0,0 +1,133 @@
 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|@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+ <div id="step1header"><h3>%donate_interface-amount-legend% <span id="selected-amount">@amount SGD</span></h3></div>
 46+ <div id="amtErrorMessages" class="small"></div>
 47+ <div id="step2header"><h3>%donate_interface-billing-address% <span class="mute" id="change-billing" style="display: none;">(<a href="#">%donate_interface-change%</a>)</span></h3></div>
 48+ <div id="step2wrapper">
 49+ <div id="billing-content" class="gainlayout">
 50+ <div id="billingErrorMessages" class="small"></div>
 51+ <div id="paymentErrorMessages" class="small"></div>
 52+ <div class="name-fields">
 53+ <span class="name-first"><input class="txt" id="fname" name="fname" title="%donate_interface-donor-fname%" value="@fname" placeholder="%donate_interface-donor-fname%"/></span>
 54+ <span class="name-last"><input class="txt" id="lname" name="lname" title="%donate_interface-donor-lname%" value="@lname" placeholder="%donate_interface-donor-lname%"/></span>
 55+ </div>
 56+ <div class="loc-fields nostate">
 57+ <span class="loc-street"><input class="txt" id="street" name="street" title="%donate_interface-donor-street%" value="@street" placeholder="%donate_interface-donor-street%"/></span>
 58+ <span class="loc-postal"><input class="txt" id="zip" name="zip" title="%donate_interface-donor-postal%" value="@zip" placeholder="%donate_interface-donor-postal%"/></span>
 59+ <span class="loc-city"><input class="txt" id="city" name="city" title="%donate_interface-donor-city%" value="@city" placeholder="%donate_interface-donor-city%"/></span>
 60+ <span class="loc-country">
 61+ <select class="txt" id="country" name="country" value="@country" placeholder="%donate_interface-country%">
 62+ <option value="">%donate_interface-select-country%</option>
 63+ <option value="SG">%donate_interface-country-dropdown-SG%</option>
 64+ </select>
 65+ </span>
 66+ </div>
 67+ <p><input class="txt" title="%donate_interface-donor-email%" id="emailAdd" name="emailAdd" value="@emailAdd" placeholder="%donate_interface-donor-email%"/> </p>
 68+ <div id="bt-continue" style="margin-top: 10px;"> <input class="btn" id="bt-continueBtn" type="button" value="%donate_interface-continue%" /></div>
 69+ </div>
 70+ </div>
 71+
 72+
 73+
 74+ <input type="hidden" name="returnto" value="Thank_You/en" />
 75+ <input type="hidden" value="0" name="PaypalRedirect" id="PaypalRedirect">
 76+
 77+ <input type="hidden" value="@amount" name="amount" />
 78+ <!--<input type="hidden" value="@country" name="country" id="country" /> -->
 79+ <input type="hidden" value="SGD" name="currency_code" />
 80+ <input type="hidden" value="@utm_source" name="utm_source"/>
 81+ <input type="hidden" value="@utm_medium" name="utm_medium"/>
 82+ <input type="hidden" value="@utm_campaign" name="utm_campaign"/>
 83+ <input type="hidden" value="@language" name="language"/>
 84+ <input type="hidden" value="@referrer" name="referrer"/>
 85+ <input type="hidden" value="@comment" name="comment"/>
 86+ <input type="hidden" value="@comment-option" name="comment-option"/>
 87+ <input type="hidden" value="1" name="email-opt"/>
 88+ <input type="hidden" value="@token" name="token"/>
 89+ <input type="hidden" value="@order_id" name="order_id"/>
 90+ <input type="hidden" value="@numAttempt" name="numAttempt"/>
 91+ <input type="hidden" value="@contribution_tracking_id" name="contribution_tracking_id"/>
 92+ <input type="hidden" value="@data_hash" name="data_hash"/>
 93+ <input type="hidden" value="@owa_session" name="owa_session"/>
 94+ <input type="hidden" value="@owa_ref" name="owa_ref"/>
 95+ <!-- new required fields -->
 96+ <input type="hidden" value="@gateway" name="gateway"/>
 97+ <input type="hidden" value="@payment_method" name="payment_method"/>
 98+ <!-- required fields for bt and dd -->
 99+ <input type="hidden" value="rtbt" name="payment_method"/>
 100+ <input type="hidden" value="rtbt_enets" name="payment_submethod"/>
 101+ <!-- required fields omitted above -->
 102+ <input type="hidden" value="XX" name="state"/>
 103+ </form>
 104+ <div id="where-content">
 105+ {{LanguageSwitch|2011FR/core-appeal-whitebox-nodiv|@language}}
 106+ </div>
 107+ </div>
 108+ </div>
 109+ <p id="informationsharing">%donate_interface-informationsharing|url%</p>
 110+ <table>
 111+ <tr>
 112+ <td>
 113+ <ul id="moreinfolinks">
 114+ <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>
 115+ <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>
 116+ <li><a href="http://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=FAQ&language=@language&uselang=@language&country=@country">%donate_interface-faqs%</a></li>
 117+ <!--<li><a href="">%donate_interface-tax-info%</a></li>--><!-- TODO: localize the link -->
 118+ </ul>
 119+ </td>
 120+ <td>@verisign_logo</td>
 121+ </tr>
 122+ </table>
 123+ </div>
 124+ </td>
 125+ </tr>
 126+ </table>
 127+
 128+
 129+
 130+</div>
 131+
 132+<!-- Wikimedia Project logo
 133+<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>
 134+ -->

Follow-up revisions

RevisionCommit summaryAuthorDate
r102732MFT r100644, r100785, r101785, r102120, r102318, r102332, r102341, r102342, r...awjrichards01:31, 11 November 2011

Status & tagging log