Template:2011FR/Form-section-radiobuttons-2: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Cbarr (talk | contribs)
No edit summary
Cbarr (talk | contribs)
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html>
{{2011FR/Form-section-radiobuttons-2/{{{country}}}

| country = {{{country}}}
<style type="text/css">
| uselang = {{{uselang}}}

| currency-position = before
#radiobuttons-table-header{
| currency-symbol = $
font-weight: bold;
| donate-amount-0 = {{{donate-amount-0|5}}}
font-size: 1.3em;
| donate-amount-1 = {{{donate-amount-1|10}}}
float: </html>{{#ifeq:{{Template:Ltr-direction|{{{uselang}}}}}|rtl|right|left}}<html>;
| donate-amount-2 = {{{donate-amount-2|20}}}
}
| donate-amount-3 = {{{donate-amount-3|35}}}

| donate-amount-4 = {{{donate-amount-4|50}}}
#radiobuttons-table-body{
| donate-amount-5 = {{{donate-amount-5|100}}}
margin-left: -5px;
| donate-amount-6 = {{{donate-amount-6|250}}}
padding-top: 2.3em;
}}
}

#input_amount_other_box{
/* color: #aaaaaa; */
color: black;
font-size: 0.8em;
border:1px solid #c0c0c0;
direction: </html>{{Template:Ltr-direction|{{{uselang}}}}}<html>;
}

#amount-table{
font-size: 1.2em;
/*width: 100%;*/
}

.amount-table-cell{
white-space: nowrap;
}

.currency-collapsible-container-contained{
display: none;
background-color: #FFFFFF;
color: black;
}

#country-container{
/*display: none;*/
float: </html>{{#ifeq:{{Template:Ltr-direction|{{{uselang}}}}}|rtl|left|right}}<html>;
}

#country-container-trigger{
font-size: 0.9em
}

#country-container-contained{
}

#input_currency_code{
width: 9em;
font-size: 0.95em;
}

a#currency-link{
color: #0645ad;
}

a#currency-link:hover{
color: #0645ad;
background-image: none !important;
padding-right: 0 !important;
cursor: pointer;
}

</style>

<script type="text/javascript">

function clearOther(box){
document.getElementById("input_amount_other").checked = true;
box.value = "";
box.style.color = "#000000";
}

function resetOther(box){
//box.value = "</html>{{int:donate_interface-other}}<html>";
box.value = "</html>{{int:donate_interface-other}}<html>";
//box.style.color = "#aaaaaa";
}

function selectAmount(){
//document.getElementById("input_amount_other_box").value = "</html>{{int:donate_interface-other}}<html>";
document.getElementById("input_amount_other_box").value = "";
//document.getElementById("input_amount_other_box").style.color = "#aaaaaa";
document.getElementsByName("amountGiven")[0].value="";
}

function triggerClick(elem){
$('#' + elem + '-container-contained').show();
}

function loadCountry(){
//alert(window.location);
//var newPage = window.location.value;
//newCountry = $("#currency-select").value;
//newPage.replace("</html>{{{country}}}<html>",newCountry);
//alert(newPage);
//window.location = newPage;
//return false;
}
</script>

<input type="hidden" name="currency_code" value="</html>{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}<html>"/>

<div id="radiobuttons-table-header">
</html>{{int:donate_interface-amount-legend}}<html>
</div>
<div id="radiobuttons-table-body">
<center>
<table id="amount-table">
<tr>
<td class="amount-table-cell">
<input type="radio" name="amount" id="input_amount_0" onclick="selectAmount();" value="</html>{{{donate-amount-0}}}<html>" />
<label for="input_amount_0"></html>{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|before|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}{{{donate-amount-0}}}{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|after|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}<html></label>
</td>
<td class="amount-table-cell">
<input type="radio" name="amount" id="input_amount_1" onclick="selectAmount();" value="</html>{{{donate-amount-1}}}<html>" />
<label for="input_amount_1"></html>{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|before|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}{{{donate-amount-1}}}{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|after|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}<html></label>
</td>
<td class="amount-table-cell">
<input type="radio" name="amount" id="input_amount_2" onclick="selectAmount();" value="</html>{{{donate-amount-2}}}<html>" />
<label for="input_amount_2"></html>{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|before|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}{{{donate-amount-2}}}{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|after|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}<html></label>
</td>
<td class="amount-table-cell">
<input type="radio" name="amount" id="input_amount_3" onclick="selectAmount();" value="</html>{{{donate-amount-3}}}<html>" />
<label for="input_amount_3"></html>{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|before|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}{{{donate-amount-3}}}{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|after|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}<html></label>
</td>
</tr>
<tr>
<td class="amount-table-cell">
<input type="radio" name="amount" id="input_amount_4" onclick="selectAmount();" value="</html>{{{donate-amount-4}}}<html>" />
<label for="input_amount_4"></html>{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|before|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}{{{donate-amount-4}}}{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|after|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}<html></label>
</td>
<td class="amount-table-cell">
<input type="radio" name="amount" id="input_amount_5" onclick="selectAmount();" value="</html>{{{donate-amount-5}}}<html>" />
<label for="input_amount_5"></html>{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|before|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}{{{donate-amount-5}}}{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|after|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}<html></label>
</td>
<td class="amount-table-cell">
<input type="radio" name="amount" id="input_amount_6" onclick="selectAmount();" value="</html>{{{donate-amount-6}}}<html>" />
<label for="input_amount_6"></html>{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|before|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}{{{donate-amount-6}}}{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|after|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}<html></label>
</td>
<td class="amount-table-cell">
<input type="radio" name="amount" id="input_amount_other" value="" /></html>{{int:donate_interface-other}}<html>
</html>{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|before|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}<html>
<input type="text" id="input_amount_other_box" size="3" autocomplete="off" value="" onfocus="clearOther(this)"/>
</html>{{#ifeq:{{2011FR/core-currency-position|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|after|{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}|}}<html>
</td>
</tr>
</table>
</center>
</div>
</html>

Latest revision as of 03:30, 23 November 2011

Donation amount
Other $