Template:2012FR/Form-section/Radiobuttons/Default: Difference between revisions
Content deleted Content added
No edit summary |
Clean up unused code. |
||
Line 1:
<html>
<style type="text/css">
#radiobuttons-table-header{
font-weight: bold;
Line 14 ⟶ 12:
}
#radiobuttons-table{
#input_amount_other_box{▼
font-size: 0.8em;▼
border:1px solid #c0c0c0;▼
direction: </html>{{Template:2012FR/Switch/Ltr-direction|{{{uselang}}}}}<html>;▼
font-size: 1.2em;
/*width: 100%;*/
}
.
white-space: nowrap;
}
▲#input_amount_other_box{
color: black;
▲ font-size: 0.8em;
▲ border:1px solid #c0c0c0;
▲ direction: </html>{{Template:2012FR/Switch/Ltr-direction|{{{uselang}}}}}<html>;
}
Line 53 ⟶ 32:
font-size: 0.95em;
}
</style>
<script type="text/javascript">
function clearOther(box){
document.getElementById("input_amount_other").checked = true;
Line 76 ⟶ 42:
function resetOther(box){
box.value = "</html>{{int:donate_interface-other}}<html>";
}
function selectAmount(){
document.getElementById("input_amount_other_box").value = "";
document.getElementsByName("amountGiven")[0].value="";
}
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|{{2012FR/core-currency-code|{{{country}}}}}}}}<html>"/>
<div>
<div id="radiobuttons-table-header">
</html>{{int:donate_interface-amount-legend}}<html>: <div style="display: inline;"></html>{{2012FR/core-currency-symbol|{{{currency|{{2012FR/core-currency-code|{{{country}}}}}}}}}}<html></div> <div style="display: inline;"></html>({{{currency|{{2012FR/core-currency-code|{{{country}}}}}}}})<html></div>
</div>
</div>
<div id="radiobuttons-table-body">
<!-- <center> -->
<table id="
<tr>
<td class="
<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="
<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="
<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="
<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>
Line 148 ⟶ 82:
</tr>
<tr>
<td class="
<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="
<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="
<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="
<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" value="" onfocus="clearOther(this)"/>
</td>
|