Template:2012FR/Form-section/Radiobuttons/Default: Difference between revisions
Content deleted Content added
No edit summary |
add tabindex="-1" to errors so they can be focused by js and announced by screenreaders |
||
(18 intermediate revisions by the same user not shown) | |||
Line 1:
<html>
<input type="hidden" name="currency_code" value="</html>{{{currency|{{
<div>▼
▲ <div id="radiobuttons-table-header">
▲ </html>{{int:donate_interface-amount-legend}} ({{{currency|{{2012FR/Switch/Currency/Code|{{{country}}}}}}}})<html>
</div>▼
</div>
<
<legend class="sr-only">
How often would you like to donate?
<ul>
<li>
<input type="radio" name="frequency" id="frequency_onetime" value="onetime" onclick="donationForm.toggleMonthly(false);" checked>
<label class="frb-btn" for="frequency_onetime"></html>{{int:donate_interface-onetime-short}}<html></label>
</li>
<li>
<input type="radio" name="frequency" id="frequency_monthly" value="monthly" onclick="donationForm.toggleMonthly(true);">
<label class="frb-btn" for="frequency_monthly"></html>{{int:donate_interface-monthly-short}}<html></label>
</li>
</ul>
</
<fieldset class="amount-options">
<
</html>{{int:donate_interface-amount-legend}} ({{{currency|{{CurrencyCode|{{{country}}}}}}}})<html>
<tr>▼
</legend>
<ul> < <li class="radiobuttons-cell input_amount_4">
</tr>▼
<tr>▼
<
▲ <input type="radio" name="amount" id="input_amount_4" onclick="selectAmount();" value="</html>{{{donate-amount-4}}}<html>" />
<li class="radiobuttons-cell input_amount_5">
</td>▼
<
▲ <input type="radio" name="amount" id="input_amount_5" onclick="selectAmount();" value="</html>{{{donate-amount-5}}}<html>" />
<li class="radiobuttons-cell input_amount_6">
</td>▼
<
▲ <input type="radio" name="amount" id="input_amount_6" onclick="selectAmount();" value="</html>{{{donate-amount-6}}}<html>" />
<
▲ <input type="radio" name="amount" id="input_amount_other" value="Other" onclick="document.getElementById('input_amount_other_box').focus();">
▲ <label for="input_amount_other">
▲ <span></html>{{int:donate_interface-other}}<html></span>
▲ <input type="number" min="0" id="input_amount_other_box" size="3" autocomplete="off" value="" tabindex="-1" onfocus="selectOther();">
<!-- tabindex="-1" allows focus with js so errors can be announced -->
<div style="display: none;" tabindex="-1" class="lp-error lp-error-smallamount">
</html>{{int:Donate_interface-smallamount-error}}<html>
</div>
<div style="display: none;" tabindex="-1" class="lp-error lp-error-bigamount">
</html>{{int:Donate_interface-bigamount-error}}<html>
▲ </div>
</fieldset>
</html>
|