Template:Form-template/Form-template-default: Difference between revisions

Content deleted Content added
Pgehres (WMF) (talk | contribs)
moved validation JS to MediaWiki:Resources/validation.js - lets try that again
ugh, need to pass country down
 
(50 intermediate revisions by 2 users not shown)
Line 1:
{{MediaWiki:Resources/donate-form-infobox.css}}
{{MediaWiki:Resources/validation.js}}
<html>
<form method="postGET" name="paypalcontributiondonateForm" aria-label="</html>{{int:donate_interface-donate-now}}<html>">
<input type="hidden" name="utm_source" value="" />
<input type="hidden" name="utm_medium" value="" />
<input type="hidden" name="utm_campaign" value="" />
<input type="hidden" name="referrer" value="" />
 
<scriptdiv typeid="text/javascriptdonate-form-wrapper">
<noscript><div class="error-nojs"></html>{{int:Donate_interface-noscript-msg}}<html></div><style>#actual-form-loading { display: none; }</style></noscript>
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' );
<div id="donateactual-form-wrapperloading">
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );
| width = 25emLoading…<br>
document.paypalcontribution.referrer.value = document.referrer;
<small>(If the form does not load, your web browser may not be supported. Please try a different browser.)</small>
</script>
}}<html/div>
<div id="donor-infoboxactual-blockform">
</html>{{CountryConfirm | country = {{{country}}} }}<html>
</html>{{Template:2012FR/Switch/Country
|template = 2012FR/{{{form-countryspecific}}}
| |appeal = {{{appeal}}}
| |language = {{int:lang}}
|country = {{{country}}}
}}<html>
</div>
</div>
 
</scriptform>
<input type="hidden" name="language" value="</html>{{int:lang}}<html>" />
<input type="hidden" name="country" value="</html>{{{country}}}<html>" />
<input type="hidden" name="returnto" value="Thank_You/</html>{{int:lang}}<html>" />
<input type="hidden" name="email-opt" id="input_email" value="1" checked="checked" />
 
<input type="hidden" name="amountGiven" value="" />
 
<div id="donate-form-wrapper">
</html>{{2012FR/Form-section/Paymentmethods/Status}}<html>
</html>{{Template:2012FR/Switch/Country
|template = 2012FR/{{{form-countryspecific}}}
|appeal = {{{appeal}}}
|language = {{int:lang}}
|country = {{{country}}}
}}<html>
<div class="dividing-line" id="form-line"></div>
<div id="donor-infobox-block">
</html>{{2012FR/Form-section/Infobox
| infobox = 2012FR/Form-section/Infobox/Default
| appeal = {{{appeal}}}
| width = 25em
| language = {{int:lang}}
| country = {{{country}}}
}}<html>
</div>
</div>
<div id="donor-policy-block">
</html>{{2012FR/Form-section/Privacy/Default
| language = {{int:lang}}
| country = {{{country}}}
}}<html>
</div>
<div class="donate" id="donate-links-block">
</html>{{2012FR/Form-section/Links/Default
| language = {{int:lang}}
| country = {{{country}}}
}}<html>
</div>
</form>
</html>