vendor/store.shopware.com/moorlformbuilder/src/Resources/views/plugin/moorl-form-builder/component/form-wrapper.html.twig line 1

Open in your IDE?
  1. <input type="hidden" name="_form_id" value="{{ form.id }}">
  2. {# Reload after firing form #}
  3. {% if reloadPage %}
  4.     <input type="hidden" name="_reload" value="1">
  5. {% endif %}
  6. {# Stylesheet #}
  7. {% if form.useSassCompiler and form.stylesheet %}
  8.     <style type="text/css">{{ form.getStylesheet() }}</style>
  9. {% elseif form.stylesheet %}
  10.     <style type="text/css">{% include(template_from_string(form.getStylesheet())) %}</style>
  11. {% endif %}
  12. <div id="form-{{ form.id }}">
  13.     {% if form.bootstrapGrid %}
  14.         <div class="{{ form.bootstrapRow }}">
  15.             {% sw_include "@MoorlFormBuilder/plugin/moorl-form-builder/component/form-content.html.twig" %}
  16.         </div>
  17.     {% else %}
  18.         {% sw_include "@MoorlFormBuilder/plugin/moorl-form-builder/component/form-content.html.twig" %}
  19.     {% endif %}
  20.     {% if form.insertNewsletter %}
  21.         <div class="form-group">
  22.             <div class="custom-control custom-checkbox">
  23.                 <input type="checkbox"
  24.                        class="custom-control-input"
  25.                        name="_insert_newsletter"
  26.                        value="1"
  27.                        id="insert_newsletter-{{ form.id }}">
  28.                 <label class="custom-control-label" for="insert_newsletter-{{ form.id }}">
  29.                     {{ 'moorl-form-builder.general.insertNewsletter'|trans|raw }}
  30.                 </label>
  31.             </div>
  32.         </div>
  33.     {% endif %}
  34.     {% if form.sendCopyType != 'disabled' and form.sendCopyType != 'always' %}
  35.         <div class="form-group">
  36.             <div class="custom-control custom-checkbox">
  37.                 <input type="checkbox"
  38.                        class="custom-control-input"
  39.                        name="_send_copy"
  40.                        value="1"
  41.                        id="send_copy-{{ form.id }}"
  42.                        {% if form.sendCopyType == 'optionalChecked' %}checked{% endif %}>
  43.                 <label class="custom-control-label" for="send_copy-{{ form.id }}">
  44.                     {{ 'moorl-form-builder.general.sendCopy'|trans }}
  45.                 </label>
  46.             </div>
  47.         </div>
  48.     {% endif %}
  49.     {% if form.privacy %}
  50.         <div class="form-group">
  51.             <div class="custom-control custom-checkbox">
  52.                 <input type="checkbox"
  53.                        class="custom-control-input"
  54.                        name="_accept_privacy"
  55.                        value="1"
  56.                        id="accept_privacy-{{ form.id }}"
  57.                        required>
  58.                 <label class="custom-control-label" for="accept_privacy-{{ form.id }}">
  59.                     {% block form_privacy_label %}
  60.                         {{ "general.privacyNotice"|trans({
  61.                             '%url%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') }),
  62.                             '%privacyUrl%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') }),
  63.                             '%tosUrl%': path('frontend.cms.page', { id: config('core.basicInformation.tosPage')} )
  64.                         })|raw }} *
  65.                     {% endblock %}
  66.                 </label>
  67.             </div>
  68.         </div>
  69.     {% endif %}
  70.     {% if form.useCaptcha %}
  71.         {% set formId = form.id %}
  72.         {% sw_include '@Storefront/storefront/component/captcha/base.html.twig' %}
  73.     {% endif %}
  74. </div>
  75. <div class="moorl-form-builder-feedback"></div>