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

From Donate
Jump to navigation Jump to search
Content deleted Content added
new location for 7 opti
 
Pgehres (WMF) (talk | contribs)
 
(20 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="http://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{{language|{{BASEPAGENAME}}}}}<html>";
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>
<tr>
<nobr><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></nobr>
<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 style="white-space:nowrap;"><input type="radio" name="amount" id="input_amount_1" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-1}}}<html>" /><label for="input_amount_1"></html>${{{donate-amount-1}}}<html></label></td>
</td><td>
<nobr><input type="radio" name="amount" id="input_amount_1``" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-1}}}<html>"><label for="input_amount_1"></html>${{{donate-amount-1}}}<html></label></nobr>
<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;">&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>
<nobr><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></nobr> <!--<div style="height:8px;font-size:8px;">&nbsp;</div>-->
<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 style="white-space:nowrap;"><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></td>
</td></tr><tr><td>
<nobr><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></nobr>
<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 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)" /></td>
<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><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>
</div>


<p>
<div id="cc-donate-button">
<div id="cc-donate-button">
<input type="button" value="</html>{{{creditcard-label}}}<html>" class="input-button </html>{{{button-color}}}<html>" onclick="redirectPayment('1');"/>
<input type="button" value="</html>{{{creditcard-label}}}<html>" class="button" onclick="redirectPayment('1');"/>
</div>
</div>


<div id="paypal-donate-button">
<div id="paypal-donate-button">
<input type="button" value="</html>{{{paypal-label}}}<html>" class="input-button </html>{{{button-color}}}<html>" onclick="redirectPayment('2');"/>
<input type="button" value="</html>{{{paypal-label}}}<html>" class="button" onclick="redirectPayment('2');"/>
</div>
</div>

</p>
</html>
</html>


<p><div id="donate-body-small">{{{monthlydonation-text|}}}</div></p>
<div class="donate-body-small">{{{monthlydonation-text|}}}</div>
<div style="text-align:center">*&nbsp;&nbsp;*&nbsp;&nbsp;*</div>
<div class="donate-body-small">{{{privacy-policy-text}}}</div>
<p style="margin-top: 1em;"><div class="donate-body-small">{{{other-ways-link}}}</div></p>


<html>
<p><div style="text-align:center">*&nbsp;&nbsp;*&nbsp;&nbsp;*</div></p>
</div>
<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>
</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

{{{gift-amount-text}}}

*  *  *