{% if status == "OK" %}
    {{ form.success_text|raw }}
{% else %}
    <form action="/modules/FormBuilder/ajax.php" method="post" class="formBuilder {{ form.css_class }}" id="{{ form.css_id }}">
        {{ form.info_text|raw }}
        {% for fieldset in form.fieldsets %}
            {{ include('FormBuilder/fieldset.twig') }}
        {% endfor %}

        {{ csrf_token(form.name)|raw }}
        <input type="hidden" name="form_id" value="{{ form.id }}" />
        <input type="hidden" name="action" value="do_form_{{ form.id }}" />
        <button type="submit" name="submit" class="{{ form.button_class }}">
            {{ form.submit_text|default('Submit') }}
        </button>
    </form>
{% endif %}