mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
[A11y] fix organizer event view navigation missing aria-current (#5196)
* [A11y] fix organizer event view navigation * Update src/pretix/presale/templates/pretixpresale/fragment_calendar_nav.html Co-authored-by: Richard Schreiber <schreiber@rami.io> --------- Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
committed by
GitHub
parent
f0c95c4b03
commit
0ee451560a
@@ -2,22 +2,21 @@
|
|||||||
{% load eventurl %}
|
{% load eventurl %}
|
||||||
{% load urlreplace %}
|
{% load urlreplace %}
|
||||||
|
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="navigation" aria-label="{% trans "Event overview by month, week, etc." %}">
|
||||||
<a href="?{% url_replace request "style" "list" "date" "" %}" type="button"
|
<a href="?{% url_replace request "style" "list" "date" "" %}"
|
||||||
class="btn btn-default{% if style == "list" %} active{% endif %}">
|
class="btn btn-default{% if style == "list" %} active" aria-current="page{% endif %}">
|
||||||
{% trans "List" %}
|
{% trans "List" %}
|
||||||
</a>
|
</a>
|
||||||
<a href="?{% if "date" in request.GET %}{% url_replace request "style" "week" "old" "" "page" "" "date" date|date:"o-\WW" %}{% else %}{% url_replace request "style" "week" "old" "" "page" "" %}{% endif %}" type="button"
|
<a href="?{% if "date" in request.GET %}{% url_replace request "style" "week" "old" "" "page" "" "date" date|date:"o-\WW" %}{% else %}{% url_replace request "style" "week" "old" "" "page" "" %}{% endif %}"
|
||||||
class="btn btn-default{% if style == "week" %} active{% endif %}">
|
class="btn btn-default{% if style == "week" %} active" aria-current="page{% endif %}">
|
||||||
{% trans "Week" %}
|
{% trans "Week" %}
|
||||||
</a>
|
</a>
|
||||||
<a href="?{% if "date" in request.GET %}{% url_replace request "style" "calendar" "old" "" "page" "" "date" date|date:"Y-m" %}{% else %}{% url_replace request "style" "calendar" "old" "" "page" "" %}{% endif %}"
|
<a href="?{% if "date" in request.GET %}{% url_replace request "style" "calendar" "old" "" "page" "" "date" date|date:"Y-m" %}{% else %}{% url_replace request "style" "calendar" "old" "" "page" "" %}{% endif %}"
|
||||||
type="button"
|
class="btn btn-default{% if style == "calendar" %} active" aria-current="page{% endif %}">
|
||||||
class="btn btn-default{% if style == "calendar" %} active{% endif %}">
|
|
||||||
{% trans "Month" %}
|
{% trans "Month" %}
|
||||||
</a>
|
</a>
|
||||||
<a href="?{% if "date" in request.GET %}{% url_replace request "style" "day" "old" "" "page" "" "date" date|date:"Y-m-d" %}{% else %}{% url_replace request "style" "day" "old" "" "page" "" "date" %}{% endif %}" type="button"
|
<a href="?{% if "date" in request.GET %}{% url_replace request "style" "day" "old" "" "page" "" "date" date|date:"Y-m-d" %}{% else %}{% url_replace request "style" "day" "old" "" "page" "" "date" %}{% endif %}"
|
||||||
class="btn btn-default{% if style == "day" %} active{% endif %}">
|
class="btn btn-default{% if style == "day" %} active" aria-current="page{% endif %}">
|
||||||
{% trans "Day" %}
|
{% trans "Day" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user