custom/plugins/MoorlForms/src/Resources/views/plugin/moorl-fb/component/form/index.html.twig line 1

Open in your IDE?
  1. {% if form %}
  2.     <div id="{{ form.config.cssAttributes.id }}"
  3.          class="{{ form.config.cssAttributes.class }}">
  4.         {% if isInline %}
  5.             {# Inject form into other forms #}
  6.             {% sw_include "@MoorlForms/plugin/moorl-fb/component/form/form-inline.html.twig" %}
  7.         {% elseif isModal %}
  8.             {# Open form in a modal #}
  9.             {% sw_include "@MoorlForms/plugin/moorl-fb/component/form/form-modal.html.twig" %}
  10.         {% else %}
  11.             {# Standalone form #}
  12.             {% sw_include "@MoorlForms/plugin/moorl-fb/component/form/form.html.twig" %}
  13.         {% endif %}
  14.     </div>
  15. {% else %}
  16.     {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  17.         type: 'info',
  18.         content: 'moorl-fb.formDisabled'|trans|sw_sanitize
  19.     } %}
  20. {% endif %}