{# Used to pass value of heading to both current page and to included nav for responsive needs #}
{% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %}
{% set heading %}
{% block heading %}{% endblock %}
{% endset %}
<!DOCTYPE html>
<html lang="fr">
<head>
<title>
{% block title %}Libérez-vous des contraintes et simplifiez vous les démarches
{% endblock %}
- Riposte Système
</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description"
content="Libérez-vous des contraintes et simplifiez vous les démarches. Nous vous assistons pour tout régler en quelques clics, sans vous déplacer !"/> {% block metas %}{% endblock %}
{# <script #}
{# src="https://code.jquebry.com/jquery-3.6.0.min.js" #}
{# integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" #}
{# crossorigin="anonymous"></script> #}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js"
integrity="sha256-eGE6blurk5sHj+rmkfsGYeKyZx3M4bG+ZlFyA7Kns7E=" crossorigin="anonymous"></script>
<!-- Bootstrap CSS -->
{# <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/css/all.min.css" integrity="sha512-YWzhKL2whUzgiheMoBFwW8CKV4qpHQAEuvilg9FAn5VJUDwKZZxkJNuGM4XkWuk94WCrrwslk8yWNGmY1EduTA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> #}
{{ encore_entry_link_tags('app') }}
{# START: OLD STYLESHEETS #}
<link rel="icon" href="{{ asset('assets/img/icone.png') }}"/>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet">
<link
rel="stylesheet" href="{{ asset('assets/lib/bootstrap-select/css/bootstrap-select.min.css') }}"/>
{# <link rel="stylesheet" href="{{ asset('assets/lib/bootstrap-tokenfield/bootstrap-tokenfield.min.css') }}"/> #}
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tokenfield/0.12.0/css/bootstrap-tokenfield.min.css"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.5/css/fileinput.min.css" media="all"
rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="{{ asset('assets/css/commons/calendar.css') }}"/>
<link rel="stylesheet" href="{{ asset('assets/lib/jquery/prettydropdowns.css') }}">
<link rel="stylesheet" href="{{ asset('assets/lib/jquery/nice-select.css') }}">
<link rel="stylesheet" href="{{ asset('assets/lib/timepicki/timepicki.css') }}">
<link rel="stylesheet" href="{{ asset('assets/css/commons/footer.css') }}"/>
<link rel="stylesheet" href="{{ asset('assets/css/commons/custom.css') }}"/>
<link rel="stylesheet" href="{{ asset('assets/css/commons/buttons.css') }}"/>
<link rel="stylesheet" href="{{ asset('assets/css/user/homeMobile.css') }}"/>
<link href="//rawgithub.com/indrimuska/jquery-editable-select/master/dist/jquery-editable-select.min.css"
rel="stylesheet">
<link rel="stylesheet" href="{{ asset('assets/lib/bootstrap-toogle/css/bootstrap-toggle.min.css') }}"/>
<link rel="stylesheet" href="https://printjs-4de6.kxcdn.com/print.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css"/>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css">
{# END: OLD STYLESHEETS #}
{# START: OLD SCRIPTS #}
{% if app.environment != 'dev' %}
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-115905831-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-115905831-1');
</script>
{% endif %}
{# END: OLD SCRIPTS #}
{% block stylesheets %}{% endblock %}
</head>
<body>
{% if is_granted('ROLE_USER') %}
{% include "Theme/sidebar.html.twig" %}
{% endif %}
<section class="main">
{% include "Theme/navbar.html.twig" with { heading: heading} %}
{% if breadcrumbExpress is defined %}
{% include 'Theme/breadcrumbExpressDisaster.html.twig' %}
{% endif %}
{# {% if breadcrumbComplaintExpress is defined and not(currentPath starts with '/express/') %}
{% include 'Theme/breadcrumbExpressComplaint.html.twig' %}
{% endif %} #}
{% for label, messages in app.flashes %}
{% for key, message in messages %}
<div class="modal modalAlert show" style="display:block;">
<div class="modal-dialog modal-{{ label }}">
<div class="modal-content">
{# <div class="modal-header">
<div class="icon-box">
{% if label == "success" %}
<i class="fa fa-check"></i>
{% else %}
<i class="fa fa-times"></i>
{% endif %}
</div>
{% if label == "success" %}
<h4 class="modal-title">Félicitations</h4>
{% else %}
<h4 class="modal-title">Attention</h4>
{% endif %}
</div> #}
<div class="modal-body pt-0">
<h4 class="text-start blue fw-bold">
{% if label == "success" %}
Félicitations
{% elseif label == "success_delete" %}
Clôture de compte
{% else %}
Attention
{% endif %}
</h4>
<br/>
<p class="text-start mt-5">{{message}}</p>
<div class="row">
<div class="col-md-12 text-left position-static">
<button data-bs-dismiss="modal" class="btn btn-outline-danger" style="top:5px"
onclick="$(this).parent().parent().parent().parent().parent().parent().hide()">
<i class="fas fa-times"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
{# <p class='alert alertLayout alert-{{label}}'>{{message}}</p> #}
{% endfor %}
{% endfor %}
<main class="content main_content card {{ 'user_' in app.request.get('_route') or app.request.get('_route') == 'page_display' ? 'mt-0 mx-md-5' : '' }} {{ app.request.query.get('complaint') == 1 or (currentPath starts with '/express/') ? 'express_complaint_steps' : '' }} {{ breadcrumbComplaintExpress is not defined ? 'p-0': '' }}">
{% if not (currentPath starts with '/express/') and not (currentPath starts with '/login') and ((heading ~ '')|trim) != '' %}
<div class="card-header bg-primary text-white text-center col-12 d-none d-sm-none d-md-none d-lg-block d-xl-block d-xxl-block">
<h2 class="fw-bold">
{{ heading }}
</h2>
</div>
{% endif %}
{% if app.request.query.get('complaint') == 1 or (breadcrumbComplaintExpress is defined and currentPath starts with '/express/') %}
{% include 'Theme/breadcrumbExpressComplaint.html.twig' %}
{% endif %}
<div class="container {{ 'user_' in app.request.get('_route') or app.request.get('_route') == 'page_display' ? 'px-0' : 'px-4' }} {{ breadcrumbComplaintExpress is defined ? '' : '' }}">
<div class="card-body {{ currentPath starts with '/express/' and app.request.get('_route') != 'express_complaint_register' ? 'pb-0 pb-5 pt-0' : '' }} {{ 'user_' in app.request.get('_route') or app.request.get('_route') == 'page_display' ? 'w-100 mt-0 mb-5 ms-0 p-0 pb-4 px-4' : '' }} {{ 'user_homepage' == app.request.get('_route') ? 'card-cancel' : '' }}{{ app.request.get('_route') == 'express_complaint_x_identity' and expressStep == 3 ? 'mx-3 w-100' : '' }}"> {% block body %}{% endblock %}</div>
</div>
</main>
{% include "Theme/footer.html.twig" %}
</section>
<!-- Optional JavaScript; choose one of the two! -->
{{ encore_entry_script_tags('app') }}{# {% block javascripts %}{% endblock %} #}
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ"
crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js" integrity="sha384-W8fXfP3gkOKtndU4JGtKDvXbO53Wy8SZCQHczT5FMiiqmQfUpWbYdTil/SxwZgAN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.min.js" integrity="sha384-skAcpIdS7UcVUC05LJ9Dxay8AXcDYfBJqt1CJ85S/CFujBsIzCIv+l9liuYLaMQ/" crossorigin="anonymous"></script>
-->
{# START: OLD SCRIPTS #}
<script type="text/javascript" src="{{ asset('assets/lib/bootstrap/js/bootstrap.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/lib/bootstrap-select/js/bootstrap-select.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/lib/bootstrap-select/js/i18n/defaults-fr_FR.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/lib/bootstrap-toogle/js/bootstrap-toggle.min.js') }}"></script>
{# <script type="text/javascript" src="{{ asset('assets/lib/bootstrap-tokenfield/bootstrap-tokenfield.min.js') }}"></script> #}
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tokenfield/0.12.0/bootstrap-tokenfield.min.js"></script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.14/jquery.datetimepicker.full.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.5/js/fileinput.min.js"></script>
<script type="text/javascript" src="{{ asset('assets/lib/jquery/jquery.matchHeight.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/lib/jquery/jquery.autoresize.js') }}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.5/js/locales/fr.js"></script>
<script src="https://printjs-4de6.kxcdn.com/print.min.js"></script>
<script src="{{ asset('assets/lib/jquery/jquery.nice-select.js') }}"></script>
<script src="{{ asset('assets/lib/jquery/jquery.prettydropdowns.js') }}"></script>
<script src="{{ asset('assets/lib/jquery/jquery.editable-select.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/user/home.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/lib/jquery/jquery.validate.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/lib/jquery/messages_fr.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/lib/timepicki/timepicki.js') }}"></script>
<script type="text/javascript">
// (function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n;
// w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t),
// m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m)
// })(window,document,'script','http://127.0.0.1:8000/index.php/mtc.js','mt');
//
// mt('send', 'pageview');
$("input[type='file']").fileinput({
shareIn: "popup",
language: "fr",
showRemove: false,
showUpload: false,
initialPreviewConfig: [
{
caption: "false",
size: false
},
],
layoutTemplates: {
btnBrowse: '<div tabindex="500" class="{css}"{status}>{icon}</div>'
}
});
/**
* This function override original history.back() function and handle custom redirects
* depending on which page visitor is
*/
function customHistoryBack() {
if (window.location.pathname === '{{ path('express_disaster_declaration_params') }}') {
window.location.href = '{{ path('homepage') }}';
} else {
history.back();
}
}
</script>
<script type="text/javascript">
$(document).ready(function () {
$(document).on("keydown", ":input:not(textarea)", function (event) {
return event.key != "Enter";
});
var formHasChanged = false;
var submitted = false;
$(document).on('change', 'form input, form select, form textarea', function (e) {
formHasChanged = true;
});
// form change validation on page change
// window.onbeforeunload = function (e) {
// if (formHasChanged && !submitted && !$(document.activeElement).hasClass('allowedLeave')) {
// var message = "You have not saved your changes.", e = e || window.event;
// if (e) {
// e.returnValue = message;
// }
// return message;
// }
// };
$("form").submit(function () {
submitted = true;
});
$.validator.addMethod('currency', function (value, element, regexp) {
var re = /^\d{1,9}(\.\d{1,2})?$/;
return this.optional(element) || re.test(value);
}, '');
$.validator.messages.currency = 'Veuillez entrer un montant en chiffre';
$.validator.addMethod('imei', function (value, element, regexp) {
var re = /^\d{1,17}(\.\d{1,2})?$/;
return this.optional(element) || re.test(value);
}, '');
$.validator.messages.imei = 'Veuillez entrer une suite de chiffres';
$('form').validate({
ignoreTitle: true,
errorPlacement: function (error, element) {
error.appendTo(element.closest('.form-group'));
},
rules: {
"App_complaintx[prejudiceEstimate]": {
"required": true,
"currency": true
},
"App_item[estimateValue]": {
"required": false,
"currency": true
},
"App_item[imeiNumber]": {
"imei": true,
"minlength": 15,
"maxlength": 17
}
}
});
// $.each($('.rowForm select.niceSelect'), function(index, input){
// if(!$(input).val()){
// $(input).append('<option selected disabled hidden>'+$(input).attr('placeholder')+'</option>');
// }
// });
$(".timepickiinput").timepicki({
show_meridian: false,
validate: true,
min_hour_value: 0,
max_hour_value: 23,
step_size_minutes: 5,
increase_direction: 'up',
disable_keyboard_mobile: true,
start_time: ["12", "00"]
});
{% if app.user %}{% if app.user.isBeginner %}Init.initToolTip($('input,textarea,.tooltipHelper'));
{% endif %}$.each($('input.tokenfield'), function (index, input) {
Init.initTokenField(input);
Init.tokenTitle(input, {{ (app.user.isBeginner) ? "true" : "false" }});
});
{% endif %}$(".editableSelect").editableSelect({'startWith': true});
// $(".niceSelect").niceSelect();
$.each($('.placeholding').prev('input'), function (index, input) {
$(input).focus(function () {
$(input).next('label').addClass('label-valid');
});
$(input).blur(function () {
if (!$(input).val()) {
$(input).next('label').removeClass('label-valid');
}
});
});
$.each($('.placeholding').prev('textarea'), function (index, input) {
$(input).focus(function () {
$(input).next('label').addClass('label-valid');
});
$(input).blur(function () {
if (!$(input).val()) {
$(input).next('label').removeClass('label-valid');
}
});
});
$.each($('label').prev('.tokenfield'), function (index, block) {
Init.tokenLabel(block);
});
$.each($('select.niceSelect'), function (index, select) {
var $label = $(select).siblings('label');
if (!$(select).val() || $.isEmptyObject($(select).val())) {
$label.removeClass("label-valid");
} else {
$label.addClass("label-valid");
}
});
$('.containerForm, .containerMobile').on('change', 'select', function () {
var $label = $(this).next('label');
if (!$(this).val() || $.isEmptyObject($(this).val())) {
$label.removeClass("label-valid");
} else {
$label.addClass("label-valid");
}
});
$('.containerForm, .containerMobile').on('focus', '.editableSelect', function () {
var $label = $(this).next('label');
$label.addClass("label-valid");
});
$('.containerForm, .containerMobile').on('blur', '.editableSelect', function () {
if (!$(this).val()) {
$(this).next('label').removeClass('label-valid');
}
});
setTimeout(function () {
if ($('.modalAlert').length > 0) {
$('.modalAlert').remove();
}
}, 10000);
const modalCloses = document.querySelectorAll('.modal-close');
modalCloses.forEach((modalClose) => {
modalClose.addEventListener('click', () => {
modalClose.parentElement.parentElement.parentElement.parentElement.remove();
})
});
});
</script>
{# <script type="text/javascript" src="{{asset('assets/lib/carousel/jquery.waterwheelCarousel.js')}}" ></script> #}
{# <script src="https://unpkg.com/simplebar@latest/dist/simplebar.js"></script> #}
{% block javascripts %}{% endblock %}
{# <!--Start of Tawk.to Script-->
<script type="text/javascript">
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
var Tawk_API = Tawk_API || {}, Tawk_LoadStart = new Date();
(function () {
var s1 = document.createElement("script"), s0 = document.getElementsByTagName("script")[0];
s1.async = true;
s1.src = 'https://embed.tawk.to/5a8eed9cd7591465c707eb55/default';
s1.charset = 'UTF-8';
s1.setAttribute('crossorigin', '*');
s0.parentNode.insertBefore(s1, s0);
})();
Tawk_API = Tawk_API || {};
Tawk_API.visitor = {
name: '{{app.user.firstname~" "~app.user.lastname}}',
email: '{{app.user.email}}'
};
{% endif %}
</script> #}
<link rel="stylesheet" type="text/css"
href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css"/>
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script>
{# <script src="https://maps.googleapis.com/maps/api/js?key={{ googleApiKey }}&libraries=places"></script> #}
{# <script type="text/javascript" src="{{ asset('assets/js/gmaps.js')}}" ></script> #}
<script type="text/javascript">
window.addEventListener("load", function () {
$('.choice img').on('mouseenter', function () {
$(this).attr('src', $(this).attr('src').replace('info.svg', 'info_hover.svg'));
}).on('mouseleave', function () {
$(this).attr('src', $(this).attr('src').replace('info_hover.svg', 'info.svg'));
});
if(window.cookieconsent.initialise ) {
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#051a45"
},
"button": {
"background": "#ffff",
"text": "#051a45"
}
},
"content": {
"message": "En poursuivant votre navigation sur ce site, vous acceptez l’utilisation des cookies pour vous proposer la meilleure expérience utilisateur.",
"dismiss": "ACCEPTER",
"link": "En savoir plus"
}
});
}
});
const tokens = document.querySelectorAll('.textarea-tokens');
for(const token of tokens) {
const div = document.createElement('div');
div.classList.add('textarea-tokens-close')
token.parentNode.append(div);
}
function updateToken(token) {
token.nextElementSibling.innerHTML = '';
values = token.value.split('\n');
for( const index in values ) {
const span = document.createElement('span');
span.dataset.index = index;
span.innerHTML = 'x';
token.nextElementSibling.append(span);
span.addEventListener('click', () => {
if( values.length === 1 ) {
token.value = '';
token.nextElementSibling.innerHTML = '';
} else {
values.splice(span.dataset.index, 1);
token.value = values.join('\n');
updateToken(token);
}
})
}
token.style.height = calcTokenHeight(token.value) + "px"
}
function calcTokenHeight(value) {
let numberOfLineBreaks = (value.match(/\n/g) || []).length;
return 20 + numberOfLineBreaks * 20 + 16 + 2;
}
</script>
<script>
const previews = document.querySelectorAll('.previewImgVich');
function verifyImage( preview, attempt = 1 ) {
if( attempt > 5 ) {
return;
}
if( preview.dataset.error == 1) {
const item = preview.parentNode.parentNode.parentNode.parentNode.parentNode;
const parent = item.parentNode.removeChild(item)
return;
}
setTimeout( () => { verifyImage(preview, attempt + 1) }, 1000 );
}
if( typeof doNotVerifyImage === 'undefined' || !doNotVerifyImage ) {
for(const preview of previews) {
verifyImage(preview);
}
}
$('.item .btn-group .btn').hover(function() {
$(this).prev().addClass('hover')
}, function() {
$(this).prev().removeClass('hover')
});
</script>
<script>
if( document.querySelectorAll('.input_icon:not(.no-resize)').length > 0 ) {
window.onresize = () => {
resetIconCardSquare();
makeIconCardSquare();
};
function resetIconCardSquare() {
for( const inputIcon of document.querySelectorAll('.input_icon:not(.no-resize)') ) {
inputIcon.style.height = null;
inputIcon.style.width = null;
}
}
function makeIconCardSquare() {
let minWidth = 1000;
for( const inputIcon of document.querySelectorAll('.input_icon:not(.no-resize)') ) {
minWidth = Math.min(minWidth, inputIcon.clientWidth);
}
if( minWidth === 0 ) {
setTimeout(makeIconCardSquare, 200);
return
}
if( typeof fixWith !== 'undefined' )
minWidth = 100;
if (minWidth < 100) {
minWidth = 100;
}
for( const inputIcon of document.querySelectorAll('.input_icon:not(.no-resize)') ) {
inputIcon.style.height = `${minWidth}px`;
inputIcon.style.width = `${minWidth}px`;
inputIcon.style.minWidth = `${minWidth}px`;
//inputIcon.parentNode.style.width = `${minWidth}px`;
}
}
makeIconCardSquare();
}
</script>
<!--End of Tawk.to Script-->
</body>
</html>