forked from CGM_Public/pretix_original
improve formatting for subevents
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user