vendor/lnb/shopware6-lnb-hub-spot-form/src/Resources/views/storefront/hubspot/form.html.twig line 1

Open in your IDE?
  1. {% block lnb_hub_spot_form %}
  2.     <form class="lnb-hubspot-form lnb-hubspot-form-{{ form.guid }}"
  3.           name="lnb-hubspot-form-{{ form.guid }}"
  4.           method="POST"
  5.           action="{{ path("lnb.frontend.hubspot.submission.async", {formId: form.guid}) }}">
  6.         {% block lnb_hub_spot_form_csrf %}
  7.             {{ sw_csrf('lnb.frontend.hubspot.submission.async') }}
  8.         {% endblock %}
  9.         {% for formFieldGroup in form.formFieldGroups %}
  10.             {% if formFieldGroup.fields|length > 0 and formFieldGroup.fields[0].fieldType !== 'hidden' %}
  11.                 <fieldset>
  12.             {% endif %}
  13.             {% for field in formFieldGroup.fields %}
  14.                 {% sw_include '@Storefront/storefront/hubspot/fields/' ~  field.fieldType ~ '.html.twig' ignore missing with {
  15.                     'field': field
  16.                 } %}
  17.             {% endfor %}
  18.             {% if formFieldGroup.fields|length > 0 and formFieldGroup.fields[0].fieldType !== 'hidden' %}
  19.                 </fieldset>
  20.             {% endif %}
  21.         {% endfor %}
  22.         {% block lnb_hub_spot_form_submit %}
  23.             <div class="lnb-hubspot-form__submit">
  24.                 <button class="lnb-hubspot-form__submit-button" type="submit">
  25.                     {{ form.submitText }}
  26.                 </button>
  27.             </div>
  28.         {% endblock %}
  29.     </form>
  30. {% endblock %}