templates/pages/estimate.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% import "./macros_typography.html.twig" as macrosTypography %}
  3. {% import "./macros_button.html.twig" as macrosButton %}
  4. {% set headerColor = 'header-transparent'%}
  5. {% set bodyClass = 'bg-blue' %}
  6. {% block content %}
  7.           {% for item in content.blocks %}
  8.             {{ include('includes/blocks/' ~ item.type ~ '.html.twig', { content : item, template : template}) }}
  9.           {% endfor %} 
  10. {% endblock %}
  11. {% block body_end %}
  12. <script>
  13. window.calculatorDefaultState = {
  14.   step1: {
  15.     address: '',
  16.     streetNumber: '',
  17.     postalCode: '',
  18.     city: '',
  19.   },
  20.   step2: {
  21.     typeOfProperty: '',
  22.     typeOfApartment: [],
  23.     typeOfHouse: '',
  24.     typeOther: '',
  25.     numberOfRooms: '',
  26.     numberOfBathrooms: '',
  27.     parking: '',
  28.     images: null,
  29.   },
  30.   step3: {
  31.     livingArea: '',
  32.     balconyArea: '',
  33.     terasseArea: '',
  34.     yearOfConstruction: '',
  35.     stateOfProperty: [],
  36.   },
  37.   step4: {
  38.     firstName: '',
  39.     lastName: '',
  40.     email: '',
  41.     tel: '',
  42.   }
  43. }
  44. window.requiredFields = {
  45.   step1: {
  46.     address: true,
  47.     streetNumber: true,
  48.     postalCode: true,
  49.     city: true,
  50.   },
  51.   step2: {
  52.     typeOfProperty: true,
  53.     typeOfApartment: false,
  54.     typeOfHouse: false,
  55.     typeOther: false,
  56.     numberOfRooms: false,
  57.     numberOfBathrooms: false,
  58.     parking: false,
  59.     images: false,
  60.   },
  61.   step3: {
  62.     livingArea: true,
  63.     balconyArea: true,
  64.     terasseArea: true,
  65.     yearOfConstruction: true,
  66.     stateOfProperty: false,
  67.   },
  68.   step4: {
  69.     firstName: true,
  70.     lastName: true,
  71.     email: true,
  72.     tel: true,
  73.   }
  74. }
  75. </script>
  76. {% endblock %}