{% macro aposButton(name, label, icon) %} {%- if icon -%} {% else %} {{ label }} {% endif %} {% endmacro %} {% macro aposMenu(name, label, choices) %}
{{ label }}
{% endmacro %} {% macro aposWidgetButton(name, label, icon) %} {%- if icon -%} {% else %} {{ label }} {% endif %} {% endmacro %} {% if standalone %}
{% endif %}
{%- for control in controls -%} {%- set controlType = controlTypes[control] -%} {%- if controlType -%} {%- if controlType.type == 'button' -%} {{ aposButton(control, controlType.label, controlType.icon) }} {%- endif -%} {%- if controlType.type == 'menu' -%} {{ aposMenu(control, controlType.label, controlType.choices) }} {%- endif -%} {%- endif -%} {%- if itemTypes[control] and itemTypes[control].widget -%} {{ aposWidgetButton(control, itemTypes[control].label, itemTypes[control].icon) }} {%- endif -%} {% endfor %}
{{ aposAreaContent(items, { editView: true }) }}
{% if standalone %}
{% endif %}