Template:2011FR/lp-form-US7amounts: Difference between revisions
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:
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="
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;">
<div id="amount-box" style="font-size: 100%; padding: 0; margin-left: -5px; ">
<table id="amount-table" style="background-color: #CCE7CD;"
<
<
<
<
</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>
<
<
<
<
<input type="text" name="amountGiven" size="2" autocomplete="off" onfocus="this.form.input_amount_other.checked=true;" onKeyPress="return DefaultSubmit(this,event)" /></
▲<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>
</
▲<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" />▼
▲<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>
<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 style="text-align:center">* * *</div></p>
▲<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>
<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>
|