Template:2011FR/lp-form-US7amounts: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>MZMcBride assuming this was a typo |
m 21 revisions from foundation:Template:2011FR/lp-form-US7amounts |
||
(17 intermediate revisions by 8 users not shown) | |||
Line 52: | Line 52: | ||
if ( amount < minimums[currency] || error ) { |
if ( amount < minimums[currency] || error ) { |
||
alert( '</html>{{{validation-error-minimum|You must contribute at least $1}}}<html>'.replace('$1', minimums[currency] + ' ' + currency ) ); |
alert( '</html>{{{validation-error-minimum|You must contribute at least $1}}}<html>'.replace('$1', minimums[currency] + ' ' + currency ) ); |
||
$( "input[name='amountGiven']" ).val( '' ); |
|||
$( "input[name='amountGiven']" ).focus(); |
|||
error = true; |
error = true; |
||
} |
} |
||
Line 75: | Line 77: | ||
//if i == 1 |
//if i == 1 |
||
var paymentType ="cc"; |
var paymentType ="cc"; |
||
var action_url = "https://payments.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{{language}}}\x26masthead={{{masthead}}}\x26form_name={{{form-name}}}\x26text_template={{{text-template}}}\x26language={{{language|{{SUBPAGENAME}}}}}<html>" ; |
var action_url = "https://payments.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{{language}}}\x26masthead={{{masthead}}}\x26form_name={{{form-name}}}\x26text_template={{{text-template}}}\x26language={{{language|{{SUBPAGENAME}}}}}\x26ffname={{{ffname}}}<html>" ; |
||
//TESLA TESTING |
|||
//var action_url = "https://test-payments.tesla.usability.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{{language}}}\x26masthead={{{masthead}}}\x26form_name={{{form-name}}}\x26text_template={{{text-template}}}\x26language={{{language|{{SUBPAGENAME}}}}}\x26ffname={{{ffname}}}<html>" ; |
|||
// Staging |
|||
//var action_url = "https://payments4.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{{language}}}\x26masthead={{{masthead}}}\x26form_name={{{form-name}}}\x26text_template={{{text-template}}}\x26language={{{language|{{SUBPAGENAME}}}}}\x26ffname={{{ffname}}}<html>" ; |
|||
if (i==2) { |
if (i==2) { |
||
action_url=" |
action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{{language|{{BASEPAGENAME}}}}}<html>"; |
||
paymentType = "pp"; |
paymentType = "pp"; |
||
} |
} |
||
Line 96: | Line 102: | ||
<input type="hidden" name="language" value="</html>{{{language|{{SUBPAGENAME}}}}}<html>" /> |
<input type="hidden" name="language" value="</html>{{{language|{{SUBPAGENAME}}}}}<html>" /> |
||
<input type="hidden" name="referrer" value="" /> |
<input type="hidden" name="referrer" value="" /> |
||
<input type="hidden" name="country" value="US" /> |
|||
<input type="hidden" name="returnto" value="Thank_You/</html>{{{language|{{SUBPAGENAME}}}}}<html>" /> |
<input type="hidden" name="returnto" value="Thank_You/</html>{{{language|{{SUBPAGENAME}}}}}<html>" /> |
||
<input type="hidden" name="email-opt" id="input_email" value="1" checked="checked" /> |
<input type="hidden" name="email-opt" id="input_email" value="1" checked="checked" /> |
||
<div style="padding: 0.2em 0em; font-weight: normal;"> |
<div style="padding: 0.2em 0em; font-weight: normal;"> |
||
<p style="font-weight: bold;"> |
<p style="font-weight: bold;"></html>{{{gift-amount-text}}}<html></p> |
||
</html>{{{gift-amount-text}}}<html><br> |
|||
<div id="amount-box" style="font-size: 100%; padding: 0; margin-left: -5px; "> |
<div id="amount-box" style="font-size: 100%; padding: 0; margin-left: -5px; "> |
||
<table id="amount-table" style="background-color: #CCE7CD;" |
<table id="amount-table" style="background-color: #CCE7CD;"> |
||
<tr> |
|||
< |
<td style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_0" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-0}}}<html>" /><label for="input_amount_0"></html>${{{donate-amount-0}}}<html></label></td> |
||
⚫ | |||
</td><td> |
|||
< |
<td style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_2" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-2}}}<html>" /><label for="input_amount_2"></html>${{{donate-amount-2}}}<html></label></td> |
||
⚫ | <td style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_3" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-3}}}<html>" /><label for="input_amount_3"></html>${{{donate-amount-3}}}<html></label></td> <!--<div style="height:8px;font-size:8px;"> </div>--> |
||
</td><td> |
|||
</tr> |
|||
⚫ | |||
<tr> |
|||
</td><td> |
|||
< |
<td style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_4" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-4}}}<html>" /><label for="input_amount_4"></html>${{{donate-amount-4}}}<html></label></td> |
||
⚫ | |||
</td></tr><tr><td> |
|||
< |
<td style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_6" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-6}}}<html>" /><label for="input_amount_6"></html>${{{donate-amount-6}}}<html></label></td> |
||
⚫ | |||
</td><td> |
|||
⚫ | |||
⚫ | |||
</ |
</tr> |
||
⚫ | |||
⚫ | |||
⚫ | |||
</td><td> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</div> |
</div> |
||
<p> |
|||
<div id="cc-donate-button"> |
<div id="cc-donate-button"> |
||
<input type="button" value="</html>{{{creditcard-label}}}<html>" class="button" onclick="redirectPayment('1');"/> |
<input type="button" value="</html>{{{creditcard-label}}}<html>" class="button" onclick="redirectPayment('1');"/> |
||
Line 133: | Line 134: | ||
<input type="button" value="</html>{{{paypal-label}}}<html>" class="button" onclick="redirectPayment('2');"/> |
<input type="button" value="</html>{{{paypal-label}}}<html>" class="button" onclick="redirectPayment('2');"/> |
||
</div> |
</div> |
||
⚫ | |||
</html> |
</html> |
||
<div class="donate-body-small">{{{monthlydonation-text|}}}</div> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</form> |
</form> |
||
</div> |
|||
<script type="text/javascript"> |
<script type="text/javascript"> |
||
Line 173: | Line 172: | ||
} |
} |
||
} |
} |
||
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' ); |
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' ); |
||
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ); |
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ); |
||
Line 184: | Line 183: | ||
}) |
}) |
||
} )( jQuery ); |
} )( jQuery ); |
||
</script> |
</script> |
||
</html><noinclude> |
</html><noinclude> |
Latest revision as of 21:36, 19 October 2012