{% extends "base.html" %} {% block title %}Box Management - LabHelper{% endblock %} {% block page_header %} {% endblock %} {% block content %}

Box Types

{% csrf_token %}

Add New Box Type

{{ box_type_form.name }}
{{ box_type_form.width }}
{{ box_type_form.height }}
{{ box_type_form.length }}
{% for box_type in box_types %}

{{ box_type.name }}

{% if not box_type.boxes.exists %}
{% csrf_token %}
{% endif %}

Width: {{ box_type.width }} mm

Height: {{ box_type.height }} mm

Length: {{ box_type.length }} mm

{{ box_type.boxes.count }} box{{ box_type.boxes.count|pluralize:"es" }}
{% endfor %}

Boxes

{% csrf_token %}

Add New Box

{{ box_form.id }}
{{ box_form.box_type }}
{% for box in boxes %}

{{ box.id }}

{% if not box.things.exists %}
{% csrf_token %}
{% endif %}

Type: {{ box.box_type.name }}

View Contents {{ box.things.count }} thing{{ box.things.count|pluralize }}
{% endfor %}
{% endblock %} {% block extra_js %} {% endblock %}