a11y: give a unique id to tracking input (#78106) #111

Merged
fpeters merged 1 commits from wip/78106-tracking-code-unique-id into main 2023-06-02 06:43:15 +02:00
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@
<div id="_cell_error_{{ cell.id }}" class="errornotice" style="display: none">
{% trans "The tracking code could not been found." %}
</div>
<label class="sr-only" for="tracking-code">{% trans "Tracking Code" %}</label>
<input required id="tracking-code" name="code" placeholder="{% block input-placeholder-content %}{% trans 'ex: CNPHNTFB' %}{% endblock %}"/>
<label class="sr-only" for="tracking-code-{{cell.id}}">{% trans "Tracking Code" %}</label>
<input required class="tracking-code--input" id="tracking-code-{{cell.id}}" name="code" placeholder="{% block input-placeholder-content %}{% trans 'ex: CNPHNTFB' %}{% endblock %}"/>
<button aria-label="{% trans 'Submit' %}">{% block submit-content %}{% trans 'Submit' %}{% endblock %}</button>
<script>
$(function() {