{% if form is null %} {% set form = grav.session.getFlashObject('form') %} {% endif %} {% include 'partials/form-messages.html.twig' %} {% set scope = scope ?: 'data.' %} {% set multipart = '' %} {% set method = form.method|upper|default('POST') %} {% set client_side_validation = form.client_side_validation is not null ? form.client_side_validation : config.plugins.form.client_side_validation|default(true) %} {% set inline_errors = form.inline_errors is not null ? form.inline_errors : config.plugins.form.inline_errors(false) %} {% for field in form.fields %} {% if (method == 'POST' and field.type == 'file') %} {% set multipart = ' enctype="multipart/form-data"' %} {% endif %} {% endfor %} {% set action = form.action ? base_url ~ form.action : base_url ~ page.route ~ uri.params %} {% if (action == base_url_relative) %} {% set action = base_url_relative ~ '/' ~ page.slug %} {% endif %}
{% if config.forms.dropzone.enabled %} {% endif %}