added aria-labels to category-sections

This commit is contained in:
Richard Schreiber
2021-02-10 18:03:09 +01:00
parent 3dd685bf7a
commit 246e7c9443

View File

@@ -6,11 +6,11 @@
{% load eventsignal %}
{% load rich_text %}
{% for tup in items_by_category %}
<section>
<section{% if tup.0 %} aria-labelledby="category-{{ tup.0.id }}"{% else %} aria-label="{% trans "Uncategorized tickets and/or products" %}"{% endif %}{% if tup.0.description %} aria-describedby="category-info-{{ tup.0.id }}"{% endif %}>
{% if tup.0 %}
<h3 id="category-{{ tup.0.id }}">{{ tup.0.name }}</h3>
{% if tup.0.description %}
<p>{{ tup.0.description|localize|rich_text }}</p>
<div id="category-info-{{ tup.0.id }}">{{ tup.0.description|localize|rich_text }}</div>
{% endif %}
{% endif %}
{% for item in tup.1 %}