Template:2012France/lp-form: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
more cleanup
No edit summary
Line 42: Line 42:


function redirectPayment(i) {
function redirectPayment(i) {
var paymentType = "cc";
//if i == 1
var action_url = "https://crm.wikimedia.fr/civicrm/contribute/transact?reset=1&id=2";
var paymentType = "cc";
var action_url = "https://crm.wikimedia.fr/civicrm/contribute/transact?reset=1&id=2";
document.contribform.action = action_url;
document.contribform.action = action_url;
document.contribform.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage() + '.' + paymentType;
document.contribform.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage() + '.' + paymentType;


if (validateForm(document.contribform)) {
if (validateForm(document.contribform)) {
if (typeof(OWA) !== 'undefined') { OWATracker.shareStateByPost( document.contribform ); }
if (typeof(OWA) !== 'undefined') { OWATracker.shareStateByPost( document.contribform ); }
document.contribform.submit();
document.contribform.submit();
}
}
}
}
</script>
</script>
Line 67: Line 66:
<input type="hidden" name="COMPLUS" value="WikimediaFoundation" />
<input type="hidden" name="COMPLUS" value="WikimediaFoundation" />


<div style="padding: 0.1em 0em; font-weight: normal; text-align: center;">
<div style="padding: 0.1em 0em; font-weight: normal; text-align: center;">
</html>{{{gift-amount-text}}}<html><br /><br />
</html>{{{gift-amount-text}}}<html><br /><br />
<div id="amount-box" style="font-size: 100%; padding: 0; font-weight: bold; margin-left: -5px;">
<div id="amount-box" style="font-size: 100%; padding: 0; font-weight: bold; margin-left: -5px;">
Line 79: Line 78:
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_3" onclick="document.contribform.amountGiven.value = ''" value="</html>{{{donate-amount-3}}}<html>"><label for="input_amount_3">&nbsp;</html>{{{donate-amount-3}}}<html>&nbsp;€</label></td>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_3" onclick="document.contribform.amountGiven.value = ''" value="</html>{{{donate-amount-3}}}<html>"><label for="input_amount_3">&nbsp;</html>{{{donate-amount-3}}}<html>&nbsp;€</label></td>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_other" value="Other"><label for="input_amount_other"></html>{{{donate-amount-other|<html>Other:</html>}}}<html></label>&nbsp;<input type="text" name="amountGiven" id="amountGiven" size="4" onKeyUp="verificationsaisie();" onfocus="this.form.input_amount_other.checked=true;">&nbsp;€<br/></td>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_other" value="Other"><label for="input_amount_other"></html>{{{donate-amount-other|<html>Other:</html>}}}<html></label>&nbsp;<input type="text" name="amountGiven" id="amountGiven" size="4" onKeyUp="verificationsaisie();" onfocus="this.form.input_amount_other.checked=true;">&nbsp;€<br/></td>
<td></td>
</tr>
</tr>
</table>
</table>
Line 91: Line 89:


</form>
</form>
</html><small>{{{chapter-text|}}}</small><html>
</html>{{{chapter-text|}}}<html>


<script type="text/javascript">
<script type="text/javascript">

Revision as of 15:37, 16 October 2012

{{{gift-amount-text}}}

  €
{{{gift-amount-text-suite}}}