<!DOCTYPE html>
<html lang="{{ app.request.locale }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Admin bnbguests{% endblock %}</title>
{% block stylesheets %}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<link rel="stylesheet" href="/plugins/fontawesome-free/css/all.min.css">
<link rel="stylesheet" href="/dist/css/adminlte.min.css">
<link rel="stylesheet" href="/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="/plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
<link rel="stylesheet" href="/plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
<link rel="stylesheet" href="/custom.css?v=4.0{{ date().timestamp }}">
<link rel="icon" href="/imgs/favicon3.png"/>
<link rel="apple-touch-icon" href="/imgs/favicon3.png" />
<meta name="msapplication-TileImage" content="/imgs/favicon3.png" />
{% endblock %}
</head>
<body id="{% block body_id %}{% endblock %}" class="admin hold-transition sidebar-mini text-sm">
<div class="wrapper">
{{ include('admin/header.html.twig') }}
{{ include('admin/sidebar.html.twig') }}
<div class="content-wrapper">
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-md-6">
<h1>{% block pageTitle %}{% endblock %}</h1>
</div>
<div class="col-md-6 text-right">
{% block pageLink %}{% endblock %}
</div>
</div>
</div>
</section>
<section class="content">
{% block content %}
{% endblock %}
</section>
</div>
</div>
<aside class="control-sidebar control-sidebar-dark">
</aside>
{{ include('admin/footer.html.twig') }}
{% block scripts %}
<script src="/plugins/jquery/jquery.min.js"></script>
<script src="/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/dist/js/adminlte.min.js"></script>
<script src="/plugins/jquery/jquery.mask.js"></script>
<script src="/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="/plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="/plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<script src="/plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
<script src="/plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
<script src="/plugins/jszip/jszip.min.js"></script>
<script src="/plugins/pdfmake/pdfmake.min.js"></script>
<script src="/plugins/pdfmake/vfs_fonts.js"></script>
<script src="/plugins/datatables-buttons/js/buttons.html5.min.js"></script>
<script src="/plugins/datatables-buttons/js/buttons.print.min.js"></script>
<script src="/plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
<script>
jQuery(document).ready(function($) {
// $('.phone').mask("(00) 0000-00009", {placeholder: "(XX) XXXX-XXXX"});
$('.cpf').mask('000.000.000-00');
$('input[data-small]').each(function(i,element){
$(element).after('<small><i>'+$(element).data('small')+'</i></small>');
});
var table = $('#dataTable').DataTable({
"aaSorting": [],
"buttons": [
{
extend: 'excel',
title: 'clientes_ativos',
messageTop: 'Lista de clientes ativos',
exportOptions: {
columns: ':not(.notExport)'
}
},
{
extend: 'pdf',
title: 'clientes_ativos',
messageTop: 'Lista de clientes ativos',
exportOptions: {
columns: ':not(.notExport)'
}
},
{
extend: 'print',
title: 'clientes_ativos',
messageTop: 'Lista de clientes ativos',
exportOptions: {
columns: ':not(.notExport)'
}
},
{
extend: 'copy',
title: 'clientes_ativos',
messageTop: 'Lista de clientes ativos',
exportOptions: {
columns: ':not(.notExport)'
}
}
],
"responsive": true, "lengthChange": false, "autoWidth": false,
"language": {
"url": "/plugins/datatables/pt-br.json"
},
columnDefs: [
{ orderable: false, targets: -1 }
],
initComplete: function () {
setTimeout( function () {
table.buttons().container().appendTo( '#dataTable_wrapper .col-md-6:eq(0)' );
}, 10 );
}
});
});
function bnbMessage(message) {
$('#modalMessage .modal-body').html('<p>'+message+'</p>');
$('#modalMessage').modal();
}
</script>
{% endblock %}
<div class="modal fade" id="modalMessage">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Atenção</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
</body>
</html>