{##} {% set standardLayout = "noIntBorder" not in form.getClass and "form-small" not in form.getClass and "blank" not in form.getClass %} {% set smallLayout = "form-small" in form.getClass %} {% set useSections = "noIntBorder" not in form.getClass and "blank" not in form.getClass %} {% set useSaveWarning = "noIntBorder" not in form.getClass and "disable-warnings" not in form.getClass %} {% if quickSave and form.getAction %}
{{ __('Saving') }} ...
{% elseif 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 %} {% if form.getRows|length > 0 %}
{% for section, rows in form.getRowsByHeading %} {% set sectionLoop = loop %} {% if useSections %}
{% endif %} {% set isformTable = ((rows|first).getElements|first).isInstanceOf('Gibbon\\Forms\\Layout\\Table') %} {% for num, row in rows %} {% set rowLoop = loop %} {% set rowClass = section == 'submit' ? 'flex flex-row content-center p-0 gap-2 sm:gap-4 justify-end sm:items-center' : 'flex flex-col sm:flex-row content-center p-0 gap-2 sm:gap-4 justify-between sm:items-start' %}
{% if quickSave and section == 'submit' %} {{ __('Press {shortcut} to {action}', {shortcut: '⌘ Cmd + S', action: __('quick save')} )|raw }} {% endif %} {% if "draggableRow" in row.getClass %}
{% endif %} {% for element in row.getElements %} {% if element.isInstanceOf('Gibbon\\Forms\\Layout\\Heading') %} {% set class = 'flex-grow justify-center' %} {% elseif element.isInstanceOf('Gibbon\\Forms\\Layout\\Label') %} {% set class = 'sm:w-2/5 flex flex-col justify-center sm:mb-0' %} {% elseif element.isInstanceOf('Gibbon\\Forms\\Layout\\Column') %} {% set class = loop.last and loop.length == 2 ? 'flex-1 relative flex justify-end items-center' : '' %} {% elseif loop.last and (loop.length == 2 or "noIntBorder" in form.getClass) %} {% set class = 'flex-1 relative flex justify-end items-center' %} {% else %} {% set class = '' %} {% endif %} {% set hasClass = element.instanceOf('Gibbon\\Forms\\Layout\\Element') or element.instanceOf('Gibbon\\Forms\\Layout\\Row') %} {% set class = hasClass ? class ~ ' ' ~ element.getClass : class %}
{% if useSaveWarning and element.getAttribute('id') == 'Submit' %} {{ __('Unsaved Changes') }} {% endif %} {% if element.getAttribute('id') == 'Submit' %} {{ __('Please Check Form') }} {% endif %} {{ element.getOutput|raw }}
{% endfor %}
{% endfor %} {% if useSections %}
{% endif %} {% endfor %}
{% if form.hasMeta and form.getMeta.getElementCount > 0 %} {% endif %}
{% endif %} {% if postScript %}

{{ postScript|raw }}

{% endif %} {% if form.getAction != 'ajax' %}
{% endif %}