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

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