{% extends 'layout.html.twig' %} {% set breadcrumb = buildBreadcrumb([ {'route': 'app_tools_index', 'trans': 'menu.tools'}, {'route': 'app_tools_index', 'trans': 'menu.inventories'}, ], null, 'breadcrumb.add_inventory') %} {% block title %} {{ renderTitle(breadcrumb) }} {% endblock %} {% block breadcrumb %} {{ renderBreadcrumb(breadcrumb) }} {% endblock %} {% macro recursiveCollection(collection) %} {% import _self as self %}
  • {% if collection.children|length %} {% endif %}
  • {% endmacro %} {% from _self import recursiveCollection %} {% block content %}

    {{ 'title.add_inventory'|trans }}

    {{ form_start(form) }}

    {{ 'title.infos'|trans }}

    {{ form_row(form.name, {'label' : 'label.name'}) }}

    {{ 'title.collections'|trans }}

    • {% for collection in collections|filter(collection => collection.parent == null) %}
        {{ recursiveCollection(collection) }}
      {% endfor %}
    {{ 'btn.cancel'|trans }}
    {{ form_end(form) }}
    {% endblock %}