mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +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 urlreplace %}
|
||||
|
||||
<div class="btn-group" role="group">
|
||||
<a href="?{% url_replace request "style" "list" "date" "" %}" type="button"
|
||||
class="btn btn-default{% if style == "list" %} active{% endif %}">
|
||||
<div class="btn-group" role="navigation" aria-label="{% trans "Event overview by month, week, etc." %}">
|
||||
<a href="?{% url_replace request "style" "list" "date" "" %}"
|
||||
class="btn btn-default{% if style == "list" %} active" aria-current="page{% endif %}">
|
||||
{% trans "List" %}
|
||||
</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"
|
||||
class="btn btn-default{% if style == "week" %} active{% endif %}">
|
||||
<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" aria-current="page{% endif %}">
|
||||
{% trans "Week" %}
|
||||
</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 %}"
|
||||
type="button"
|
||||
class="btn btn-default{% if style == "calendar" %} active{% endif %}">
|
||||
class="btn btn-default{% if style == "calendar" %} active" aria-current="page{% endif %}">
|
||||
{% trans "Month" %}
|
||||
</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"
|
||||
class="btn btn-default{% if style == "day" %} active{% endif %}">
|
||||
<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" aria-current="page{% endif %}">
|
||||
{% trans "Day" %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user