mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix/Improve responsiveness of calendar pages
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-4 col-xs-12 text-left flip">
|
<div class="col-md-4 col-sm-6 col-xs-12 text-left flip">
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="group">
|
||||||
<a href="?{% url_replace request "style" "list" "week" "" "year" "" "month" "" %}" type="button" class="btn btn-default">
|
<a href="?{% url_replace request "style" "list" "week" "" "year" "" "month" "" %}" type="button" class="btn btn-default">
|
||||||
<span class="fa fa-list" aria-hidden="true"></span>
|
<span class="fa fa-list" aria-hidden="true"></span>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
{% trans "iCal" %}
|
{% trans "iCal" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4 col-xs-12 text-center" role="group" aria-label="{% trans "Select month and year to show" %}">
|
<div class="col-md-4 col-sm-6 col-xs-12 text-center" role="group" aria-label="{% trans "Select month and year to show" %}">
|
||||||
<select name="month" class="form-control" aria-label="{% trans "Month" %}">
|
<select name="month" class="form-control" aria-label="{% trans "Month" %}">
|
||||||
{% for m in months %}
|
{% for m in months %}
|
||||||
<option value="{{ m|date:"m" }}" {% if m == date %}selected{% endif %}>{{ m|date:"F" }}</option>
|
<option value="{{ m|date:"m" }}" {% if m == date %}selected{% endif %}>{{ m|date:"F" }}</option>
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
{% trans "Go" %}
|
{% trans "Go" %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4 hidden-xs text-right flip">
|
<div class="col-md-4 hidden-sm hidden-xs text-right flip">
|
||||||
{% if has_before %}
|
{% if has_before %}
|
||||||
<a href="?{% url_replace request "year" before.year "month" before.month %}" class="btn btn-default">
|
<a href="?{% url_replace request "year" before.year "month" before.month %}" class="btn btn-default">
|
||||||
<span class="fa fa-arrow-left" aria-hidden="true"></span>
|
<span class="fa fa-arrow-left" aria-hidden="true"></span>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-4 hidden-xs text-left flip">
|
<div class="col-md-4 col-sm-6 col-xs-12 text-left flip">
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="group">
|
||||||
<a href="?{% url_replace request "style" "list" "week" "" "year" "" "month" "" %}" type="button"
|
<a href="?{% url_replace request "style" "list" "week" "" "year" "" "month" "" %}" type="button"
|
||||||
class="btn btn-default">
|
class="btn btn-default">
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
{% trans "iCal" %}
|
{% trans "iCal" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4 col-xs-12 text-center">
|
<div class="col-md-4 col-sm-6 col-xs-12 text-center">
|
||||||
<select name="week" class="form-control select-calendar-week-short">
|
<select name="week" class="form-control select-calendar-week-short">
|
||||||
{% for w in weeks %}
|
{% for w in weeks %}
|
||||||
<option value="{{ w.0.isocalendar.1 }}"
|
<option value="{{ w.0.isocalendar.1 }}"
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
{% trans "Go" %}
|
{% trans "Go" %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4 hidden-xs text-right flip">
|
<div class="col-md-4 hidden-sm hidden-xs text-right flip">
|
||||||
{% if has_before %}
|
{% if has_before %}
|
||||||
<a href="?{% url_replace request "year" before.isocalendar.0 "week" before.isocalendar.1 %}"
|
<a href="?{% url_replace request "year" before.isocalendar.0 "week" before.isocalendar.1 %}"
|
||||||
class="btn btn-default">
|
class="btn btn-default">
|
||||||
|
|||||||
Reference in New Issue
Block a user