{% import "./macros_typography.html.twig" as macrosTypography %}
{% import "./macros_button.html.twig" as macrosButton %}
{# <section class="estimate-steps-section"
section-shade="dark">
<div id="form-wrapp"
class="text-white mt-12 pt-10 md:pt-14 pb-10 md:pb-16 blue-form big-container-mob-zero">
<steps-bar v-model="currentStep"
@click="nextStep"
theme="white"
page="estimate"
:steps="[
{ name: 'Property details' },
{ name: 'Property type' },
{ name: 'Property state' },
{ name: 'Contact info' },
]"></steps-bar>
{% set action_url = '/mail/estimationSend' %}
<div class="bg-white/5 text-white pt-16 px-8 lg:px-20 pb-20 mt-14">
<form action="{{ action_url }}" method="post">
{% for message in app.flashes('error') %}
<div style="color:red;text-align:center;">
{{ message }}
</div>
{% endfor %}
{% if app.flashes('sucess')|length == 0 %}
{{ include('pages/blocks/sub-blocks/estimate-form.html.twig', {
path : path('mail_send'),
snippets : content.snippets,
method : 'POST',
}) }}
{% else %}
<div class='text-center' style="margin-top: 60px;">
{% if content.snippets %}
{{content.snippets[0].submition_message|raw}}
{% endif %}
</div>
{% endif %}
</form>
</div>
</div>
</section> #}
{% set currentLocale = app.request.locale %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.6/iframeResizer.min.js"></script>
<script>
function initResizer() {
iFrameResize({
heightCalculationMethod: 'documentElementOffset',
onScroll: (
{x, y}
) => { // prevent default behavior
window.scrollTo({top: y, left: x, behavior: 'smooth'})
return false;
}
}, '#valuationFrame');
}
</script>
<iframe style="min-width: 100%; border:none;" title="valuation" src="https://oakslane.valuation.realadvisor.ch/appraise?language={{currentLocale}}" id="valuationFrame" onload="initResizer()"></iframe>