{% extends 'base.html' %} {% block title %}Edytuj listę{% endblock %} {% block content %}

🛠️ Edytuj listę #{{ list.id }}

← Powrót do panelu
{% include 'admin/_nav.html' %}

📄 Podstawowe informacje

{{ list.created_at.strftime('%Y-%m-%d') }}
🔐 Użytkownicy z dostępem
⚙️ Edytuj uprawnienia {% if permitted_users %}
    {% for u in permitted_users %}
  • @{{ u.username }}
  • {% endfor %}
{% else %}
Brak dodatkowych uprawnień.
{% endif %}

📝 Produkty

{% for item in items %} {% else %} {% endfor %}
Nazwa produktu Notatka Ilość Aktualny stan Akcja Usuń
{{ item.name }} {% if item.note %}
Notatka: {{ item.note }}
{% endif %} {% if item.not_purchased_reason %}
Powód: {{ item.not_purchased_reason }}
{% endif %}
{% if item.purchased %} ✔️ Kupiony {% elif item.not_purchased %} ⚠️ Nie kupiony {% else %} Nieoznaczony {% endif %}
{% if not item.not_purchased %} {% endif %} {% if item.not_purchased %} {% endif %}
Brak produktów.

🧾 Paragony

{% for r in receipts %}
📄 {{ r.filename }}
📅 {{ r.uploaded_at.strftime('%Y-%m-%d %H:%M') }}
👤 {{ r.uploaded_by_user.username if r.uploaded_by_user else "?" }}
💾 {% if r.filesize and r.filesize >= 1024 * 1024 %} {{ (r.filesize / 1024 / 1024) | round(2) }} MB {% elif r.filesize %} {{ (r.filesize / 1024) | round(1) }} kB {% else %} Brak danych {% endif %}
{% endfor %}
{% if not receipts %} {% endif %}
{% endblock %} {% block scripts %} {% endblock %}