{% extends 'HitsoCommonBundle::layout.html.twig' %}
{% form_theme form '@HitsoCommon/Common/form_fields.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('juki/source/css/contact-critical.css') }}">
<link rel="preload" as="style" href="{{ preload(asset('juki/source/css/contact-critical.css')) }}">
<link rel="preload" href="{{ preload(asset('juki/source/css/contact.css')) }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
{% endblock %}
{% block body_class %}{{ parent() }} page--contact{% endblock %}
{% block content %}
<main class="main">
<div class="contact">
{% include 'HitsoTicketsBundle:Front/Common:info.html.twig' %}
{% include 'HitsoTicketsBundle:Front/Common:map.html.twig' %}
<!-- form -->
<section class="contact__form" id="contact_form">
<h2 class="section-title section-title--h1 text-center">
Stay in touch!
</h2>
<p class="section-lead text-center">
We are here for you, just ask
</p>
{{ form_start(form, {'attr': {"v-cloak": 1,'class': 'contact__form-form','id': 'contactForm'}}) }}
<div class="field" :class="{'field--error' : errors.firstName}">
{{ form_label(form.authorFirstName) }}
{{ form_row(form.authorFirstName) }}
<span class="field-msg" v-if="errors.firstName">${ errors.firstName }{{ form_errors(form.authorFirstName) }}</span>
</div>
<div class="field" :class="{'field--error' : errors.lastName}">
{{ form_label(form.authorLastName) }}
{{ form_row(form.authorLastName) }}
<span class="field-msg" v-if="errors.lastName">${ errors.lastName }{{ form_errors(form.authorLastName) }}</span>
</div>
<div class="field" :class="{'field--error' : errors.email}">
{{ form_label(form.authorEmail) }}
{{ form_row(form.authorEmail) }}
<span class="field-msg" v-if="errors.email">${ errors.email }{{ form_errors(form.authorEmail) }}</span>
</div>
<div class="field" :class="{'field--error' : errors.name}">
{{ form_label(form.name) }}
{{ form_row(form.name) }}
<span class="field-msg" v-if="errors.name">${ errors.name }{{ form_errors(form.name) }}</span>
</div>
<div class="field" :class="{'field--error' : errors.content}">
{{ form_label(form.content) }}
{{ form_row(form.content) }}
<span class="field-msg" v-if="errors.content">${ errors.content }{{ form_errors(form.content) }}</span>
</div>
<button class="contact__form-submit btn btn--secondary" :class="{'btn--loading' : isSending}" @click.prevent="send">Send message</button>
{{ form_end(form) }}
</section>
</div>
</main>
{% endblock %}
{% block footer_javascripts %}
<script src="{{ asset('juki/source/js/contact.js') }}" defer></script>
{% endblock %}