a11y: give a unique id to tracking input (#78106)
gitea/combo/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-06-01 19:41:01 +02:00
parent cc8fd003cb
commit 091bf40317
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() {