Commit 749d6df8 by Billy Larru

seleccionando todos los checks

parent 2fa866a6
......@@ -84,12 +84,7 @@
<th class="text-center">Monto extras(S/.)</th>
<th class="text-center">Estado extras</th>
<th class="text-center">
<div>
<label style="font-weight: 500;" class="checkbox-inline checkbox-right">
Aprobar extras
<input type="checkbox" class="checker border-primary-600 text-primary-800">
</label>
</div>
<input type="checkbox" id="extras-select-all" class="checker border-primary-600 text-primary-800">
</th>
<th class="text-center">Monto total(S/.)</th>
......@@ -110,7 +105,7 @@
<td class="text-center">8.50</td>
<td class="text-center">10:00</td>
<td class="text-center">85.00</td>
<td class="text-center">00:00</td>
<td class="text-center">00:38</td>
<td class="text-center">0.00</td>
<td class="text-center">
<span class="label label-danger border-danger-700" title="ANULADO">DESAPROBADO</span>
......@@ -285,7 +280,7 @@
<script type="text/javascript" src="../plantilla/assets/js/plugins/forms/styling/switch.min.js"></script>
<script>
$('#tblAsistenciaPolicias').DataTable({
let table = $('#tblAsistenciaPolicias').DataTable({
"language": {
"lengthMenu": "Mostrar: _MENU_",
"zeroRecords": "&nbsp;&nbsp;&nbsp; No se encontraron resultados",
......@@ -337,6 +332,13 @@
{targets: 14, orderable: false, width: "5%", className: "text-center"}
]
});
$('#extras-select-all').on('click', function () {
// Check/uncheck all checkboxes in the table
var rows = table.rows({'search': 'applied'}).nodes();
$('input[type="checkbox"]', rows).prop('checked', this.checked);
});
</script>
<!--js-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment