<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>{% block title %}Greetings From SmartSigma !{% 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/css/style.bundle.css') }}">
<link rel="shortcut icon" href="{{ asset('logos/favicon.ico') }}"/>
<style>
.zoom-img{
height: 800px;
}
</style>
{% block stylesheets %}{% endblock %}
</head>
<!--begin::Body-->
<body id="kt_body"
class="page-loading-enabled page-loading header-fixed header-tablet-and-mobile-fixed toolbar-enabled toolbar-fixed toolbar-tablet-and-mobile-fixed aside-enabled aside-fixed"
style="--kt-toolbar-height:55px;--kt-toolbar-height-tablet-and-mobile:55px" data-kt-aside-minimize="on">
<!-- Loader -->
{% include '_layout/_loader.html.twig' %}
<!--begin::Main-->
{% block main %}
<!--begin::Root-->
<div class="d-flex flex-column flex-root">
<!--begin::Page-->
<div class="page d-flex flex-row flex-column-fluid">
<!--begin::Aside-->
{% include '_layout/aside/_base.html.twig' %}
<!--begin::Wrapper-->
<div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
<!--layout-partial:layout/header/_base.html-->
{% include '_layout/header/_base.html.twig' with {title: block('title')} %}
<!--begin::Content-->
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<!--layout-partial:layout/toolbars/_toolbar-1.html-->
{% if block('toolbarLeft') is not defined %}{% block toolbarLeft %}{% endblock %}{% endif %}
{% if block('toolbarRight') is not defined %}{% block toolbarRight %}{% endblock %}{% endif %}
{% include '_layout/toolbars/_toolbar.html.twig' with {toolbarLeft: block('toolbarLeft'), toolbarRight: block('toolbarRight')} %}
<!--begin::Post-->
<div class="post d-flex flex-column-fluid" id="kt_post">
<!--begin::Container-->
<div id="kt_content_container" 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 %}
<div id="body">
{% block modal %}{% endblock %}
{% block body %}{% endblock %}
</div>
</div>
<!--end::Container-->
</div>
<!--end::Post-->
</div>
<!--end::Content-->
<!--layout-partial:layout/_footer.html-->
{% include '_layout/_footer.html.twig' %}
</div>
<!--end::Wrapper-->
</div>
<!--end::Page-->
</div>
<!--end::Root-->
<!--layout-partial:layout/_scrolltop.html-->
{% include '_layout/_scrolltop.html.twig' %}
{% endblock %}
<!--end::Main-->
<script>var hostUrl = "{{ asset('assets/theme/') }}";</script>
<!--begin::Javascript-->
<!--begin::Global Javascript Bundle(used by all pages)-->
<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/fullcalendar/fullcalendar.bundle.js') }}"></script>#}
<script src="{{ asset('assets/theme/plugins/custom/datatables/datatables.bundle.js') }}"></script>
<script src="{{ asset('assets/other/flatpickr-fr.js') }}"></script>
<script src="{{ asset('assets/other/select2.full.min.js') }}"></script>
<script src="{{ asset('assets/other/select2-fr.js') }}"></script>
<!--end::Global Javascript Bundle-->
<!--begin::Page Custom Javascript(used by this page)-->
<script src="{{ asset('assets/theme/js/custom/widgets.js') }}"></script>
<script src="{{ asset('assets/theme/js/custom/intro.js') }}"></script>
<script src="{{ asset('assets/other/accounting.umd.js') }}"></script>
<script src="{{ asset('assets/other/vue.js') }}"></script>
<script src="{{ asset('assets/other/vue-numeric.min.js') }}"></script>
<script src="{{ asset('assets/other/vue-the-mask.js') }}"></script>
<script>
$(function () {
//date
arrows = {
rightArrow: '<i class="la la-angle-right"></i>',
leftArrow: '<i class="la la-angle-left"></i>'
}
var daterangepicker = $('.date');
daterangepicker.daterangepicker({
"singleDatePicker": true,
"showDropdowns": true,
"autoUpdateInput": true,
"locale": {
"format": "DD/MM/YYYY",
"applyLabel": "Appliquer",
"cancelLabel": "Annuler",
"weekLabel": "W",
"firstDay": 1
}
});
daterangepicker.on('apply.daterangepicker', function (ev, picker) {
$(this).val(picker.startDate.format("DD/MM/YYYY"));
});
daterangepicker.on('cancel.daterangepicker', function (ev, picker) {
$(this).val('');
});
$("select:not(.no-select)").select2();
})
function generateDataTableConfig(ajax, hidden = [], sort = [], order = [0, 'desc'], callback = "", displayLength = 30) {
if (callback.length === 0) {
callback = function () {
deleteTrigger();
KTMenu.createInstances();
$('[data-bs-toggle="tooltip"]').tooltip();
zoomPictures();
};
}
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,
"drawCallback": callback,
// "preDrawCallback": function (settings) {
//
// var elTable = jQuery('#SamiTable');
// var oTable = elTable.DataTable();
// if (oTable.context[0].jqXHR) {
// oTable.context[0].jqXHR.abort()
// }
// }
};
}
// Search Datatable --- official docs reference: https://datatables.net/reference/api/search()
var handleSearchDatatable = function (dt) {
const filterSearch = document.querySelector('[data-table-filter="search"]');
filterSearch.addEventListener('keyup', function (e) {
dt.search(e.target.value).draw();
});
}
function deleteTrigger() {
$(".delete").on("click", function () {
var form = $(this).parent();
Swal.fire({
text: form.data('message'),
icon: "error",
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();
}
})
});
}
function zoomPictures() {
$('.zoom-image').popover(
{
html: true,
trigger: 'hover',
placement: 'right',
content: function () {
return '<img class="zoom-img" src="' + $(this).attr('data-image-zoom') + '">';
}
});
}
$(function () {
zoomPictures();
})
</script>
{% block javascripts %}{% endblock %}
<!--end::Page Custom Javascript-->
<!--end::Javascript-->
</body>
<!--end::Body-->
</html>