mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
[A11y] add main-landmark to all presale pages (#5332)
This commit is contained in:
committed by
GitHub
parent
23b07e29cd
commit
4d9f1a8efc
@@ -65,8 +65,10 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</header>
|
</header>
|
||||||
<div class="container main-box">
|
<div class="container main-box">
|
||||||
|
<main id="content">
|
||||||
{% block page %}
|
{% block page %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
{% block footer %}
|
{% block footer %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -53,10 +53,8 @@
|
|||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</aside>
|
</aside>
|
||||||
<main aria-label="{% trans "Checkout" %}">
|
|
||||||
<h2>{% trans "Checkout" %}</h2>
|
<h2>{% trans "Checkout" %}</h2>
|
||||||
{% include "pretixpresale/event/fragment_checkoutflow.html" %}
|
{% include "pretixpresale/event/fragment_checkoutflow.html" %}
|
||||||
{% block inner %}
|
{% block inner %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</main>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
{% load getitem %}
|
{% load getitem %}
|
||||||
{% block title %}{% trans "Review order" %}{% endblock %}
|
{% block title %}{% trans "Review order" %}{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<main aria-label="{% trans "Review order" %}">
|
|
||||||
<h2>{% trans "Review order" %}</h2>
|
<h2>{% trans "Review order" %}</h2>
|
||||||
{% include "pretixpresale/event/fragment_checkoutflow.html" %}
|
{% include "pretixpresale/event/fragment_checkoutflow.html" %}
|
||||||
<p>{% trans "Please review the details below and confirm your order." %}</p>
|
<p>{% trans "Please review the details below and confirm your order." %}</p>
|
||||||
@@ -214,5 +213,4 @@
|
|||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</main>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -47,7 +47,6 @@
|
|||||||
{{ ev.event_microdata }}
|
{{ ev.event_microdata }}
|
||||||
</script>
|
</script>
|
||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
<main aria-label="{% if show_cart %}{% trans "Your cart, general information, add products to your cart" %}{% else %}{% trans "General information, add products to your cart" %}{% endif %}">
|
|
||||||
{% if show_cart %}
|
{% if show_cart %}
|
||||||
{% include "pretixpresale/event/fragment_cart_box.html" with open=1 %}
|
{% include "pretixpresale/event/fragment_cart_box.html" with open=1 %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -244,7 +243,6 @@
|
|||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</main>
|
|
||||||
{% if show_vouchers %}
|
{% if show_vouchers %}
|
||||||
<aside class="front-page" aria-labelledby="redeem-a-voucher">
|
<aside class="front-page" aria-labelledby="redeem-a-voucher">
|
||||||
<h2 class="h3" id="redeem-a-voucher">{% trans "Redeem a voucher" %}</h2>
|
<h2 class="h3" id="redeem-a-voucher">{% trans "Redeem a voucher" %}</h2>
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
{% trans "Order details" %}
|
{% trans "Order details" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<main>
|
|
||||||
{% if "thanks" in request.GET or "paid" in request.GET %}
|
{% if "thanks" in request.GET or "paid" in request.GET %}
|
||||||
<div class="thank-you">
|
<div class="thank-you">
|
||||||
<span class="fa fa-check-circle" aria-hidden="true"></span>
|
<span class="fa fa-check-circle" aria-hidden="true"></span>
|
||||||
@@ -484,5 +483,4 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</main>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user