Skip to content
Snippets Groups Projects
Verified Commit 4443150e authored by weeman's avatar weeman
Browse files

Benutze Nav-Pills als Fahrplan Umschalter

parent 8876e59f
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<a href="#" class="btn m-2">{{ _("QR-Code") }}</a> <a href="#" class="btn m-2">{{ _("QR-Code") }}</a>
</div> #} </div> #}
<form method="get" action="#now" class="hub-card mb-2"> <form method="get" action="#now">
<input type="hidden" name="mode" value="{{ mode }}"> <input type="hidden" name="mode" value="{{ mode }}">
{% if show_assembly_filters %}<input type="hidden" name="show_assembly_filters" value="y">{% endif %} {% if show_assembly_filters %}<input type="hidden" name="show_assembly_filters" value="y">{% endif %}
{% if day %}<input type="hidden" name="day" value="{{ day.index }}">{% endif %} {% if day %}<input type="hidden" name="day" value="{{ day.index }}">{% endif %}
...@@ -51,23 +51,22 @@ ...@@ -51,23 +51,22 @@
{% if my_fahrplan %}<input type="hidden" name="my" value="y">{% endif %} {% if my_fahrplan %}<input type="hidden" name="my" value="y">{% endif %}
{% if is_recorded is not none %}<input type="hidden" name="rec" value="{{ 'y' if is_recorded else 'n' }}">{% endif %} {% if is_recorded is not none %}<input type="hidden" name="rec" value="{{ 'y' if is_recorded else 'n' }}">{% endif %}
<div class="d-flex gap-3 flex-column flex-md-row align-items-start hub-fahrplan__title mb-2"> <ul class="nav nav-pills mb-3">
<div> <li class="nav-item">
<button type="submit" <button type="submit"
name="set" name="set"
value="mlist" value="mlist"
class="hub-fahrplan__view-toggle {{ 'hub-fahrplan__view-toggle--active' if mode == 'list' }}"> class="nav-link {{ 'active' if mode == 'list' }}">{{ _("fahrplan.filters.list") }}</button>
{{ _("fahrplan.filters.list") }} </li>
</button> <li class="nav-item">
<button type="submit" <button type="submit"
name="set" name="set"
value="mcalendar" value="mcalendar"
class="hub-fahrplan__view-toggle {{ 'hub-fahrplan__view-toggle--active' if mode == 'calendar' }}"> class="nav-link {{ 'active' if mode == 'calendar' }}">{{ _("fahrplan.filters.calendar") }}</button>
{{ _("fahrplan.filters.calendar") }} </li>
</button> </ul>
</div>
</div>
<div class="hub-card mb-2">
<div class="hub-tags mb-2"> <div class="hub-tags mb-2">
{% if user.is_authenticated %} {% if user.is_authenticated %}
{{ filter_button("fmy", my_fahrplan, _("My Fahrplan") ) }} {{ filter_button("fmy", my_fahrplan, _("My Fahrplan") ) }}
...@@ -106,6 +105,7 @@ ...@@ -106,6 +105,7 @@
{%- endfor %} {%- endfor %}
</div> </div>
{% endif %} #} {% endif %} #}
</div>
</form> </form>
{% if timezone_warning %} {% if timezone_warning %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment