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

From Donate
Jump to navigation Jump to search
Content deleted Content added
Cbarr (talk | contribs)
Created page with " <div style="font-weight: bold; font-size: 1.5em;"> </html>{{{form-title|}}}<html> </div> <div id="amount-box" style="font-size: 100%; paddi..."
 
mNo edit summary
 
(59 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<html>
<div style="font-weight: bold; font-size: 1.5em;">

</html>{{{form-title|}}}<html>
<style type="text/css">
</div>

<div id="amount-box" style="font-size: 100%; padding: 0; margin-left: -5px; ">
#radiobuttons-table-header{
<table id="amount-table" style="font-size: 1.2em;">
font-weight: bold;
<tr>
font-size: 1.3em;
<td style="white-space:nowrap;">
float: </html>{{#ifeq:{{Template:Ltr-direction|{{{uselang}}}}}|rtl|right|left}}<html>;
<input type="radio" name="amount" id="input_amount_0" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-0|5}}}<html>" />
}
<label for="input_amount_0"></html>${{{donate-amount-0|5}}}<html></label>

</td>
#radiobuttons-table-body{
<td style="white-space:nowrap;">
margin-left: -5px;
<input type="radio" name="amount" id="input_amount_1" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-1|10}}}<html>" />
padding-top: 2.3em;
<label for="input_amount_1"></html>${{{donate-amount-1|10}}}<html></label>
}
</td>

<td style="white-space:nowrap;">
#input_amount_other_box{
<input type="radio" name="amount" id="input_amount_2" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-2|20}}}<html>" />
/* color: #aaaaaa; */
<label for="input_amount_2"></html>${{{donate-amount-2|20}}}<html></label>
color: black;
</td>
font-size: 0.8em;
<td style="white-space:nowrap;">
border:1px solid #c0c0c0;
<input type="radio" name="amount" id="input_amount_3" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-3|35}}}<html>" />
<label for="input_amount_3"></html>${{{donate-amount-3|35}}}<html></label>
direction: </html>{{Template:Ltr-direction|{{{uselang}}}}}<html>;
}
</td>

</tr>
#amount-table{
<tr>
font-size: 1.2em;
<td style="white-space:nowrap;">
/*width: 100%;*/
<input type="radio" name="amount" id="input_amount_4" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-4|50}}}<html>" />
}
<label for="input_amount_4"></html>${{{donate-amount-4|50}}}<html></label>

</td>
.amount-table-cell{
<td style="white-space:nowrap;">
white-space: nowrap;
<input type="radio" name="amount" id="input_amount_5" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-5|100}}}<html>" />
}
<label for="input_amount_5"></html>${{{donate-amount-5|100}}}<html></label>

</td>
.currency-collapsible-container-contained{
<td style="white-space:nowrap;">
display: none;
<input type="radio" name="amount" id="input_amount_6" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-6|250}}}<html>" />
background-color: #FFFFFF;
<label for="input_amount_6"></html>${{{donate-amount-6|250}}}<html></label>
color: black;
</td>
}
<td style="white-space:nowrap;">

<input type="radio" name="amount" id="input_amount_other" value="" />
#country-container{
$<input type="text" name="amountGiven" size="2" autocomplete="off" value="</html>{{{donate-amount-other|<html>Other:</html>}}}<html>" onfocus="this.form.input_amount_other.checked=true;" onKeyPress="return DefaultSubmit(this,event)" />
/*display: none;*/
</td>
float: </html>{{#ifeq:{{Template:Ltr-direction|{{{uselang}}}}}|rtl|left|right}}<html>;
</tr>
}
</table>

<input name="currency_code" id="input_currency_code" type="hidden" value="USD" />
#country-container-trigger{
</div>
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;
}

var monthlyDonation = false;
//This line is needed to prevent errors from a if statement in the "form-section-processing" template

</script>

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

<div>
<div id="radiobuttons-table-header">
</html>{{int:donate_interface-amount-legend}}<html>: <div style="display: inline;"></html>{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}<html></div> <div style="display: inline;"></html>({{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}})<html></div>
</div>
<div class="collapsible-container-trigger" id="country-container" style="display: none; cursor: pointer;" onclick="triggerClick('country');">
<span style="font-weight: bold; font-size: 1.2em"></html>{{2011FR/core-currency-symbol|{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}}}<html></span><span style="font-size: 0.6em">(Change?)</span>
<br/>
<span class="currency-collapsible-container-contained" id="country-container-contained">
<select id="currency-select" style="font-size: 0.5em;" onchange="loadCountry();">
<option value="</html>{{{country}}}<html>" selected="selected"></html>{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}<html> – </html>{{2011FR/core-currency-symbol|{{{currency{{2011FR/core-currency-code|{{{country}}}}}}}}}}<html></option>
</html>{{#tag:html|{{#ifeq:{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}|USD||<option value="USD">USD – $</option>}}}}<html>
</html>{{#tag:html|{{#ifeq:{{{currency|{{2011FR/core-currency-code|{{{country}}}}}}}}|EUR||<option value="EUR">EUR – €</option>}}}}<html>
</select>
</span>
</div>
</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>{{{donate-amount-0}}}<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>{{{donate-amount-1}}}<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>{{{donate-amount-2}}}<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>{{{donate-amount-3}}}<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>{{{donate-amount-4}}}<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>{{{donate-amount-5}}}<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>{{{donate-amount-6}}}<html></label>
</td>
<td class="amount-table-cell">
<input type="radio" name="amount" id="input_amount_other" value="Other" onclick="document.getElementById('input_amount_other_box').focus();"/>
<label for="input_amount_other"></html>{{int:donate_interface-other}}<html></label>
<!-- <input type="text" id="input_amount_other_box" size="3" autocomplete="off" />-->
<!-- <input type="text" id="input_amount_other_box" size="3" autocomplete="off" value="</html>{{int:donate_interface-other}}<html>" onfocus="clearOther(this)"/> -->
<input type="text" id="input_amount_other_box" size="3" autocomplete="off" value="" onfocus="clearOther(this)"/>
</td>
</tr>
</table>
<!-- </center> -->
</div>
</html>

Latest revision as of 20:18, 24 January 2012

Donation amount:
$
(USD)