Template:2012FR/Form-section/Radiobuttons/Default: Difference between revisions
Jump to navigation
Jump to search
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: | Line 1: | ||
<html> |
<html> |
||
<input type="hidden" name="currency_code" value="</html>{{{currency|{{ |
<input type="hidden" name="currency_code" value="</html>{{{currency|{{CurrencyCode|{{{country}}}}}}}}<html>"/> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</div> |
</div> |
||
< |
<fieldset class="frequency-options"> |
||
<legend class="sr-only"> |
|||
How often would you like to donate? |
|||
⚫ | |||
<ul> |
<ul> |
||
<li> |
<li> |
||
<input type="radio" name="frequency" id="frequency_onetime" value="onetime" onclick="donationForm.toggleMonthly(false);" checked> |
<input type="radio" name="frequency" id="frequency_onetime" value="onetime" onclick="donationForm.toggleMonthly(false);" checked> |
||
<label for="frequency_onetime"></html>{{int:donate_interface-onetime-short}}<html></label> |
<label class="frb-btn" for="frequency_onetime"></html>{{int:donate_interface-onetime-short}}<html></label> |
||
</li> |
</li> |
||
<li> |
<li> |
||
<input type="radio" name="frequency" id="frequency_monthly" value="monthly" onclick="donationForm.toggleMonthly(true);"> |
<input type="radio" name="frequency" id="frequency_monthly" value="monthly" onclick="donationForm.toggleMonthly(true);"> |
||
<label for="frequency_monthly"></html>{{int:donate_interface-monthly-short}}<html></label> |
<label class="frb-btn" for="frequency_monthly"></html>{{int:donate_interface-monthly-short}}<html></label> |
||
</li> |
</li> |
||
</ul> |
</ul> |
||
</ |
</fieldset> |
||
<fieldset class="amount-options"> |
|||
<div id="radiobuttons-table-body"> |
|||
< |
<legend class="sr-only"> |
||
</html>{{int:donate_interface-amount-legend}} ({{{currency|{{CurrencyCode|{{{country}}}}}}}})<html> |
|||
⚫ | |||
< |
</legend> |
||
<ul> |
|||
<li class="radiobuttons-cell input_amount_0"> |
|||
<input type="radio" name="amount" id="input_amount_0" onclick="selectAmount();" value="</html>{{{donate-amount-0}}}<html>" /> |
|||
<label class="frb-btn" for="input_amount_0"></html>{{CurrencyFormat|{{{donate-amount-0}}}|{{{currency}}}|{{{country}}}|{{{language}}}}}<html></label> |
|||
</li> |
|||
<li class="radiobuttons-cell input_amount_1"> |
|||
<input type="radio" name="amount" id="input_amount_1" onclick="selectAmount();" value="</html>{{{donate-amount-1}}}<html>" /> |
|||
<label class="frb-btn" for="input_amount_1"></html>{{CurrencyFormat|{{{donate-amount-1}}}|{{{currency}}}|{{{country}}}|{{{language}}}}}<html></label> |
|||
</li> |
|||
<li class="radiobuttons-cell input_amount_2"> |
|||
<input type="radio" name="amount" id="input_amount_2" onclick="selectAmount();" value="</html>{{{donate-amount-2}}}<html>" /> |
|||
<label class="frb-btn" for="input_amount_2"></html>{{CurrencyFormat|{{{donate-amount-2}}}|{{{currency}}}|{{{country}}}|{{{language}}}}}<html></label> |
|||
</li> |
|||
<li class="radiobuttons-cell input_amount_3"> |
|||
<input type="radio" name="amount" id="input_amount_3" onclick="selectAmount();" value="</html>{{{donate-amount-3}}}<html>" /> |
|||
<label class="frb-btn" for="input_amount_3"></html>{{CurrencyFormat|{{{donate-amount-3}}}|{{{currency}}}|{{{country}}}|{{{language}}}}}<html></label> |
|||
</li> |
|||
<li class="radiobuttons-cell input_amount_4"> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
< |
<label class="frb-btn" for="input_amount_4"></html>{{CurrencyFormat|{{{donate-amount-4}}}|{{{currency}}}|{{{country}}}|{{{language}}}}}<html></label> |
||
⚫ | |||
⚫ | |||
<li class="radiobuttons-cell input_amount_5"> |
|||
<label for="input_amount_4"></html>{{2012FR/CurrencyFormat|{{{donate-amount-4}}}|{{{currency}}}|{{{country}}}|{{{language}}}}}<html></label> |
|||
⚫ | |||
⚫ | |||
< |
<label class="frb-btn" for="input_amount_5"></html>{{CurrencyFormat|{{{donate-amount-5}}}|{{{currency}}}|{{{country}}}|{{{language}}}}}<html></label> |
||
⚫ | |||
⚫ | |||
<li class="radiobuttons-cell input_amount_6"> |
|||
<label for="input_amount_5"></html>{{2012FR/CurrencyFormat|{{{donate-amount-5}}}|{{{currency}}}|{{{country}}}|{{{language}}}}}<html></label> |
|||
⚫ | |||
⚫ | |||
< |
<label class="frb-btn" for="input_amount_6"></html>{{CurrencyFormat|{{{donate-amount-6}}}|{{{currency}}}|{{{country}}}|{{{language}}}}}<html></label> |
||
⚫ | |||
⚫ | |||
⚫ | |||
<label for="input_amount_6"></html>{{2012FR/CurrencyFormat|{{{donate-amount-6}}}|{{{currency}}}|{{{country}}}|{{{language}}}}}<html></label> |
|||
⚫ | |||
</td> |
|||
< |
<label class="frb-btn" for="input_amount_other"> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</ul> |
|||
<!-- tabindex="-1" allows focus with js so errors can be announced --> |
|||
</td> |
|||
<div style="display: none;" tabindex="-1" class="lp-error lp-error-smallamount"> |
|||
</tr> |
|||
</html>{{int:Donate_interface-smallamount-error}}<html> |
|||
</table> |
|||
</div> |
</div> |
||
<div style="display: none;" tabindex="-1" class="lp-error lp-error-bigamount"> |
|||
</html>{{int:Donate_interface-bigamount-error}}<html> |
|||
⚫ | |||
</fieldset> |
|||
</html> |
</html> |
Latest revision as of 19:16, 20 November 2024