templates/includes/blocks/estimateStepsSection.html.twig line 1

Open in your IDE?
  1. {% import "./macros_typography.html.twig" as macrosTypography %}
  2. {% import "./macros_button.html.twig" as macrosButton %}
  3. {# <section class="estimate-steps-section"
  4.   section-shade="dark">
  5.   <div id="form-wrapp"
  6.     class="text-white mt-12 pt-10 md:pt-14 pb-10 md:pb-16 blue-form big-container-mob-zero">
  7.     <steps-bar v-model="currentStep"
  8.       @click="nextStep"
  9.       theme="white"
  10.       page="estimate"
  11.       :steps="[
  12.         { name: 'Property details' },
  13.         { name: 'Property type' },
  14.         { name: 'Property state' },
  15.         { name: 'Contact info' },
  16.       ]"></steps-bar>
  17.     {% set action_url = '/mail/estimationSend' %}
  18.     <div class="bg-white/5 text-white pt-16 px-8 lg:px-20 pb-20 mt-14">
  19.       <form action="{{ action_url }}" method="post">
  20.                         {% for message in app.flashes('error') %}
  21.                             <div style="color:red;text-align:center;">
  22.                                 {{ message }}
  23.                             </div>
  24.                         {% endfor %}
  25.                         {% if app.flashes('sucess')|length == 0 %}
  26.                             {{ include('pages/blocks/sub-blocks/estimate-form.html.twig', {
  27.  
  28.                                 path : path('mail_send'),
  29.                                 snippets : content.snippets,
  30.                                 method : 'POST',
  31.                             }) }}
  32.                         {% else %}
  33.                             <div class='text-center'  style="margin-top: 60px;">
  34.                                 {% if content.snippets %}
  35.                                     {{content.snippets[0].submition_message|raw}}
  36.                                 {% endif %}
  37.                             </div>
  38.                         {% endif %}
  39.         </form>
  40.     </div>
  41.   </div>
  42. </section> #}
  43. {% set currentLocale = app.request.locale %}
  44. <script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.6/iframeResizer.min.js"></script>
  45. <script>
  46.     function initResizer() {
  47. iFrameResize({
  48. heightCalculationMethod: 'documentElementOffset',
  49. onScroll: (
  50. {x, y}
  51. ) => { // prevent default behavior
  52. window.scrollTo({top: y, left: x, behavior: 'smooth'})
  53. return false;
  54. }
  55. }, '#valuationFrame');
  56. }
  57. </script>
  58. <iframe style="min-width: 100%; border:none;" title="valuation" src="https://oakslane.valuation.realadvisor.ch/appraise?language={{currentLocale}}" id="valuationFrame" onload="initResizer()"></iframe>