{% macro list_sortable(data, array_url) %} {% import _self as macros %} {% for row in data %} {% if row.section is defined %}
  • change_parent _url#} data-cpurl= "{{ array_url.cpurl }}" {# vurl => view_parent _url#} data-vurl= "{{ array_url.vurl|replace({'__itemId__': row.section.id }) }}" {# turl => toggle_parent _url#} data-turl= "{{ array_url.turl|replace({'__itemId__': row.section.id }) }}" >
    {{ row.section }} {# {{ row.section.code|upper }} - {{ row.section.libelle }}#}
    {% if row.children is defined and row.children|length > 0 %} {% endif %}
  • {% endif %} {% endfor %} {% endmacro %} {% macro create_sortable_list(tree, array_url, array_trad) %}
    {% for row in tree %}
    • {{ row.section.code }} - {{ row.section.libelle }}
      {% if row.children|length > 0 %}
        {{ _self.list_sortable(row.children, array_url) }}
      {% endif %}
    {% endfor %}

    {{ 'section.edit.title'|trans }}

    {# Modal Disable / Enable #}
    {{ array_trad.item_title_disable }}
    {{ array_trad.item_body_disable }}
    {{ array_trad.item_title_disable_confirm }}
    {% endmacro %} {% macro child_sortable(data) %} {% import _self as macros %} {% for row in data %} {% if row.section is defined %}
  • 0 %} class="sortableListsOpen"{% endif %}>
    {{ row.section }} {# {{ row.section.code|upper }} - {{ row.section.libelle }}#}
    {% if row.children is defined and row.children|length > 0 %} {% endif %}
  • {% endif %} {% endfor %} {% endmacro %} {% macro child_sortable_articleFamille(data) %} {% import _self as macros %} {% for row in data %} {% if row.famille is defined %}
  • 0 %} class="sortableListsOpen"{% endif %}>
    {{ row.famille.code }} - {{ row.famille.libelle }}
    {% if row.children is defined and row.children|length > 0 %} {% endif %}
  • {% endif %} {% endfor %} {% endmacro %}