[A11y] add missing autcomplete (#5236)

This commit is contained in:
Richard Schreiber
2025-06-11 10:47:17 +02:00
committed by GitHub
parent e8abe5cad8
commit 74cea09f6c
4 changed files with 13 additions and 7 deletions

View File

@@ -15,8 +15,9 @@
<div class="input-group{% if "voucher_invalid" in request.GET %} has-error{% endif %}">
<span class="input-group-addon"><i class="fa fa-ticket fa-fw" aria-hidden="true"></i></span>
<input type="text" class="form-control{% if "voucher_invalid" in request.GET %} has-error{% endif %}" name="voucher" id="voucher"
{% if "voucher_invalid" in request.GET %} aria-describedby="error-message"{% endif %}
placeholder="{% trans "Voucher code" %}" required="required">
{% if "voucher_invalid" in request.GET %} aria-describedby="error-message"{% endif %}
autocomplete="off"
placeholder="{% trans "Voucher code" %}" required="required">
</div>
</div>
<input type="hidden" name="subevent" value="{{ subevent.id|default_if_none:"" }}" />

View File

@@ -34,13 +34,13 @@
{% endblocktrans %}
{% endif %}
</p>
<p class="help-block">
<p class="help-block" id="add-to-list-description">
{% blocktrans trimmed %}
You will <strong>not</strong> receive a confirmation email after you have been added to the waiting list. We will only contact you once a spot opens up.
{% endblocktrans %}
</p>
<p>
<button type="submit" class="btn btn-primary">
<button type="submit" class="btn btn-primary" aria-describedby="add-to-list-description">
{% trans "Add me to the list" %}
</button>
</p>