dropbna poprawka w stringu

This commit is contained in:
Mateusz Gruszczyński
2025-08-12 22:32:37 +02:00
parent ae2c3e66bf
commit 507ce1e5dc

View File

@@ -136,14 +136,33 @@
<div class="d-flex justify-content-between align-items-center mb-3 flex-wrap gap-2">
<div>
{% if not show_all %}
<a href="{{ url_for('admin_panel', month=prev_month) }}" class="btn btn-outline-light btn-sm">
Poprzedni
</a>
<a href="{{ url_for('admin_panel', month=next_month) }}" class="btn btn-outline-light btn-sm">
Następny →
</a>
{# Poprzedni miesiąc #}
{% if prev_month in month_options %}
<a href="{{ url_for('admin_panel', m=prev_month) }}" class="btn btn-outline-light btn-sm">
← {{ prev_month }}
</a>
{% else %}
<button class="btn btn-outline-light btn-sm" disabled>
← {{ prev_month }}
</button>
{% endif %}
{# Następny miesiąc #}
{% if next_month in month_options %}
<a href="{{ url_for('admin_panel', m=next_month) }}" class="btn btn-outline-light btn-sm">
{{ next_month }} →
</a>
{% else %}
<button class="btn btn-outline-light btn-sm" disabled>
{{ next_month }} →
</button>
{% endif %}
{% endif %}
</div>
</div>
<form method="get">
<div class="input-group input-group-sm">