{% macro scopes_tree_collapse(scopes, state='') -%} {% endmacro %} {% macro scopes_tree_collapse_level(scopes, parent_id, state) -%} {% for scope in scopes %} {% endfor %} {% endmacro %} {% macro selected_clients() -%}

{{_('Selected clients')}}

{% endmacro %} {% macro cmd_selected_clients(selected_clients) -%}
{% set max_clients = 50 %} {% for name_id, ip in selected_clients[:max_clients] %}
{{ name_id }}
{{ ip }}
{% if loop.last and (selected_clients|length > max_clients) %}
...
{% endif %} {% endfor %}
{% endmacro %}