Skip to content

Commit

Permalink
Merge pull request #974 from cisagov/rjm/973-duplicate-ids-checkboxes
Browse files Browse the repository at this point in the history
973 - concatenate the value + extracted text for both label for attribute a…
  • Loading branch information
rachidatecs authored Sep 7, 2023
2 parents f5a301c + 7a5438e commit 11cee3c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/registrar/templates/admin/change_list_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,11 @@
<tr><td colspan="{{ result|length }}">{{ result.form.non_field_errors }}</td></tr>
{% endif %}
<tr>

{% with result_value=result.0|extract_value %}
{% with result_label=result.1|extract_a_text %}
<td>
<input type="checkbox" name="_selected_action" value="{{ result_value|default:'value' }}" id="{{ result_label|default:result_value }}" class="action-select">
<label class="usa-sr-only" for="{{ result_label|default:result_value }}">{{ result_label|default:'label' }}</label>
<input type="checkbox" name="_selected_action" value="{{ result_value|default:'value' }}" id="{{ result_value|default:'value' }}-{{ result_label|default:'label' }}" class="action-select">
<label class="usa-sr-only" for="{{ result_value|default:'value' }}-{{ result_label|default:'label' }}">{{ result_label|default:'label' }}</label>
</td>
{% endwith %}
{% endwith %}
Expand Down

0 comments on commit 11cee3c

Please sign in to comment.