zmiana month na m

This commit is contained in:
Mateusz Gruszczyński
2025-08-13 15:13:56 +02:00
parent 87d9a8228c
commit fe027a3bc7
2 changed files with 4 additions and 4 deletions

View File

@@ -39,7 +39,7 @@
<label for="monthSelect" class="text-white small mb-0">📅 Wybierz miesiąc:</label>
<select id="monthSelect" class="form-select form-select-sm bg-dark text-white border-secondary"
style="min-width: 180px;"
onchange="window.location.search='?month='+this.value">
onchange="window.location.search='?m='+this.value">
{% for m in month_options %}
{% set year, month = m.split('-') %}
<option value="{{ m }}" {% if selected_month == m %}selected{% endif %}>
@@ -231,12 +231,12 @@
<div class="d-grid gap-2">
{% for m in month_options %}
{% set year, month = m.split('-') %}
<a href="{{ url_for('main_page', month=m) }}"
<a href="{{ url_for('main_page', m=m) }}"
class="btn btn-outline-light {% if selected_month == m %}active{% endif %}">
{{ month_names[month|int - 1] }} {{ year }}
</a>
{% endfor %}
<a href="{{ url_for('main_page', month='all') }}"
<a href="{{ url_for('main_page', m='all') }}"
class="btn btn-outline-secondary {% if selected_month == 'all' %}active{% endif %}">
📋 Wyświetl wszystkie
</a>