{% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
{{ wrap_macro.wrapperOpen( partConfig.wrapper, _context) }}
{% for button in partConfig.buttons %}
<{{ button.tag|default('button') }} class="{{ button.class|default('') }}"
{% if button.attr is defined %}
{% for attrTag,attrValue in button.attr %}
{% if attrValue is same as (true) %} {{attrTag}}
{% elseif attrValue %} {{attrTag}}="{{ attrValue }}"
{% endif %}
{% endfor %}
{% endif %}
>
{% if button.content|default(false) %}{{ button.content }}{% endif %}
</{{ button.tag|default('button') }}>
{% endfor %}
{{ wrap_macro.wrapperClose( partConfig.wrapper, _context) }}