templates/themes/theme/enquiry/enquiry.html.twig line 1

Open in your IDE?
  1. <section class="green-img mb-12">
  2. <div class="container">
  3. <div class="row">
  4. <div class="xl:col-8 lg:col-7 flex flex-col justify-between">
  5. <div class="mb-8 lg:mb-0 lg:mt-24">
  6. {{ forceRenderHtmlBlock('Form Text')|raw }}
  7. </div>
  8. <div>
  9. <h3>Trusted by</h3>
  10. {{ render(controller('App\\Controller\\LogosDefaultController::slider')) }}
  11. </div>
  12. </div>
  13. <div class="xl:col-4 lg:col-5 mt-8 lg:mt-0">
  14. <div class="bg-primary rounded-3xl p-8 shadowed">
  15. {% if error %}
  16. <p class="error-message !mb-6">{{errorMessage}}</p>
  17. {% endif %}
  18. {% if success %}
  19. <p class="success-message !mb-6">Thank you for your enquiry.</p>
  20. {% else %}
  21. <form method="post" id="enquiry_form">
  22. {{ form_widget(form) }}
  23. <button type="submit" class="btn btn-form g-recaptcha mb-8" data-sitekey="{{ recaptcha_key }}" data-callback='onSubmit'>Send</button>
  24. <p class="text-sm">By submitting your details, you agree for one of our team to contact you.</p>
  25. {{ form_end(form) }}
  26. {% endif %}
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </section>
  32. <script src="https://www.google.com/recaptcha/enterprise.js?render={{ recaptcha_key }}"></script>
  33. <script>
  34. function onSubmit(token) {
  35. document.getElementById("enquiry_form").submit();
  36. }
  37. </script>