a11y: give a unique id to tracking input (#78106)
gitea/combo/pipeline/head This commit looks good
Details
gitea/combo/pipeline/head This commit looks good
Details
This commit is contained in:
parent
cc8fd003cb
commit
091bf40317
|
@ -28,8 +28,8 @@
|
||||||
<div id="_cell_error_{{ cell.id }}" class="errornotice" style="display: none">
|
<div id="_cell_error_{{ cell.id }}" class="errornotice" style="display: none">
|
||||||
{% trans "The tracking code could not been found." %}
|
{% trans "The tracking code could not been found." %}
|
||||||
</div>
|
</div>
|
||||||
<label class="sr-only" for="tracking-code">{% trans "Tracking Code" %}</label>
|
<label class="sr-only" for="tracking-code-{{cell.id}}">{% trans "Tracking Code" %}</label>
|
||||||
<input required id="tracking-code" name="code" placeholder="{% block input-placeholder-content %}{% trans 'ex: CNPHNTFB' %}{% endblock %}"/>
|
<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>
|
<button aria-label="{% trans 'Submit' %}">{% block submit-content %}{% trans 'Submit' %}{% endblock %}</button>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
Loading…
Reference in New Issue