uprawnienia do stacji i usuwanie firm

This commit is contained in:
Mateusz Gruszczyński
2026-07-13 15:32:00 +02:00
parent a989889e3f
commit 31f10fc8d9
3 changed files with 2 additions and 4 deletions
-2
View File
@@ -58,8 +58,6 @@ def create_app(test_config=None):
response.headers["Cache-Control"] = "public, max-age=2592000, immutable" response.headers["Cache-Control"] = "public, max-age=2592000, immutable"
elif response.mimetype == "text/html": elif response.mimetype == "text/html":
response.headers["Cache-Control"] = "no-store, no-cache, private, must-revalidate" response.headers["Cache-Control"] = "no-store, no-cache, private, must-revalidate"
response.headers["Pragma"] = "no-cache"
response.headers["Expires"] = "0"
return response return response
@login_manager.user_loader @login_manager.user_loader
+1 -1
View File
@@ -2,7 +2,7 @@
{% block title %}Firmy i karty{% endblock %} {% block title %}Firmy i karty{% endblock %}
{% block content %} {% block content %}
<div class="d-flex flex-column flex-lg-row justify-content-between align-items-lg-center gap-3 mb-3"> <div class="d-flex flex-column flex-lg-row justify-content-between align-items-lg-center gap-3 mb-3">
<div><h1 class="h2 mb-1">Administracja</h1><p class="text-body-secondary mb-0">Firmy, karty paliwowe i firmowe ulubione stacje. <span class="badge text-bg-info ms-1">wersja: company-stations-v2</span></p></div> <div><h1 class="h2 mb-1">Administracja</h1><p class="text-body-secondary mb-0">Firmy, karty paliwowe i firmowe ulubione stacje.</p></div>
{% if current_user.role == 'admin' %}<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#createCompanyModal">Dodaj firmę</button>{% endif %} {% if current_user.role == 'admin' %}<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#createCompanyModal">Dodaj firmę</button>{% endif %}
</div> </div>
{% include '_admin_nav.html' %} {% include '_admin_nav.html' %}
File diff suppressed because one or more lines are too long