{##} {% if form.getAction != 'ajax' %}
{% endif %} {% if form.hasPages %} {% endif %} {% if form.getTitle and not form.getHeader %}

{{ form.getTitle }}

{% endif %} {% if form.getDescription %}

{{ form.getDescription|raw }}

{% endif %} {% if introduction %}

{{ introduction|raw }}

{% endif %} {% block header %}
{% if form.getHeader %}

{{ form.getTitle }}

{% for action in form.getHeader %} {{ action.getOutput|raw }} {% endfor %}
{% endif %}
{% endblock header %} {% for values in form.getHiddenValues %} {% endfor %} {% set renderStyle = "standardForm" in form.getClass or "noIntBorder" in form.getClass and "blank" not in form.getClass ? 'flex' : 'table' %} {% if form.getRows|length > 0 %}
{% for section, rows in form.getRowsByHeading %} {% set sectionLoop = loop %} {% for num, row in rows %} {% set rowLoop = loop %} {% if true or renderStyle == 'flex' %} {% set rowClass = 'flex flex-col sm:flex-row justify-between sm:items-center content-center p-0' %} {% endif %} {% set firstElement = (row.getElements|first) %} {% if firstElement.isInstanceOf('Gibbon\\Forms\\Layout\\Heading') and firstElement.getTag == 'h3' %} {% set rowClass = "blank" not in form.getClass ? rowClass ~ ' bg-gray-300' : rowClass ~ ' my-2' %} {% endif %}
{% if "draggableRow" in row.getClass %}
{% endif %} {% for element in row.getElements %} {% set colspan = loop.last and loop.length < totalColumns ? (totalColumns + 1 - loop.length) : 0 %} {% if element.isInstanceOf('Gibbon\\Forms\\Layout\\Heading') %} {% set class = 'flex-grow justify-center' %} {% elseif element.isInstanceOf('Gibbon\\Forms\\Layout\\Label') %} {% set class = 'flex flex-col flex-grow justify-center -mb-1 sm:mb-0' %} {% elseif element.isInstanceOf('Gibbon\\Forms\\Layout\\Column') %} {% set class = loop.last and loop.length == 2 ? 'w-full max-w-full sm:max-w-sm flex justify-end' : 'w-full ' %} {% elseif loop.last and loop.length == 2 and renderStyle == 'flex' %} {% set class = 'w-full max-w-full sm:max-w-sm flex justify-end items-center' %} {% else %} {% set class = loop.last and loop.length > 2 ? '' : 'flex-1' %} {% endif %} {% if renderStyle == 'table' and element.isInstanceOf('Gibbon\\Forms\\Layout\\Label') %} {% set class = class ~ " lg:w-2/5" %} {% endif %} {% if "standardForm" in form.getClass %} {% set class = class ~ " px-4 py-4" %} {% elseif "blank" not in form.getClass %} {% set class = class ~ " px-3 py-2" %} {% endif %} {% set hasClass = element.instanceOf('Gibbon\\Forms\\Layout\\Element') or element.instanceOf('Gibbon\\Forms\\Layout\\Row') %}
{{ element.getOutput|replace({'standardWidth': renderStyle == 'flex' ? 'w-full' : '' })|raw }} {% if element.instanceOf('Gibbon\\Forms\\ValidatableInterface') %} {% endif %}
{% endfor %}
{% endfor %} {% endfor %}
{% endif %} {% if postScript %}

{{ postScript|raw }}

{% endif %} {% if form.getAction %}
{% endif %}