improve formatting for subevents

This commit is contained in:
Mira Weller
2024-10-14 10:23:34 +02:00
parent 27cfd4dbdd
commit c401e54831
3 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ class DummyCategory:
def __init__(self, category: ItemCategory, subevent):
self.id = category.id
self.name = f"{category.name} ({subevent})"
self.name = str(category.name)
self.subevent_name = str(subevent)
self.description = category.description
@@ -9,6 +9,9 @@
{% if category %}
<section aria-labelledby="{{ form_prefix }}category-{{ category.id }}"{% if category.description %} aria-describedby="{{ form_prefix }}category-info-{{ category.id }}"{% endif %}>
<h3 id="{{ form_prefix }}category-{{ category.id }}">{{ category.name }}
{% if category.subevent_name %}
<small class="text-muted"><i class="fa fa-calendar"></i> {{ category.subevent_name }}</small>
{% endif %}
{% if category.category_has_discount %}
<small class="text-success">
<i class="fa fa-star" aria-hidden="true"></i>
@@ -110,6 +110,9 @@
.cross-selling .panel-body > *:first-child > h3:first-child {
margin-top: 0;
}
.cross-selling .panel-body h3 small {
padding-left: 20px;
}
.panel-confirm {