{% load static %}
{% load i18n %}
{% load utils_extra %}
{% spaceless %}
  <div class="related-widget-wrapper">
    <div class="dynamic-array-widget">
      <ul>
        {% for subwidget in widget.subwidgets %}
          <li {% if widget.is_none %}data-isNone="true"{% endif %}
              class="array-item">
            {% with widget=subwidget %}
              {% include widget.template_name %}
            {% endwith %}
            <div class="remove">
              <div class="inline-deletelink">{% picto_from_name "x-circle" %}</div>
            </div>
          </li>
        {% endfor %}
      </ul>
      <div>
        <input type="button"
               class="add-array-item"
               value="Ajouter une autre étiquette">
      </div>
    </div>
  </div>
{% endspaceless %}
