diff --git a/app/Views/Admin/respuestasGenerales.php b/app/Views/Admin/respuestasGenerales.php
index 240f920..62f43f4 100644
--- a/app/Views/Admin/respuestasGenerales.php
+++ b/app/Views/Admin/respuestasGenerales.php
@@ -1,10 +1,15 @@
= $this->extend('templates/baseAdmin') ?>
-= $this->section('content') ?>
+
+= $this->section('headLibraries') ?>
+= $this->endSection() ?>
+
+= $this->section('content') ?>
+
= $tituloEncuesta ?>
@@ -48,6 +53,13 @@
+
+
+
+= $this->endSection() ?>
+
+= $this->section('scripts') ?>
+
@@ -62,38 +74,30 @@
$('#table-respuestas').DataTable({
dom: 'Bfrtip',
buttons: [
- 'copy', 'csv', 'excel', 'pdf', 'print'
- ]
+ 'excel', 'pdf',
+ ],
+ language: {
+ "decimal": "",
+ "emptyTable": "No hay informaciĆ³n",
+ "info": "Mostrando _START_ a _END_ de _TOTAL_ registros",
+ "infoEmpty": "Mostrando 0 to 0 of 0 registros",
+ "infoFiltered": "(Filtrado de _MAX_ total registros)",
+ "infoPostFix": "",
+ "thousands": ",",
+ "lengthMenu": "Mostrar _MENU_ registros",
+ "loadingRecords": "Cargando...",
+ "processing": "Procesando...",
+ "search": "Buscar:",
+ "zeroRecords": "No se encontraron resultados",
+ "paginate": {
+ "first": "Primero",
+ "last": "Ultimo",
+ "next": "Siguiente",
+ "previous": "Anterior"
+ }
+ },
});
});
- // document.addEventListener('DOMContentLoaded', function() {
- // let table = new DataTable('#table-respuestas', {
- // 'buttons': ['excel'],
- // 'searching': true,
- // 'ordering': true,
- // 'language': {
- // "decimal": "",
- // "emptyTable": "No hay informaciĆ³n",
- // "info": "Mostrando _START_ a _END_ de _TOTAL_ registros",
- // "infoEmpty": "Mostrando 0 to 0 of 0 registros",
- // "infoFiltered": "(Filtrado de _MAX_ total registros)",
- // "infoPostFix": "",
- // "thousands": ",",
- // "lengthMenu": "Mostrar _MENU_ registros",
- // "loadingRecords": "Cargando...",
- // "processing": "Procesando...",
- // "search": "Buscar:",
- // "zeroRecords": "No se encontraron resultados",
- // "paginate": {
- // "first": "Primero",
- // "last": "Ultimo",
- // "next": "Siguiente",
- // "previous": "Anterior"
- // }
- // },
- // 'order': [],
- // });
- // });
= $this->endSection() ?>
\ No newline at end of file
diff --git a/app/Views/templates/baseAdmin.php b/app/Views/templates/baseAdmin.php
index 898e4c4..5e77d65 100644
--- a/app/Views/templates/baseAdmin.php
+++ b/app/Views/templates/baseAdmin.php
@@ -18,8 +18,7 @@ scratch. This page gets rid of all links and provides the needed markup only.
-
-
+ = $this->renderSection('headLibraries') ?>
@@ -167,6 +166,9 @@ scratch. This page gets rid of all links and provides the needed markup only.
+
+ = $this->renderSection('scripts') ?>
+