{% if form %}
<div id="{{ form.config.cssAttributes.id }}"
class="{{ form.config.cssAttributes.class }}">
{% if isInline %}
{# Inject form into other forms #}
{% sw_include "@MoorlForms/plugin/moorl-fb/component/form/form-inline.html.twig" %}
{% elseif isModal %}
{# Open form in a modal #}
{% sw_include "@MoorlForms/plugin/moorl-fb/component/form/form-modal.html.twig" %}
{% else %}
{# Standalone form #}
{% sw_include "@MoorlForms/plugin/moorl-fb/component/form/form.html.twig" %}
{% endif %}
</div>
{% else %}
{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
type: 'info',
content: 'moorl-fb.formDisabled'|trans|sw_sanitize
} %}
{% endif %}