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

{{ ui_icon('tool') }} Edytuj listę #{{ list.id }}

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

{{ ui_icon('file-text') }} Podstawowe informacje

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

{{ ui_icon('notes') }} 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 %} {{ ui_icon('check') }} Kupiony {% elif item.not_purchased %} {{ ui_icon('alert-triangle') }} Nie kupiony {% else %} Nieoznaczony {% endif %}
{% if not item.not_purchased %} {% endif %} {% if item.not_purchased %} {% endif %}
Brak produktów.

{{ ui_icon('receipt') }} Paragony

{% for r in receipts %}
{{ ui_icon('file-text') }} {{ r.filename }}
{{ ui_icon('calendar') }} {{ r.uploaded_at.strftime('%Y-%m-%d %H:%M') }}
{{ ui_icon('user') }} {{ r.uploaded_by_user.username if r.uploaded_by_user else "?" }}
{{ ui_icon('device-floppy') }} {% 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 %}