templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}">
  3.     <head>
  4.         <meta charset="utf-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1">
  6.         <title>{% block title %}Admin bnbguests{% endblock %}</title>
  7.         {% block stylesheets %}
  8.         <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  9.         <link rel="stylesheet" href="/plugins/fontawesome-free/css/all.min.css">
  10.         <link rel="stylesheet" href="/dist/css/adminlte.min.css">
  11.         <link rel="stylesheet" href="/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
  12.         <link rel="stylesheet" href="/plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
  13.         <link rel="stylesheet" href="/plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
  14.         <link rel="stylesheet" href="/custom.css?v=4.0{{ date().timestamp }}">
  15.         <link rel="icon" href="/imgs/favicon3.png"/>
  16.         <link rel="apple-touch-icon" href="/imgs/favicon3.png" />
  17.         <meta name="msapplication-TileImage" content="/imgs/favicon3.png" />
  18.         {% endblock %}
  19.     </head>
  20.     <body id="{% block body_id %}{% endblock %}" class="admin hold-transition sidebar-mini text-sm">
  21.         <div class="wrapper">
  22.             {{ include('admin/header.html.twig') }}
  23.             {{ include('admin/sidebar.html.twig') }}
  24.                 <div class="content-wrapper">
  25.                 <section class="content-header">
  26.                     <div class="container-fluid">
  27.                         <div class="row mb-2">
  28.                             <div class="col-md-6">
  29.                                 <h1>{% block pageTitle %}{% endblock %}</h1>
  30.                             </div>
  31.                             <div class="col-md-6 text-right">
  32.                                 {% block pageLink %}{% endblock %}
  33.                             </div>
  34.                         </div>
  35.                     </div>
  36.                 </section>
  37.                 <section class="content">
  38.                     {% block content %}
  39.                     {% endblock %}
  40.                 </section>
  41.             </div>
  42.         </div>
  43.         <aside class="control-sidebar control-sidebar-dark">
  44.         </aside>
  45.         {{ include('admin/footer.html.twig') }}
  46.         {% block scripts %}
  47.         <script src="/plugins/jquery/jquery.min.js"></script>
  48.         <script src="/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
  49.         <script src="/dist/js/adminlte.min.js"></script>
  50.         <script src="/plugins/jquery/jquery.mask.js"></script>
  51.         <script src="/plugins/datatables/jquery.dataTables.min.js"></script>
  52.         <script src="/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
  53.         <script src="/plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
  54.         <script src="/plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
  55.         <script src="/plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
  56.         <script src="/plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
  57.         <script src="/plugins/jszip/jszip.min.js"></script>
  58.         <script src="/plugins/pdfmake/pdfmake.min.js"></script>
  59.         <script src="/plugins/pdfmake/vfs_fonts.js"></script>
  60.         <script src="/plugins/datatables-buttons/js/buttons.html5.min.js"></script>
  61.         <script src="/plugins/datatables-buttons/js/buttons.print.min.js"></script>
  62.         <script src="/plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
  63.         <script>
  64.             jQuery(document).ready(function($) {
  65.                 // $('.phone').mask("(00) 0000-00009", {placeholder: "(XX) XXXX-XXXX"});
  66.                 $('.cpf').mask('000.000.000-00');
  67.                 $('input[data-small]').each(function(i,element){
  68.                     $(element).after('<small><i>'+$(element).data('small')+'</i></small>');
  69.                 });
  70.                 var table = $('#dataTable').DataTable({
  71.                     "aaSorting": [],
  72.                     "buttons": [
  73.                         {
  74.                             extend: 'excel',
  75.                             title: 'clientes_ativos',
  76.                             messageTop: 'Lista de clientes ativos',
  77.                             exportOptions: {
  78.                                 columns: ':not(.notExport)'
  79.                             }
  80.                         },
  81.                         {
  82.                             extend: 'pdf',
  83.                             title: 'clientes_ativos',
  84.                             messageTop: 'Lista de clientes ativos',
  85.                             exportOptions: {
  86.                                 columns: ':not(.notExport)'
  87.                             }
  88.                         },
  89.                         {
  90.                             extend: 'print',
  91.                             title: 'clientes_ativos',
  92.                             messageTop: 'Lista de clientes ativos',
  93.                             exportOptions: {
  94.                                 columns: ':not(.notExport)'
  95.                             }
  96.                         },
  97.                         {
  98.                             extend: 'copy',
  99.                             title: 'clientes_ativos',
  100.                             messageTop: 'Lista de clientes ativos',
  101.                             exportOptions: {
  102.                                 columns: ':not(.notExport)'
  103.                             }
  104.                         }
  105.                     ],
  106.                     "responsive": true, "lengthChange": false, "autoWidth": false,
  107.                     "language": {
  108.                         "url": "/plugins/datatables/pt-br.json"
  109.                     },
  110.                     columnDefs: [
  111.                         { orderable: false, targets: -1 }
  112.                     ],
  113.                     initComplete: function () {
  114.                         setTimeout( function () {
  115.                             table.buttons().container().appendTo( '#dataTable_wrapper .col-md-6:eq(0)' );
  116.                         }, 10 );
  117.                     }
  118.                 });
  119.             });
  120.             function bnbMessage(message) {
  121.                 $('#modalMessage .modal-body').html('<p>'+message+'</p>');
  122.                 $('#modalMessage').modal();
  123.             }
  124.         </script>
  125.         {% endblock %}
  126.         <div class="modal fade" id="modalMessage">
  127.             <div class="modal-dialog">
  128.                 <div class="modal-content">
  129.                     <div class="modal-header">
  130.                         <h5 class="modal-title">Atenção</h5>
  131.                         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  132.                             <span aria-hidden="true">&times;</span>
  133.                         </button>
  134.                     </div>
  135.                     <div class="modal-body"></div>
  136.                     <div class="modal-footer">
  137.                             <button type="submit" class="btn btn-primary" data-dismiss="modal">OK</button>
  138.                     </div>
  139.                 </div>
  140.             </div>
  141.         </div>
  142.     </body>
  143. </html>