(control) Improve accessibility in search-to-ban template

This update enhances accessibility by associating labels with the corresponding checkboxes in the search-to-ban template.
This commit is contained in:
Viktor Lofgren 2024-01-22 15:01:00 +01:00
parent 1eb0adf6d3
commit 51cdf46645

View File

@ -35,7 +35,10 @@
<input type="hidden" name="query" value="{{specs.humanQuery}}" /> <input type="hidden" name="query" value="{{specs.humanQuery}}" />
<table class="table"> <table class="table">
{{#each results}} {{#each results}}
<tr><td><input type="checkbox" name="{{url}}"><th>{{title}}</th></tr> <tr>
<td><input id="{{url}}" type="checkbox" name="{{url}}"></td>
<th><label for="{{url}}">{{title}}</label></th>
</tr>
<tr><td colspan="2"><a href="{{url}}">{{url}}</a></td></tr> <tr><td colspan="2"><a href="{{url}}">{{url}}</a></td></tr>
<tr><td colspan="2">{{description}}</td></tr> <tr><td colspan="2">{{description}}</td></tr>
{{/each}} {{/each}}