diff --git a/config.py b/config.py index e73286c..99185a0 100644 --- a/config.py +++ b/config.py @@ -78,6 +78,6 @@ class Config: "Spożywcze,Budowlane,Zabawki,Chemia,Inne,Elektronika,Odzież i obuwie," "Artykuły biurowe,Kosmetyki i higiena,Motoryzacja,Ogród i rośliny," "Zwierzęta,Sprzęt sportowy,Książki i prasa,Narzędzia i majsterkowanie," - "RTV / AGD,Apteka i suplementy,Artykuły dekoracyjne,Gry i hobby,Usługi,Pieczywo,Różne,Chiny" + "RTV / AGD,Apteka i suplementy,Artykuły dekoracyjne,Gry i hobby,Usługi,Pieczywo,Różne,Chiny,Dom" ).split(",") if c.strip() ] \ No newline at end of file diff --git a/static/js/categories_select_admin.js b/static/js/categories_select_admin.js new file mode 100644 index 0000000..e69de29 diff --git a/static/js/admin_mass_categories.js b/static/js/preview_list_modal.js similarity index 82% rename from static/js/admin_mass_categories.js rename to static/js/preview_list_modal.js index 009b2fa..f049bc0 100644 --- a/static/js/admin_mass_categories.js +++ b/static/js/preview_list_modal.js @@ -1,15 +1,5 @@ +// preview-modal.js document.addEventListener("DOMContentLoaded", function () { - // Inicjalizacja Tom Select dla wszystkich select[multiple] - document.querySelectorAll('select[multiple]').forEach(function (el) { - new TomSelect(el, { - plugins: ['remove_button'], - placeholder: 'Wybierz kategorie...', - create: false, - sortField: { field: "text", direction: "asc" }, - dropdownParent: 'body' - }); - }); - // Obsługa przycisków podglądu produktów document.querySelectorAll(".preview-btn").forEach((btn) => { btn.addEventListener("click", async () => { @@ -43,10 +33,10 @@ document.addEventListener("DOMContentLoaded", function () { const li = document.createElement("li"); li.className = "list-group-item bg-dark text-white d-flex justify-content-between"; li.innerHTML = ` - ${item.name} - - x${item.quantity} - `; + ${item.name} + + x${item.quantity} + `; if (item.purchased) { purchasedList.appendChild(li); diff --git a/templates/admin/admin_panel.html b/templates/admin/admin_panel.html index ae7e961..9e1cf16 100644 --- a/templates/admin/admin_panel.html +++ b/templates/admin/admin_panel.html @@ -263,9 +263,18 @@
- ✏️ - 🗑️ + ✏️ + + 🗑️
@@ -280,6 +289,29 @@ +
+ Python: {{ python_version.split()[0] }} | {{ system_info }} | RAM app: {{ app_memory }} | + DB: {{ db_info.engine|upper }}{% if db_info.version %} v{{ db_info.version[0] }}{% endif %} | + Tabele: {{ table_count }} | Rekordy: {{ record_total }} | + Uptime: {{ uptime_minutes }} min +
+ + + + {% block scripts %} + {% endblock %} -
- Python: {{ python_version.split()[0] }} | {{ system_info }} | RAM app: {{ app_memory }} | - DB: {{ db_info.engine|upper }}{% if db_info.version %} v{{ db_info.version[0] }}{% endif %} | - Tabele: {{ table_count }} | Rekordy: {{ record_total }} | - Uptime: {{ uptime_minutes }} min -
{% endblock %} \ No newline at end of file diff --git a/templates/admin/mass_edit_categories.html b/templates/admin/mass_edit_categories.html index 544f350..1358341 100644 --- a/templates/admin/mass_edit_categories.html +++ b/templates/admin/mass_edit_categories.html @@ -83,6 +83,6 @@ {% endblock %} {% block scripts %} - - + + {% endblock %} \ No newline at end of file