{% extends "base.html.twig" %}
{% import "./macros_typography.html.twig" as macrosTypography %}
{% import "./macros_button.html.twig" as macrosButton %}
{% set headerColor = 'header-transparent'%}
{% set bodyClass = 'bg-blue' %}
{% block content %}
{% for item in content.blocks %}
{{ include('includes/blocks/' ~ item.type ~ '.html.twig', { content : item, template : template}) }}
{% endfor %}
{% endblock %}
{% block body_end %}
<script>
window.calculatorDefaultState = {
step1: {
address: '',
streetNumber: '',
postalCode: '',
city: '',
},
step2: {
typeOfProperty: '',
typeOfApartment: [],
typeOfHouse: '',
typeOther: '',
numberOfRooms: '',
numberOfBathrooms: '',
parking: '',
images: null,
},
step3: {
livingArea: '',
balconyArea: '',
terasseArea: '',
yearOfConstruction: '',
stateOfProperty: [],
},
step4: {
firstName: '',
lastName: '',
email: '',
tel: '',
}
}
window.requiredFields = {
step1: {
address: true,
streetNumber: true,
postalCode: true,
city: true,
},
step2: {
typeOfProperty: true,
typeOfApartment: false,
typeOfHouse: false,
typeOther: false,
numberOfRooms: false,
numberOfBathrooms: false,
parking: false,
images: false,
},
step3: {
livingArea: true,
balconyArea: true,
terasseArea: true,
yearOfConstruction: true,
stateOfProperty: false,
},
step4: {
firstName: true,
lastName: true,
email: true,
tel: true,
}
}
</script>
{% endblock %}