{% extends 'base.html.twig' %}
{% set messages = app.flashes('messages') %}
{% block page_contents %}
<section class="section section-page-title bg-gradient py-xl-5 py-4" data-aos='fade-down'>
<div class="container">
<div class="row">
<div class="col-12 text-center text-white">
<h1 class="page-name font-weight-bold my-2">{% trans %}Contactez-nous{% endtrans %}</h1>
</div>
</div>
</div>
</section>
<section class="section section-form section-form-2 mb-4 mt-4" data-aos='fade-up'>
<form action="{{ path('contact_page') }}" method="POST">
<div class="container">
<div class="row">
<div class="col-xl-10 mx-auto">
<div class="row">
<div class="col-12 mb-3 text-dark-purple">
{% trans %}Remplissez le formulaire ci-dessous et nous reviendrons rapidement vers vous :{% endtrans %}
</div>
<div class="col-lg-3 col-md-6">
<div class="form-group">
<input type="text" class="form-control" name="lastName" placeholder="{% trans %}Nom*{% endtrans %}" required>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="form-group">
<input type="text" class="form-control" name="firstName" placeholder="{% trans %}Prénom*{% endtrans %}" required>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="form-group">
<input type="text" class="form-control" name="telephone" placeholder="{% trans %}Téléphone*{% endtrans %}" required>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="form-group">
<input type="text" class="form-control" name="email" placeholder="{% trans %}Email*{% endtrans %}" required>
</div>
</div>
<div class="col-12 mb-3">
<div class="form-group">
<div class="font-weight-bold text-dark-purple mb-3">{% trans %}Service à contacter{% endtrans %} <span class="text-orange">*</span></div>
<div class="form-check mx-0 px-0 mb-2">
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="service-1" name="service" value="1" required>
<label class="custom-control-label text-dark-purple font-weight-normal" for="service-1">{% trans %}Référent handicap{% endtrans %}</label>
</div>
</div>
<div class="form-check mx-0 px-0 mb-2">
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="service-2" name="service" value="2" required>
<label class="custom-control-label text-dark-purple font-weight-normal" for="service-2">{% trans %}Référent diversité et Qualité de Vie (difficulté sociale ou matérielle, prévention des discriminations et du harcèlement...){% endtrans %}</label>
</div>
</div>
<div class="form-check mx-0 px-0 mb-2">
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="service-3" name="service" value="3" required>
<label class="custom-control-label text-dark-purple font-weight-normal" for="service-3">{% trans %}Une question sur l'école ou l'inscription à l'ÉSTIAM, demande de visa{% endtrans %}</label>
</div>
</div>
<div class="form-check mx-0 px-0 mb-2">
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="service-4" name="service" value="4" required>
<label class="custom-control-label text-dark-purple font-weight-normal" for="service-4">{% trans %}Accompagnement des étudiants vis à vis des entreprises{% endtrans %}</label>
</div>
</div>
<div class="form-check mx-0 px-0 mb-2">
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="service-5" name="service" value="5" required>
<label class="custom-control-label text-dark-purple font-weight-normal" for="service-5">{% trans %}Vous souhaitez enseigner chez ÉSTIAM ?{% endtrans %} {% trans %}Déposez votre candidature{% endtrans %} <a href="{{ path('recruitmemt.index')}}" target="_blank" style="color:blue">ici</a>.</label>
</div>
</div>
<div class="form-check mx-0 px-0 mb-2">
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="service-other" name="service" value="other" required>
<label class="custom-control-label text-dark-purple font-weight-normal" for="service-other">{% trans %}Autres demandes{% endtrans %}</label>
</div>
</div>
</div>
<div class="service-other" style="display: none;">
<div class="form-header text-dark-purple mb-3">{% trans %}Pour contacter un campus ÉSTIAM, il suffit de sélectionner dans le formulaire suivant la ville qui vous intéresse et de lui adresser le message que vous souhaitez{% endtrans %}.</div>
<div class="form-group row list-campus-checkbox">
{% for campus in campuses %}
<div class="col-xl col-lg col-md-3 col-sm-4 col-6">
<div class="form-check mx-0 px-0 mb-2">
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="campuses-{{ campus.id }}" name="campus" value="{{ campus.id }}">
<label class="custom-control-label text-dark-purple font-weight-normal text-nowrap" for="campuses-{{ campus.id }}">{{ campus.name }}</label>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
<div class="form-group">
<input type="text" class="form-control" name="subject" placeholder="{% trans %}Objet*{% endtrans %}" required>
</div>
<div class="form-group">
<textarea class="form-control" name="message" placeholder="{% trans %}Votre message*{% endtrans %}" required></textarea>
</div>
{% if captcha_enabled %}
<div class="captcha-row mb-4 d-flex justify-content-center">
<div class="g-recaptcha animate__animated" data-sitekey="{{captcha_key}}"></div>
</div>
{% endif %}
<div class="notification-error mb-4 text-center text-danger font-weight-bold" style="display: none;"></div>
<div class="text-center form-submit">
<button type="submit" id="btn-submit" class="link-gradient"><span>{% trans %}Envoyer votre message{% endtrans %}</span><i class="far fa-arrow-right"></i></button>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</section>
<div class="modal fade" id="thankYouModal" tabindex="-1" role="dialog" aria-labelledby="thankYouModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<a href="{{ path('home') }}">
<img src="{{ asset('assets/images/logo.svg') }}" alt="Estiam France">
</a>
</div>
<div class="modal-body">
<div class="text-center mb-4">
{% trans %}Merci pour votre message. Il a été envoyé au service concerné. Nous allons vous répondre dès que possible.{% endtrans %}
</div>
<div class="text-center">
<a href="{{ path('home') }}"><button type="button" class="common-btn">{% trans %}Fermer{% endtrans %}</button></a>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block custom_javascripts %}
<script type="text/javascript">
$(document).ready(function(){
$("[name='service']").click(function() {
var radio = $(this).attr('id');
if(radio == 'service-other') {
$(".service-other").show();
} else {
$(".service-other").hide();
}
});
{% if messages %}
$('#thankYouModal').modal();
{% endif %}
});
</script>
{% endblock %}