r102590 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102589‎ | r102590 | r102591 >
Date:22:56, 9 November 2011
Author:pgehres
Status:ok
Tags:
Comment:
Adding B form for A/B testing in the US
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/html/webitects_2_2stepB-US.html (added) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/html/webitects_2_2stepB-US.html
@@ -0,0 +1,221 @@
 2+<script type="text/javascript">
 3+ mw.loader.load('pfp.form.rapidhtml.webitects_2step');
 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('pfp.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+
 41+ <td>
 42+ <div id="donate">
 43+ <div id="donate-content">
 44+ <div id="donate-body" style="padding: 0 1em;">
 45+ <div id="step1header"><h3>%donate_interface-amount-legend% <span id="selected-amount"></span> <span class="mute" id="change-amount" style="display: none;">(<a href="#">%donate_interface-change%</a>)</span></h3></div>
 46+
 47+ <form method="post" name="paypalcontribution">
 48+ <div id="step1wrapper">
 49+ <div id="amtErrorMessages" class="small"></div>
 50+ <table id="amount-table-white">
 51+ <tr>
 52+ <td><label><input id="amountRadio0" type="radio" name="amountRadio" value="5" /> <span id="amountSpan0">$5</span></label></td>
 53+ <td><label><input id="amountRadio1" type="radio" name="amountRadio" value="10" /> <span id="amountSpan1">$10</span></label></td>
 54+ <td><label><input id="amountRadio2" type="radio" name="amountRadio" value="20" /> <span id="amountSpan2">$20</span></label></td>
 55+ <td><label><input id="amountRadio3" type="radio" name="amountRadio" value="50" /> <span id="amountSpan3">$50</span></label></td>
 56+ </tr>
 57+ <tr>
 58+ <td><label><input id="amountRadio4" type="radio" name="amountRadio" value="75" /> <span id="amountSpan4">$75</span></label></td>
 59+ <td><label><input id="amountRadio5" type="radio" name="amountRadio" value="100" /> <span id="amountSpan5">$100</span></label></td>
 60+ <td><label><input id="amountRadio6" type="radio" name="amountRadio" value="250" /> <span id="amountSpan6">$250</span></label></td>
 61+ <td><input type="radio" name="amountRadio" id="input_amount_other" value="other" /> <label><span id="amountSpanOther">$</span><input type="text" class="txt-sm hint" name="amountGiven" size="4" id="other-amount" title="%donate_interface-other%" placeholder="%donate_interface-other%" onfocus="this.form.input_amount_other.checked=true;"/></label></td>
 62+ </tr>
 63+ </table>
 64+
 65+ <p class="donate-options">
 66+ <input class="btn" id="cc" type="button" value="%donate_interface-cc-button%" /><br />
 67+ <input class="btn" id="pp" type="button" value="%donate_interface-paypal-button%"/><span id='loading'></span>
 68+ </p>
 69+ </div>
 70+ <div id="step2header"><h3>%donate_interface-cc-form-header-personal% <img alt="" src="@script_path/extensions/DonationInterface/gateway_forms/includes/padlock.gif" /> <span class="mute" id="change-billing" style="display: none;">(<a href="#">%donate_interface-change%</a>)</span></h3></div>
 71+ <div id="step2wrapper">
 72+ <div id="billing-content" class="gainlayout">
 73+ <div id="billingErrorMessages" class="small"></div>
 74+ <div id="paymentErrorMessages" class="small"></div>
 75+ <div class="name-fields">
 76+ <span class="name-first"><input class="txt" id="fname" name="fname" title="%donate_interface-donor-fname%" value="@fname" placeholder="%donate_interface-donor-fname%"/></span>
 77+ <span class="name-last"><input class="txt" id="lname" name="lname" title="%donate_interface-donor-lname%" value="@lname" placeholder="%donate_interface-donor-lname%"/></span>
 78+ </div>
 79+ <div class="loc-fields">
 80+ <span class="loc-street"><input class="txt" id="street" name="street" title="%donate_interface-donor-street%" value="@street" placeholder="%donate_interface-donor-street%"/></span>
 81+ <span class="loc-city"><input class="txt" id="city" name="city" title="%donate_interface-donor-city%" value="@city" placeholder="%donate_interface-donor-city%"/></span>
 82+ <span class="loc-state">
 83+ <select id="state" name="state" class="txt" value="@state" >
 84+ <option value=""></option>
 85+ <option value="AK">AK</option><option value="AL">AL</option><option value="AR">AR</option><option value="AZ">AZ</option><option value="CA">CA</option><option value="CO">CO</option><option value="CT">CT</option><option value="DC">DC</option><option value="DE">DE</option><option value="FL">FL</option><option value="GA">GA</option><option value="HI">HI</option><option value="IA">IA</option><option value="ID">ID</option><option value="IL">IL</option><option value="IN">IN</option><option value="KS">KS</option><option value="KY">KY</option><option value="LA">LA</option><option value="MA">MA</option><option value="MD">MD</option><option value="ME">ME</option><option value="MI">MI</option><option value="MN">MN</option><option value="MO">MO</option><option value="MS">MS</option><option value="MT">MT</option><option value="NC">NC</option><option value="ND">ND</option><option value="NE">NE</option><option value="NH">NH</option><option value="NJ">NJ</option><option value="NM">NM</option><option value="NV">NV</option><option value="NY">NY</option><option value="OH">OH</option><option value="OK">OK</option><option value="OR">OR</option><option value="PA">PA</option><option value="PR">PR</option><option value="RI">RI</option><option value="SC">SC</option><option value="SD">SD</option><option value="TN">TN</option><option value="TX">TX</option><option value="UT">UT</option><option value="VA">VA</option><option value="VT">VT</option><option value="WA">WA</option><option value="WI">WI</option><option value="WV">WV</option><option value="WY">WY</option><option value="AA">AA</option><option value="AE">AE</option><option value="AP">AP</option>
 86+ </select>
 87+ </span>
 88+ <span class="loc-postal"><input class="txt" id="zip" name="zip" title="%donate_interface-zip%" value="@zip" placeholder="%donate_interface-zip%"/></span> <!-- TODO: use postal code on non-US -->
 89+ </div>
 90+ <p><input class="txt" title="%donate_interface-donor-email%" id="emailAdd" name="emailAdd" value="@emailAdd" placeholder="%donate_interface-donor-email%"/></p>
 91+
 92+
 93+ <!--<dl class="">-->
 94+ <!--<dt><span class="label">%donate_interface-select-credit-card%</span></dt>-->
 95+ <!--<dd class="field" style="margin-bottom: 0;">-->
 96+ <!--<ul class="options-h" id="cards" style="margin: 0;">-->
 97+ <!--<li><input id="cc-visa" name="cardtype" type="radio" value="Visa" class="cardradio" /> <label for="cc-visa"><img alt="Visa" src="@script_path/extensions/DonationInterface/gateway_forms/includes/card-visa.png" /></label></li>-->
 98+ <!--<li><input id="cc-mastercard" name="cardtype" type="radio" value="MasterCard" class="cardradio" /> <label for="cc-mastercard"><img alt="MasterCard" src="@script_path/extensions/DonationInterface/gateway_forms/includes/card-mastercard.png" /></label></li>-->
 99+ <!--<li><input id="cc-amex" name="cardtype" type="radio" value="American Express" class="cardradio" /> <label for="cc-amex"><img alt="American Express" src="@script_path/extensions/DonationInterface/gateway_forms/includes/card-amex.png" /></label></li>-->
 100+ <!--<li><input id="cc-discover" name="cardtype" type="radio" value="Discover" class="cardradio" /> <label for="cc-discover"><img alt="Discover" src="@script_path/extensions/DonationInterface/gateway_forms/includes/card-discover.png" /></label></li>-->
 101+ <!--</ul>-->
 102+ <!--</dd>-->
 103+ <!--</dl>-->
 104+ </div>
 105+ <!--</div>-->
 106+ <!--<div id="step3header"><h3>%donate_interface-cc-form-header-payment% <span class="mute" id="change-payment" style="display: none;">(<a href="#">Change</a>)</span></h3></div>-->
 107+ <!--<div id="step3wrapper" style="display: none;">-->
 108+ <div id="payment" class="gainlayout">
 109+ <dl class="form">
 110+ <dt><span class="label" style="display: inline-block; vertical-align: text-bottom; "><label for="card_num">Card number</label><img id="cardlogos" style="margin-left: 30px;" src="@script_path/extensions/DonationInterface/gateway_forms/includes/credit_card_logos.gif" alt="Visa/Mastercard/Discover/American Express"></span></dt>
 111+ <dd class="field"><input class="txt" id="card_num" name="card_num" value="@card_num"/></dd>
 112+
 113+ <dt></dt>
 114+ <dd class="field">
 115+ <div class="l" style="margin-right: 5%;">
 116+ <span class="label">Expiration date</span>
 117+ <select id="mos" name="mos">
 118+ <option value="">Month</option>
 119+ <option value="01">01 - January</option>
 120+ <option value="02">02 - February</option>
 121+ <option value="03">03 - March</option>
 122+ <option value="04">04 - April</option>
 123+ <option value="05">05 - May</option>
 124+ <option value="06">06 - June</option>
 125+ <option value="07">07 - July</option>
 126+ <option value="08">08 - August</option>
 127+ <option value="09">09 - September</option>
 128+ <option value="10">10 - October</option>
 129+ <option value="11">11 - November</option>
 130+ <option value="12">12 - December</option>
 131+ </select>
 132+
 133+ <select id="year" name="year">
 134+ <option value="">Year</option>
 135+ <option value="2011">2011</option>
 136+ <option value="2012">2012</option>
 137+ <option value="2013">2013</option>
 138+ <option value="2014">2014</option>
 139+ <option value="2015">2015</option>
 140+ <option value="2016">2016</option>
 141+ <option value="2017">2017</option>
 142+ <option value="2018">2018</option>
 143+ <option value="2019">2019</option>
 144+ <option value="2020">2020</option>
 145+ </select>
 146+ </div>
 147+ <div class="l">
 148+ <label class="label" for="cvv">Security code</label>
 149+ <input class="txt-sm" id="cvv" name="cvv" value="@cvv"/>
 150+ <a class="mute" href="#" id="where">Where?</a>
 151+ </div>
 152+
 153+ <div class="clear" id="codes" style="display: none;"><img alt="Security codes" src="@script_path/extensions/DonationInterface/gateway_forms/includes/security-code.png" /></div>
 154+ </dd>
 155+
 156+ <dt></dt>
 157+ <dd class="field">
 158+ <input id="submitcreditcard" class="btn" type="button" value="Submit donation" style="width:116px; height:30px;"/>
 159+ <!--<input id="submitcreditcard" src="@script_path/extensions/DonationInterface/gateway_forms/includes/submit-donation-button.png" alt="Submit donation" type="image">-->
 160+ <p class="mute"><img alt="" src="@script_path/extensions/DonationInterface/gateway_forms/includes/padlock.gif" /> Your credit card will be securely processed.</p>
 161+ </dd>
 162+ </dl>
 163+ </div>
 164+ </div>
 165+
 166+ <input type="hidden" name="gateway" value="payflowpro" id="gateway" />
 167+ <input type="hidden" name="returnto" value="Thank_You/en" />
 168+ <input type="hidden" value="0" name="PaypalRedirect" id="PaypalRedirect">
 169+ <input type="hidden" value="@card" name="card" id="card">
 170+
 171+ <input type="hidden" value="@amount" name="amount" />
 172+ <input type="hidden" value="US" name="country" id="country" />
 173+ <input type="hidden" value="@expiration" name="expiration" id="expiration"/>
 174+ <input type="hidden" value="USD" name="currency_code" />
 175+ <input type="hidden" value="@utm_source" name="utm_source"/>
 176+ <input type="hidden" value="@utm_medium" name="utm_medium"/>
 177+ <input type="hidden" value="@utm_campaign" name="utm_campaign"/>
 178+ <input type="hidden" value="@language" name="language"/>
 179+ <input type="hidden" value="@referrer" name="referrer"/>
 180+ <input type="hidden" value="@comment" name="comment"/>
 181+ <input type="hidden" value="@comment-option" name="comment-option"/>
 182+ <input type="hidden" value="1 " name="email-opt"/>
 183+ <input type="hidden" value="processed" name="payment_method"/>
 184+ <input type="hidden" value="@token" name="token"/>
 185+ <input type="hidden" value="@order_id" name="order_id"/>
 186+ <input type="hidden" value="@numAttempt" name="numAttempt"/>
 187+ <input type="hidden" value="@contribution_tracking_id" name="contribution_tracking_id"/>
 188+ <input type="hidden" value="@data_hash" name="data_hash"/>
 189+ <input type="hidden" value="@owa_session" name="owa_session"/>
 190+ <input type="hidden" value="@owa_ref" name="owa_ref"/>
 191+ <!-- new required fields -->
 192+ <input type="hidden" value="@gateway" name="gateway"/>
 193+ <input type="hidden" value="@payment_method" name="payment_method"/>
 194+ </form>
 195+ <div id="where-content">
 196+ {{LanguageSwitch|2011FR/core-appeal-whitebox-nodiv|@language}}
 197+ </div>
 198+ </div>
 199+ </div>
 200+ <p id="informationsharing">%donate_interface-informationsharing%</p>
 201+ <table>
 202+ <tr>
 203+ <td>
 204+ <ul id="moreinfolinks">
 205+ <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>
 206+ <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>
 207+ <li><a href="http://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=FAQ&language=@language&uselang=@language&country=@country">%donate_interface-faqs%</a></li>
 208+ <!--<li><a href="">%donate_interface-tax-info%</a></li>--><!-- TODO: localize the link -->
 209+ </ul>
 210+ </td>
 211+ <td>@verisign_logo</td>
 212+ </tr>
 213+ </table>
 214+ </div>
 215+ </td>
 216+ </tr>
 217+ </table>
 218+</div>
 219+
 220+<!-- Wikimedia Project logo
 221+<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>
 222+ -->
Property changes on: trunk/extensions/DonationInterface/payflowpro_gateway/forms/html/webitects_2_2stepB-US.html
___________________________________________________________________
Added: svn:eol-style
1223 + native

Follow-up revisions

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

Status & tagging log