<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700"/>
{{ encore_entry_link_tags('app') }}
<link rel="stylesheet" href="{{ asset('assets/theme/plugins/custom/fullcalendar/fullcalendar.bundle.css') }}">
<link rel="stylesheet" href="{{ asset('assets/theme/plugins/custom//datatables/datatables.bundle.css') }}"/>
<link rel="stylesheet" href="{{ asset('assets/theme/plugins/global/plugins.bundle.css') }}">
<link rel="stylesheet" href="{{ asset('assets/theme/plugins/custom/prismjs/prismjs.bundle.css') }}">
<link rel="stylesheet" href="{{ asset('assets/theme/css/style.bundle.css') }}">
<link rel="stylesheet" href="{{ asset('assets/theme/css/themes/layout/header/base/light.css') }}">
<link rel="stylesheet" href="{{ asset('assets/theme/css/themes/layout/header/menu/light.css') }}">
<link rel="stylesheet" href="{{ asset('assets/theme/css/themes/layout/brand/light.css') }}">
<link rel="stylesheet" href="{{ asset('assets/theme/css/themes/layout/aside/light.css') }}">
<link rel="shortcut icon" href="{{ asset('assets/theme/media/logos/favicon.ico') }}"/>
{% block stylesheets %}{% endblock %}
</head>
<body id="kt_body"
class="header-fixed header-mobile-fixed subheader-enabled aside-enabled aside-fixed aside-minimize-hoverable page-loading">
<!--begin::Main-->
{% block main %}
<!--[html-partial:include:{"file":"partials/_header-mobile.html"}]/-->
{% include '_partials/_header-mobile.html.twig' %}
<div class="d-flex flex-column flex-root">
<!--begin::Page-->
<div class="d-flex flex-row flex-column-fluid page">
<!--[html-partial:include:{"file":"partials/_aside.html"}]/-->
{% include '_partials/_aside.html.twig' %}
<!--begin::Wrapper-->
<div class="d-flex flex-column flex-row-fluid wrapper" id="kt_wrapper">
<!--[html-partial:include:{"file":"partials/_header.html"}]/-->
{% if block('headerMenu') is not defined %}{% block headerMenu %}
<div></div>{% endblock %}{% endif %}
{% include '_partials/_header.html.twig' with {headerMenu: block('headerMenu')} %}
<!--begin::Content-->
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<!--[html-partial:include:{"file":"partials/_subheader/subheader-v2.html"}]/-->
{% if block('subHeaderLeft') is not defined %}{% block subHeaderLeft %}<h5
class="text-dark font-weight-bold mt-2 mb-2 mr-5">{{ block('title') }}</h5>{% endblock %}{% endif %}
{% if block('subHeaderRight') is not defined %}{% block subHeaderRight %}{% endblock %}{% endif %}
{% include '_partials/_subheader/subheader-v2.html.twig' with {subHeaderLeft: block('subHeaderLeft'), subHeaderRight: block('subHeaderRight')} %}
<!--[html-partial:include:{"file":"partials/_content.html"}]/-->
{# {% include '_partials/_content.html.twig' %} #}
<div class="d-flex flex-column-fluid">
<!--begin::Container-->
<div class="container-fluid">
{% for label, messages in app.flashes %}
<div class="container">
<div class="alert alert-{{ label }}">
{% for message in messages %}
<p>{{ message | raw }}</p>
{% endfor %}
</div>
</div>
{% endfor %}
{% block body %}{% endblock %}
</div>
</div>
</div>
<!--end::Content-->
<!--[html-partial:include:{"file":"partials/_footer.html"}]/-->
{% include '_partials/_footer.html.twig' %}
</div>
<!--end::Wrapper-->
</div>
<!--end::Page-->
</div>
{% endblock %}
<!--end::Main-->
<!--[html-partial:include:{"file":"partials/_extras/offcanvas/quick-search.html"}]/-->
{# {% include '_partials/_extras/offcanvas/quick-search.html.twig' %} #}
<!--[html-partial:include:{"file":"partials/_extras/offcanvas/quick-user.html"}]/-->
{% include '_partials/_extras/offcanvas/quick-user.html.twig' %}
<!--[html-partial:include:{"file":"partials/_extras/scrolltop.html"}]/-->
{% include '_partials/_extras/scrolltop.html.twig' %}
<!--[html-partial:include:{"file":"partials/_extras/toolbar.html"}]/-->
{# {% include '_partials/_extras/toolbar.html.twig' %} #}
<!--[html-partial:include:{"file":"partials/_extras/offcanvas/demo-panel.html"}]/-->
{# {% include '_partials/_extras/offcanvas/demo-panel.html.twig' %} #}
<script>
var HOST_URL = "https://preview.keenthemes.com/metronic/theme/html/tools/preview";
</script>
<script>
var KTAppSettings = {
"breakpoints": {
"sm": 576,
"md": 768,
"lg": 992,
"xl": 1200,
"xxl": 1400
},
"colors": {
"theme": {
"base": {
"white": "#ffffff",
"primary": "#3699FF",
"secondary": "#E5EAEE",
"success": "#1BC5BD",
"info": "#8950FC",
"warning": "#FFA800",
"danger": "#F64E60",
"light": "#E4E6EF",
"dark": "#181C32"
},
"light": {
"white": "#ffffff",
"primary": "#E1F0FF",
"secondary": "#EBEDF3",
"success": "#C9F7F5",
"info": "#EEE5FF",
"warning": "#FFF4DE",
"danger": "#FFE2E5",
"light": "#F3F6F9",
"dark": "#D6D6E0"
},
"inverse": {
"white": "#ffffff",
"primary": "#ffffff",
"secondary": "#3F4254",
"success": "#ffffff",
"info": "#ffffff",
"warning": "#ffffff",
"danger": "#ffffff",
"light": "#464E5F",
"dark": "#ffffff"
}
},
"gray": {
"gray-100": "#F3F6F9",
"gray-200": "#EBEDF3",
"gray-300": "#E4E6EF",
"gray-400": "#D1D3E0",
"gray-500": "#B5B5C3",
"gray-600": "#7E8299",
"gray-700": "#5E6278",
"gray-800": "#3F4254",
"gray-900": "#181C32"
}
},
"font-family": "Poppins"
};
</script>
<script src="{{ asset('assets/theme/plugins/global/plugins.bundle.js') }}"></script>
<script src="{{ asset('assets/theme/js/scripts.bundle.js') }}"></script>
<script src="{{ asset('assets/theme/plugins/custom/prismjs/prismjs.bundle.js') }}"></script>
<script src="{{ asset('assets/theme/plugins/custom/fullcalendar/fullcalendar.bundle.js') }}"></script>
<script src="{{ asset('assets/theme/plugins/custom/datatables/datatables.bundle.js') }}"></script>
<script src="{{ asset('assets/theme/js/pages/crud/datatables/extensions/buttons.js') }}"></script>
<script src="{{ asset('assets/theme/js/pages/widgets.js') }}"></script>
{{ encore_entry_script_tags('app') }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/locales/bootstrap-datepicker.fr.min.js"></script>
<script>
$(function () {
//avatar
var avatar = new KTImageInput('avatar');
//date
arrows = {
rightArrow: '<i class="la la-angle-right"></i>',
leftArrow: '<i class="la la-angle-left"></i>'
}
// enable clear button
$('.date').datepicker({
autoclose: true,
todayBtn: "linked",
clearBtn: true,
todayHighlight: true,
templates: arrows,
language: "fr",
orientation: "bottom right"
});
})
function generateDataTableConfig(ajax, hidden = [], sort = [], order = [0, 'asc'], callback = "", displayLength = 30) {
if (callback.length === 0) {
callback = function () {
ajaxActionTrigger();
};
}
return {
"ajax": ajax,
"columnDefs": [
{
"targets": hidden,
"visible": false
},
{
"targets": sort,
"orderable": false
}
],
"order": [order],
"displayLength": displayLength,
"lengthMenu": [[10, 25, 50, 100, 150, 200, 400, 500 /*-1*/], [10, 25, 50, 100, 150, 200, 400, 500]],
"language": {
"sEmptyTable": "Aucune donnée disponible dans le tableau",
"sInfo": "Affichage de l'élément _START_ à _END_ sur _TOTAL_ éléments",
"sInfoEmpty": "Affichage de l'élément 0 à 0 sur 0 élément",
"sInfoFiltered": "(filtré à partir de _MAX_ éléments au total)",
"sInfoPostFix": "",
"sInfoThousands": ",",
"sLengthMenu": "Afficher _MENU_ éléments",
"sLoadingRecords": "Chargement...",
"sProcessing": "Traitement...",
"sSearch": "Rechercher :",
"sZeroRecords": "Aucun élément correspondant trouvé",
"oPaginate": {
"sFirst": "Premier",
"sLast": "Dernier",
"sNext": "Suivant",
"sPrevious": "Précédent"
},
"oAria": {
"sSortAscending": ": activer pour trier la colonne par ordre croissant",
"sSortDescending": ": activer pour trier la colonne par ordre décroissant"
},
// "select": {
// "rows": {
// "_": "%d lignes sélectionnées",
// "0": "Aucune ligne sélectionnée",
// "1": "1 ligne sélectionnée"
// }
// },
"search": "_INPUT_"
},
"pagingType": "full_numbers",
"iDisplayLength": 25,
"bProcessing": true,
"serverSide": true,
dom: `<'row'<'col-sm-6 text-left'f><'col-sm-6 text-right'B>>
<'row'<'col-sm-12'tr>>
<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7 dataTables_pager'lp>>`,
"buttons": [
{extend: 'print', className: 'btn dark btn-outline', filter: "applied", order: "current"},
{extend: 'copy', className: 'btn red btn-outline', filter: "applied", order: "current"},
{
extend: 'pdf',
className: 'btn green btn-outline',
columns: "visible",
filter: "applied",
order: "current"
},
{extend: 'excel', className: 'btn yellow btn-outline ', filter: "applied", order: "current"},
{extend: 'csv', className: 'btn purple btn-outline ', filter: "applied", order: "current"},
{
extend: 'colvis',
className: 'btn dark btn-outline',
text: 'Columns',
filter: "applied",
order: "current"
}
],
"drawCallback": callback,
// "preDrawCallback": function (settings) {
//
// var elTable = jQuery('#SamiTable');
// var oTable = elTable.DataTable();
// if (oTable.context[0].jqXHR) {
// oTable.context[0].jqXHR.abort()
// }
// }
};
}
function ajaxActionTrigger() {
$(".ajax_action").on("click", function () {
var form = $(this).parent();
Swal.fire({
text: form.data('message'),
icon: "info",
confirmButtonText: "Confirmer !",
customClass: {
confirmButton: "btn btn-danger font-weight-bold btn-pill",
cancelButton: "btn btn-secondary font-weight-bold btn-pill"
},
cancelButtonText: 'Annuler',
showCancelButton: true
}).then((result) => {
if (result.isConfirmed) {
form.submit();
}
})
});
}
</script>
{% block javascripts %}{% endblock %}
</body>
</html>