From 90b9c8d4625a54ddd28dfc57bb14f95275734fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 9 Oct 2025 20:32:49 +0200 Subject: [PATCH] zmiany ux --- alters.txt | 25 ------------------------- static/css/custom.css | 7 +++++++ templates/admin/dashboard.html | 3 +-- templates/admin/dodaj_wplate.html | 2 +- templates/admin/dodaj_wydatek.html | 2 +- templates/admin/ustawienia.html | 4 ++-- templates/index.html | 4 ++-- 7 files changed, 14 insertions(+), 33 deletions(-) diff --git a/alters.txt b/alters.txt index bedb48f..e69de29 100644 --- a/alters.txt +++ b/alters.txt @@ -1,25 +0,0 @@ -BEGIN TRANSACTION; - - -ALTER TABLE zbiorka ADD COLUMN pokaz_postep_finanse INTEGER NOT NULL DEFAULT 1; -ALTER TABLE zbiorka ADD COLUMN pokaz_postep_pozycje INTEGER NOT NULL DEFAULT 1; -ALTER TABLE zbiorka ADD COLUMN pokaz_postep_kwotowo INTEGER NOT NULL DEFAULT 1; - - - --- UŻYTKOWNIK -ALTER TABLE user RENAME TO uzytkownik; -ALTER TABLE uzytkownik RENAME COLUMN username TO uzytkownik; -ALTER TABLE uzytkownik RENAME COLUMN password_hash TO haslo_hash; -ALTER TABLE uzytkownik RENAME COLUMN is_admin TO czy_admin; - --- USTAWIENIA GLOBALNE -ALTER TABLE global_settings RENAME TO ustawienia_globalne; -ALTER TABLE ustawienia_globalne RENAME COLUMN allowed_login_hosts TO dozwolone_hosty_logowania; -ALTER TABLE ustawienia_globalne RENAME COLUMN site_title TO tytul_strony; -ALTER TABLE ustawienia_globalne RENAME COLUMN show_logo_in_navbar TO pokaz_logo_w_navbar; -ALTER TABLE ustawienia_globalne RENAME COLUMN navbar_brand_mode TO typ_navbar; -ALTER TABLE ustawienia_globalne RENAME COLUMN footer_brand_mode TO typ_stopka; -ALTER TABLE ustawienia_globalne RENAME COLUMN footer_text TO stopka_text; - -COMMIT; diff --git a/static/css/custom.css b/static/css/custom.css index b6b54da..2d8d878 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -387,4 +387,11 @@ select.form-select:focus { border: 0; border-top: 1px dashed rgba(255, 255, 255, 0.2); margin: 10px 0; +} + +.btn-outline-light.custom-hover { + transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease; +} +.btn-outline-light.custom-hover:hover { + box-shadow: 0 .25rem .5rem rgba(0,0,0,.1); } \ No newline at end of file diff --git a/templates/admin/dashboard.html b/templates/admin/dashboard.html index 0af8352..8c967c7 100644 --- a/templates/admin/dashboard.html +++ b/templates/admin/dashboard.html @@ -71,8 +71,7 @@ Ukryta {% else %} - Widoczna + Widoczna {% endif %} diff --git a/templates/admin/dodaj_wplate.html b/templates/admin/dodaj_wplate.html index 3e1162f..a817d14 100644 --- a/templates/admin/dodaj_wplate.html +++ b/templates/admin/dodaj_wplate.html @@ -60,7 +60,7 @@
Podaj kwotę w złotówkach (min. 0,01).
- {% for preset in [10,25,50,100,200] %} + {% for preset in [5,10,20,25,30,50,60,100,150,200] %} diff --git a/templates/admin/dodaj_wydatek.html b/templates/admin/dodaj_wydatek.html index 28b714a..04ff0ef 100644 --- a/templates/admin/dodaj_wydatek.html +++ b/templates/admin/dodaj_wydatek.html @@ -63,7 +63,7 @@
- + Anuluj
diff --git a/templates/admin/ustawienia.html b/templates/admin/ustawienia.html index 03013b3..ff66127 100644 --- a/templates/admin/ustawienia.html +++ b/templates/admin/ustawienia.html @@ -68,7 +68,7 @@ - @@ -172,7 +172,7 @@
Powrót - +
diff --git a/templates/index.html b/templates/index.html index e98a55c..4635ee1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -85,8 +85,8 @@ zbiórki{% endif %}{% endblock %}