custom/static-plugins/NdVoorwindenTheme/src/Resources/views/storefront/element/cms-element-form.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/element/cms-element-form.html.twig' %}
  2. {% block element_form %}
  3.     {% set config = element.fieldConfig.elements %}
  4.     <div class="cms-element-{{ element.type }}">
  5.         <div class="row justify-content-center">
  6.             <div class="col-lg-12 ">
  7.                 {% set formViolations = app.request.get('errors') %}
  8.                 <div class="card lg:theme-grid">
  9.                     <div class="card-body boxed-layout w-full lg:col-start-2 lg:col-span-10">
  10.                         {% block element_form_wrapper %}
  11.                             {% if element.config.type.value is same as('contact') %}
  12.                                 {% block element_form_contact_form_title %}
  13.                                     <div class="card-title mb-4">
  14.                                         {% if element.config.title.value %}
  15.                                             {{ element.config.title.value }}
  16.                                         {% else %}
  17.                                             {{ "contact.headline"|trans }}
  18.                                         {% endif %}
  19.                                     </div>
  20.                                 {% endblock %}
  21.                                 {% block element_form_contact_form_form %}
  22.                                     {% sw_include '@Storefront/storefront/element/cms-element-form/form-types/contact-form.html.twig'
  23.                                         with {
  24.                                         action: 'frontend.form.contact.send',
  25.                                         submitText: 'contact.formSubmit'
  26.                                     } %}
  27.                                 {% endblock %}
  28.                             {% elseif element.config.type.value is same as('newsletter') %}
  29.                                 {% block element_form_newsletter_form_title %}
  30.                                     <div class="card-title mb-4">
  31.                                         {% if element.config.title.value %}
  32.                                             {{ element.config.title.value }}
  33.                                         {% else %}
  34.                                             {{ "newsletter.headline"|trans }}
  35.                                         {% endif %}
  36.                                     </div>
  37.                                 {% endblock %}
  38.                                 {% block element_form_newsletter_form_form %}
  39.                                     {% sw_include '@Storefront/storefront/element/cms-element-form/form-types/newsletter-form.html.twig'
  40.                                         with {
  41.                                         action: 'frontend.form.newsletter.register.handle',
  42.                                         submitText: 'newsletter.formSubmit'
  43.                                     } %}
  44.                                 {% endblock %}
  45.                             {% endif %}
  46.                         {% endblock %}
  47.                     </div>
  48.                 </div>
  49.             </div>
  50.         </div>
  51.     </div>
  52. {% endblock %}