{% extends default ? "partials/field.html.twig" : 'forms/' ~ layout|default('field') ~ '.html.twig' %} {%- macro pend(item) %} {% if item.type == "text" %} {{ item.text|e }} {% elseif item.type == "list" %} {% if item.options %} {% include 'forms/fields/select/selectize.html.twig' with {'field.options': item.options} %} {% endif %} {% elseif item.type == "button" %} {% include 'forms/fields/button' %} {% elseif item.type == "actions" %} {% endif %} {% endmacro -%} {%- import _self as macro %} {% block group %}
{% if field.prepend %} {{- macro.pend(field.prepend) -}} {% endif -%} {%- block input -%} {%- endblock -%} {% if field.append %} {{- macro.pend(field.append) -}} {% endif -%} {% block reset_field %}{{ parent() }}{% endblock %}
{% endblock %}