{% extends "base.html" %} {% block title %}Manage Boxes{% endblock %} {% block head %} {% endblock %} {% block content %}

Add New Box

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}
Box number will be auto-generated (8 digits)
Location can be assigned later after filling the box.

All Boxes

{% for box in boxes %} {% endfor %}
ID Box Number Status Location Created At Created By Actions
{{ box[0] }} {{ box[1] }} {{ box[2]|upper }} {{ box[3] or 'Not assigned' }} {{ box[4].strftime('%Y-%m-%d %H:%M') if box[4] else '' }} {{ box[6] or '' }}

Box Statistics

Total: {{ boxes|length }} Open: {{ boxes|selectattr('2', 'equalto', 'open')|list|length }} Closed: {{ boxes|selectattr('2', 'equalto', 'closed')|list|length }}
{% if session['role'] in ['administrator', 'management'] %}
{% endif %}

Print Box Label

Click on a box row in the table to select it for printing
Select a box
No box selected
{% endblock %}