You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.1KB

  1. <?= $this->extend('templates/baseAdmin') ?>
  2. <?= $this->section('content') ?>
  3. <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.3/css/bootstrap.min.css"> -->
  4. <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
  5. <script src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script>
  6. <script src="https://cdn.datatables.net/1.12.1/js/dataTables.bootstrap5.min.js"></script>
  7. <div class="card">
  8. <div class="card-body">
  9. <table id="table-solicitudes" class="table table-bordered table-striped">
  10. <thead>
  11. <th>Nombre</th>
  12. <th>Email</th>
  13. <th>Revisar</th>
  14. </thead>
  15. <tbody>
  16. <?php foreach ($solicitudes as $solicitud) : ?>
  17. <tr>
  18. <td><?= $solicitud['nombre'] . ' ' . $solicitud['apaterno'] . ' ' . $solicitud['amaterno'] ?></td>
  19. <td><?= $solicitud['email'] ?></td>
  20. <td>
  21. <a href="<?= route_to('admin_solicitud_revisar', $solicitud['id']) ?>" class="btn btn-info ">
  22. <i class="nav-icon fas fa-user-check"></i>
  23. </a>
  24. </td>
  25. </tr>
  26. <?php endforeach ?>
  27. </tbody>
  28. </table>
  29. </div>
  30. </div>
  31. <script>
  32. document.addEventListener('DOMContentLoaded', function() {
  33. let table = new DataTable('#table-solicitudes', {
  34. 'searching': true,
  35. 'ordering': true,
  36. 'language': {
  37. "lengthMenu": "Mostrar _MENU_ registros",
  38. "info": "Página: _PAGE_ / _PAGES_",
  39. "zeroRecords": "No se encontraron registros",
  40. "paginate": {
  41. "first": "Inicio",
  42. "last": "Fin",
  43. "next": ">",
  44. "previous": "<"
  45. },
  46. 'search': 'Buscar:',
  47. },
  48. 'order': [],
  49. });
  50. });
  51. </script>
  52. <?= $this->endSection() ?>