{%- import 'apostrophe-ui:components/buttons.html' as buttons -%} {% set groups = apos.areas.widgetControlGroups(data.widget, data.options) %} {% if groups.length %}
{% for group in groups %}
{% for control in group.controls %} {% if control.type == 'select' %} {% else %} {% set label = control.label or '' %} {% if control.label == '$editLabel' %} {% set label = data.options.editLabel or data.manager.editLabel or 'Edit ' + data.manager.label %} {% endif %} {{ buttons.inGroup(label, control) }} {% endif %} {% endfor %}
{% endfor %}
{% endif %}