{% extends 'layout.html.twig' %} {% set breadcrumb = buildBreadcrumb([ {'route': 'app_tools_index', 'trans': 'menu.tools'}, {'route': 'app_tools_index', 'trans': 'menu.inventories'} ], inventory) %} {% block title %} {{ renderTitle(breadcrumb) }} {% endblock %} {% block breadcrumb %} {{ renderBreadcrumb(breadcrumb) }} {% endblock %} {% macro recursiveCollection(collection) %} {% import _self as self %}
  • {{ collection.title }} - {{ collection.totalCheckedItems }} / {{ collection.totalItems }} ({{ ((collection.totalCheckedItems*100)/collection.totalItems)|round(2) }}%)
    {% if collection.children|length %} {% endif %} {% if collection.items|length %} {% endif %}
  • {% endmacro %} {% from _self import recursiveCollection %} {% block content %}

    {{ inventory.name }}

    {{ include('App/Inventory/_nav_pills.html.twig', {'inventory': inventory}) }}

    {{ 'title.collections'|trans }}

    • {% for collection in inventory.contentAsArray %}
        {{ recursiveCollection(collection) }}
      {% endfor %}
    {% endblock %} {% block modals %} {% if context == 'default' %} {{ include('App/_partials/_modal/_delete.html.twig', {'id': 'delete', 'route': url('app_inventory_delete', {id: inventory.id}), transKey: 'message.delete.inventory'}) }} {% endif %} {% endblock %}