mirror of
https://github.com/pretix/pretix.git
synced 2026-08-27 13:24:41 +00:00
Clarify UX around subevent selection
This commit is contained in:
@@ -95,18 +95,35 @@
|
|||||||
|
|
||||||
{% if show_dates %}
|
{% if show_dates %}
|
||||||
{% if subevent %}
|
{% if subevent %}
|
||||||
<a class="subevent-toggle">
|
{% if show_cart %}
|
||||||
{% trans "View other date" %}
|
<a class="subevent-toggle btn btn-primary btn-block btn-lg">
|
||||||
</a>
|
{% trans "Add tickets for a different date" %}
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<a class="subevent-toggle btn btn-default btn-block">
|
||||||
|
{% trans "View other date" %}
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>{% trans "Choose date to buy a ticket" %}</h3>
|
<h3>{% trans "Choose date to buy a ticket" %}</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="subevent-list">
|
<div class="panel panel-default subevent-list">
|
||||||
{% if list_type == "calendar" %}
|
<div class="panel-heading">
|
||||||
{% include "pretixpresale/event/fragment_subevent_calendar.html" %}
|
{% if subevent %}
|
||||||
{% else %}
|
{% trans "Other dates" context "subevent" %}
|
||||||
{% include "pretixpresale/event/fragment_subevent_list.html" %}
|
{% else %}
|
||||||
{% endif %}
|
{% trans "Dates" context "subevent" %}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div>
|
||||||
|
{% if list_type == "calendar" %}
|
||||||
|
{% include "pretixpresale/event/fragment_subevent_calendar.html" %}
|
||||||
|
{% else %}
|
||||||
|
{% include "pretixpresale/event/fragment_subevent_list.html" %}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if subevent %}
|
{% if subevent %}
|
||||||
<h2 class="subevent-head">{{ subevent.name }}</h2>
|
<h2 class="subevent-head">{{ subevent.name }}</h2>
|
||||||
|
|||||||
@@ -181,6 +181,7 @@ $(function () {
|
|||||||
$(".subevent-list").hide();
|
$(".subevent-list").hide();
|
||||||
$(".subevent-toggle").css("display", "block").click(function () {
|
$(".subevent-toggle").css("display", "block").click(function () {
|
||||||
$(".subevent-list").slideToggle(300);
|
$(".subevent-list").slideToggle(300);
|
||||||
|
$(".subevent-toggle").slideToggle(300)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -189,18 +189,7 @@ section.front-page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.subevent-toggle {
|
.subevent-toggle {
|
||||||
padding: 5px;
|
|
||||||
text-align: center;
|
|
||||||
background-color: darken($gray-lighter, 30%);
|
|
||||||
display: none;
|
display: none;
|
||||||
color: white;
|
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: white;
|
|
||||||
text-decoration: none;
|
|
||||||
background-color: darken($gray-lighter, 40%);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
h2.subevent-head {
|
h2.subevent-head {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|||||||
Reference in New Issue
Block a user