Template:2011FR/lp-form-US7amounts: Difference between revisions

Content deleted Content added
imported>MZMcBride
assuming this was a typo
Pgehres (WMF) (talk | contribs)
 
(17 intermediate revisions by 8 users not shown)
Line 52:
if ( amount < minimums[currency] || error ) {
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;
}
Line 75 ⟶ 77:
//if i == 1
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}}}}}\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) {
action_url="httphttps://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{{language|{{BASEPAGENAME}}}}}<html>";
paymentType = "pp";
}
Line 96 ⟶ 102:
<input type="hidden" name="language" value="</html>{{{language|{{SUBPAGENAME}}}}}<html>" />
<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="email-opt" id="input_email" value="1" checked="checked" />
 
<div style="padding: 0.2em 0em; font-weight: normal;">
<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; ">
<table id="amount-table" style="background-color: #CCE7CD;" >
<tr> <tdtr>
<nobrtd 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></nobrtd>
<nobrtd style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_2input_amount_1" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-21}}}<html>" /><label for="input_amount_2input_amount_1"></html>${{{donate-amount-21}}}<html></label></nobrtd>
</td><td>
<nobrtd style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_1input_amount_2" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-12}}}<html>" /><label for="input_amount_1input_amount_2"></html>${{{donate-amount-12}}}<html></label></nobrtd>
<nobrtd style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_5input_amount_3" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-53}}}<html>" /><label for="input_amount_5input_amount_3"></html>${{{donate-amount-53}}}<html></label></nobrtd> <!--<div style="height:8px;font-size:8px;">&nbsp;</div>-->
</td><td>
</tr>
<nobr><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></nobr>
<tr>
</td><td>
<nobrtd style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_3input_amount_4" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-34}}}<html>" /><label for="input_amount_3input_amount_4"></html>${{{donate-amount-34}}}<html></label></nobr> <!--<div style="height:8px;font-size:8px;">&nbsp;</div>--td>
<nobrtd style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_6input_amount_5" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-65}}}<html>" /><label for="input_amount_6input_amount_5"></html>${{{donate-amount-65}}}<html></label></nobrtd>
</td></tr><tr><td>
<nobrtd style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_4input_amount_6" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-46}}}<html>" /><label for="input_amount_4input_amount_6"></html>${{{donate-amount-46}}}<html></label></nobrtd>
<nobrtd style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_other" value="Other" /><label for="input_amount_other"></html>{{{donate-amount-other|<html>Other:</html>}}}<html></label>
</td><td>
<input type="text" name="amountGiven" size="2" autocomplete="off" onfocus="this.form.input_amount_other.checked=true;" onKeyPress="return DefaultSubmit(this,event)" /></nobrtd>
<nobr><input type="radio" name="amount" id="input_amount_5" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-5}}}<html>"><label for="input_amount_5"></html>${{{donate-amount-5}}}<html></label></nobr>
</td><tdtr>
</td></tr></table>
<nobr><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></nobr>
<!-- currency menu --><input name="currency_code" id="input_currency_code" type="hidden" value="USD" />
</td><td>
<nobr><input type="radio" name="amount" id="input_amount_other" value="Other"><label for="input_amount_other"></html>{{{donate-amount-other|<html>Other:</html>}}}<html></label>
<input type="text" name="amountGiven" size="2" onfocus="this.form.input_amount_other.checked=true;" onKeyPress="return DefaultSubmit(this,event)"></nobr>
</td></tr></table>
<!-- currency menu --><input name="currency_code" id="input_currency_code" type="hidden" value="USD" >
</div>
 
<p>
<div id="cc-donate-button">
<input type="button" value="</html>{{{creditcard-label}}}<html>" class="button" onclick="redirectPayment('1');"/>
Line 133 ⟶ 134:
<input type="button" value="</html>{{{paypal-label}}}<html>" class="button" onclick="redirectPayment('2');"/>
</div>
 
</p>
</html>
 
<p><div idclass="donate-body-small">{{{monthlydonation-text|}}}</div></p>
<p><div style="text-align:center">*&nbsp;&nbsp;*&nbsp;&nbsp;*</div></p>
<p><div idclass="donate-body-small">{{{privacy-policy-text}}}</div></p>
<p style="margin-top: 1em;"><div idclass="donate-body-small">{{{other-ways-link}}}</div></p>
 
<html>
<p><div style="text-align:center">*&nbsp;&nbsp;*&nbsp;&nbsp;*</div></p>
</pdiv>
<p><div id="donate-body-small">{{{privacy-policy-text}}}</div></p>
<p style="margin-top: 1em;"><div id="donate-body-small">{{{other-ways-link}}}</div></p>
 
<html>
</form>
 
</div>
 
<script type="text/javascript">
Line 173 ⟶ 172:
}
}
 
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' );
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );
Line 184 ⟶ 183:
})
} )( jQuery );
 
</script>
</html><noinclude>