{% extends "helfertool/admin.html" %} {% load i18n %} {% load bootstrap4 %} {% load inventory %} {% block admincontent %}

{% trans "Inventory" %}

{% regroup used_items by item as item_groups %} {# TODO: sort by item #} {% for group in item_groups %} {% endfor %}
{% trans "Item" %} {% trans "Status and log" %}
{{ group.grouper.name }} {% active_uses group.list as num_uses %} {% if num_uses == 0 %} {% trans "Not in use" %} {% elif group.grouper.inventory.multiple_assignments %} {% blocktrans trimmed %} {{ num_uses }} times in use {% endblocktrans %} {% else %} {% with group.list|last as last %} {% blocktrans trimmed with helper=last.helper%} In use: {{ helper }} {% endblocktrans %} {% endwith %} {% endif %}
{% trans "Show log" %}
    {% for use in group.list|dictsort:"timestamp" %}
  • {% if use.timestamp_returned %} {{ use.helper }}
    {{ use.timestamp|date:"SHORT_DATETIME_FORMAT" }} {% trans "to" %} {{ use.timestamp_returned|date:"SHORT_DATETIME_FORMAT" }} {% else %} {{ use.helper }}
    {% trans "Since" %} {{ use.timestamp|date:"SHORT_DATETIME_FORMAT" }}
    {% endif %}
  • {% endfor %}
{% endblock %}