templates/default/contact.html.twig line 1
{% extends 'base.html.twig' %}
{% trans_default_domain "default" %}
{% block title %}{% trans %}Contact{% endtrans %}{% endblock %}
{% block pageTitle %}{% trans %}Contact{% endtrans %}{% endblock %}
{% block body %}
<style>
#phoneBox {
background: transparent url(../images/contact/phone_contact.png) no-repeat 0 0;
width: 272px;
height: 92px;
padding: 27px 20px 3px 20px;
font-family: Verdana;
font-size: 12px;
color: #4C4E66;
text-align: center;
}
#contactColumn {
background: transparent url(../images/contact/speaky.jpg) no-repeat 56px 0;
width: 290px;
padding: 130px 0 0 0;
}
</style>
<script type="text/javascript">
<!--
$(document).ready(function() {
{% if subscribedUser %}
$('#form_reason').change(function () {
var index = this.selectedIndex;
console.log('test');
console.log(index);
$('#contactForm #ctnReason').hide();
if(index == 4){
$('#form_message').hide();
$( "label[for='form_message']" ).hide();
$('#form_message').val('unsubscribe');
}else{
$('#form_message').show();
$( "label[for='form_message']" ).show();
$('#form_message').val('');
}
return false;
});
{% endif %}
$('#contactForm #form_categorie, #contactForm #form_type, #contactForm #form_reason').change();
});
-->
</script>
<div class="row justify-content-between px-3">
<div class="col-xl-5 col-lg-6 col-md-7">
{{ form(form, {'translation_domain': 'default'}) }}
</div>
{% if app.request.getLocale() == 'fr' %}
<div class="col-xl-5 col-lg-6 col-md-7" id="contactColumn" >
<div id="phoneBox">
{% trans %}Appelez-nous au 02 41 73 91 06{% endtrans %}<br/>
{% trans %}du lundi au vendredi de 9h à 17h.{% endtrans %}
</div>
</div>
{% endif %}
</div>
{% endblock %}