0001-a11y-give-remove-file-link-a-button-role-40870.patch
wcs/qommon/templates/qommon/forms/widgets/file.html | ||
---|---|---|
23 | 23 |
<div class="fileinfo {% if widget.readonly and widget.has_tempfile_image %}thumbnail{% endif %}"> |
24 | 24 |
<span class="filename">{{ widget.tempfile.base_filename }}</span> |
25 | 25 |
{% if not widget.readonly %} |
26 |
<a href="#" class="remove" title="{% trans 'Remove this file' %}">{% trans "remove" %}</a> |
|
26 |
<a href="#" role="button" class="remove" title="{% trans 'Remove this file' %}">{% trans "remove" %}</a>
|
|
27 | 27 |
{% elif widget.has_tempfile_image %} |
28 | 28 |
<img alt="" src="tempfile?t={{ widget.tempfile.token }}&thumbnail=1"/> |
29 | 29 |
{% endif %} |
30 |
- |