408 lines
15 KiB
HTML
408 lines
15 KiB
HTML
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block titulo %} {% endblock %}</title>
|
|
|
|
<!-- imagen Favicon -->
|
|
<link rel="icon" href="/static/imagenes/dos.ico" type="image/x-icon">
|
|
|
|
<link rel="stylesheet"
|
|
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
|
|
|
|
<!-- Font Awesome Icons -->
|
|
<link rel="stylesheet" href="/static/plugins/fontawesome-free/css/all.min.css">
|
|
<!-- Tempusdominus Bootstrap 4 -->
|
|
<link rel="stylesheet" href="/static/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
|
|
<!-- daterange picker -->
|
|
<link rel="stylesheet" href="/static/plugins/daterangepicker/daterangepicker.css">
|
|
<!-- Bootstrap Color Picker -->
|
|
<link rel="stylesheet" href="/static/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css">
|
|
<!-- iCheck for checkboxes and radio inputs -->
|
|
<link rel="stylesheet" href="/static/plugins/icheck-bootstrap/icheck-bootstrap.min.css">
|
|
<!-- Select2 -->
|
|
<link rel="stylesheet" href="/static/plugins/select2/css/select2.min.css">
|
|
<link rel="stylesheet" href="/static/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css">
|
|
<!-- Bootstrap4 Duallistbox -->
|
|
<link rel="stylesheet" href="/static/plugins/bootstrap4-duallistbox/bootstrap-duallistbox.min.css">
|
|
<!-- BS Stepper -->
|
|
<link rel="stylesheet" href="/static/plugins/bs-stepper/css/bs-stepper.min.css">
|
|
<!-- dropzonejs -->
|
|
<link rel="stylesheet" href="/static/plugins/dropzone/min/dropzone.min.css">
|
|
<!-- InputMask -->
|
|
<script src="/static/plugins/moment/moment.min.js"></script>
|
|
<script src="/static/plugins/inputmask/jquery.inputmask.min.js"></script>
|
|
<!-- DataTables -->
|
|
<link rel="stylesheet" href="/static/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
|
|
<link rel="stylesheet" href="/static/plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
|
|
<link rel="stylesheet" href="/static/plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
|
|
<!-- SweetAlert2 -->
|
|
<link rel="stylesheet" href="/static/plugins/sweetalert2-theme-bootstrap-4/bootstrap-4.min.css">
|
|
<!-- overlayScrollbars -->
|
|
<link rel="stylesheet" href="/static/plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
|
|
<!-- IonIcons -->
|
|
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
|
|
<!-- Theme style -->
|
|
<link rel="stylesheet" href="/static/dist/css/adminlte.min.css">
|
|
|
|
{% block css %}
|
|
<style>
|
|
.table-hover-blue thead th:hover {
|
|
background-color: #007bff;
|
|
}
|
|
|
|
table {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
table td{
|
|
word-wrap: break-word;
|
|
max-width: 100px;
|
|
padding: 15px;
|
|
}
|
|
|
|
table{
|
|
text-align: center;
|
|
}
|
|
|
|
.text-truncate {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.custom-textarea {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endblock%}
|
|
</head>
|
|
|
|
<body class="hold-transition sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed">
|
|
|
|
<div class="wrapper">
|
|
|
|
{% block proloander %}{% endblock %}
|
|
|
|
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
|
|
<!-- Left navbar links -->
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item">
|
|
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
|
|
</li>
|
|
<li class="nav-item d-none d-sm-inline-block">
|
|
<a href="{% url 'servicio' %}" class="nav-link">Inicio</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<ul class="navbar-nav ml-auto">
|
|
<!-- Dropdown Menu -->
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
|
|
aria-haspopup="true" aria-expanded="false">
|
|
<i class="fas fa-solid fa-user-tie"></i> {{user.username}}
|
|
</a>
|
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
<a class="dropdown-item" href="#">Configuración</a>
|
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
<a class="dropdown-item" href="{% url 'exit' %}"><i class="fas fa-solid fa-power-off"></i> Salida</a>
|
|
|
|
{% else %}
|
|
<a class="dropdown-item" href="{% url 'login' %}">Entrar</a>
|
|
{% endif %}
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
|
|
<aside class="main-sidebar sidebar-dark-primary elevation-4">
|
|
<a href="#" class="brand-link">
|
|
<img src="/static/dist/img/logo.jpeg" alt="SAEJB" class="brand-image img-circle elevation-3"
|
|
style="opacity: .8">
|
|
<span class="brand-text font-weight-light float-left"><b>SAEJB</b></span>
|
|
</a>
|
|
<div class="sidebar">
|
|
<nav class="mt-2">
|
|
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
|
<li class="nav-item">
|
|
{% if perms.seajb.view_personas %}
|
|
<a href="#" class="nav-link">
|
|
<i class="nav-icon fas fa-user-edit"></i>
|
|
<p>Personal <i class="fas fa-angle-left right"></i><span class="badge badge-info right">1</span></p>
|
|
</a>
|
|
{% endif %}
|
|
<ul class="nav nav-treeview">
|
|
<li class="nav-item">
|
|
<a href="{% url 'personas' %}" class="nav-link"><i class="nav-icon fa fa-circle fa-xs"
|
|
style="font-size: 0.5rem;"></i>
|
|
<p>Asignación</p>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<!-- <li class="nav-item">
|
|
{% if perms.seajb.view_brigada %}
|
|
<a href="{% url 'servicio' %}" class="nav-link"><i class="nav-icon fas fa-campground"></i>
|
|
<p>Brigadas</p>
|
|
</a>
|
|
{% endif %}
|
|
</li> -->
|
|
<li class="nav-item">
|
|
{% if perms.seajb.view_producto %}
|
|
<a href="#" class="nav-link">
|
|
<i class="nav-icon fas fa-solid fa-clipboard-list"></i>
|
|
<p>Inventario<i class="fas fa-angle-left right"></i><span class="badge badge-info right">2</span></p>
|
|
</a>
|
|
{% endif %}
|
|
<ul class="nav nav-treeview">
|
|
<li class="nav-item">
|
|
<a href="{% url 'inventario' %}" class="nav-link"><i class="fa fa-circle nav-icon"
|
|
style="font-size: 0.5rem;"></i>
|
|
<p>Productos</p>
|
|
</a>
|
|
<!-- <a href="#" class="nav-link"><i class="fa fa-circle nav-icon" style="font-size: 0.5rem;"></i>
|
|
<p>Historial</p>
|
|
</a> -->
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="nav-item">
|
|
{% if perms.seajb.view_abastecimiento %}
|
|
<a href="{% url 'abastecimiento' %}" class="nav-link"><i class="nav-icon fas fa-poo-storm "></i>
|
|
<p>Abastecimiento</p>
|
|
</a>
|
|
{% endif %}
|
|
</li>
|
|
<li class="nav-item">
|
|
{% if perms.seajb.view_cemantar %}
|
|
<a href="#" class="nav-link">
|
|
<i class="nav-icon fa fa-wrench" aria-hidden="true"></i>
|
|
<p>Centros<i class="fas fa-angle-left right"></i><span class="badge badge-info right">3</span></p>
|
|
</a>
|
|
{% endif %}
|
|
<ul class="nav nav-treeview">
|
|
<li class="nav-item">
|
|
<a href="{% url 'cemantar'%}" class="nav-link"><i class="fa fa-circle nav-icon" style="font-size: 0.5rem;"></i>
|
|
<p>Cemantar</p>
|
|
</a>
|
|
<a href="{% url 'cemansac'%}" class="nav-link"><i class="fa fa-circle nav-icon" style="font-size: 0.5rem;"></i>
|
|
<p>Cemansac</p>
|
|
</a>
|
|
<a href="{% url 'cemanblin'%}" class="nav-link"><i class="fa fa-circle nav-icon" style="font-size: 0.5rem;"></i>
|
|
<p>Cemanblin</p>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="nav-item">
|
|
{% if perms.seajb.view_brigadadigital %}
|
|
<a href="{% url 'digital' %}" class="nav-link"><i class="nav-icon fas fa-solid fa-image"></i>
|
|
<p>Digitalización</p>
|
|
</a>
|
|
{% endif %}
|
|
</li>
|
|
<li class="nav-item">
|
|
{% if perms.seajb.view_user %}
|
|
<a href="#" class="nav-link">
|
|
<i class="nav-icon fas fa-solid fa-user" aria-hidden="true"></i>
|
|
<p>Usuarios<i class="fas fa-angle-left right"></i><span class="badge badge-info right">2</span></p>
|
|
</a>
|
|
{% endif %}
|
|
<ul class="nav nav-treeview">
|
|
<li class="nav-item">
|
|
<a href="{% url 'usuarios'%}" class="nav-link"><i class="fa fa-circle nav-icon" style="font-size: 0.5rem;"></i>
|
|
<p>Tabla de Usuario</p>
|
|
</a>
|
|
<!-- <a href="#" class="nav-link"><i class="fa fa-circle nav-icon" style="font-size: 0.5rem;"></i>
|
|
<p>Historial</p>
|
|
</a> -->
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</aside>
|
|
|
|
|
|
<div class="content-wrapper">
|
|
{% block seccion %} {% endblock %}
|
|
|
|
<div class="content">
|
|
<div class="container-fluid">
|
|
{% block contenido %} {% endblock %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<footer class="main-footer">
|
|
<strong>© 2024 <a href="#">Dirección de Tecnologia de la Información y Comunicaciones</a></strong>
|
|
<div class="float-right d-none d-sm-inline-block">
|
|
<b>Version</b> 0.0.1
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
|
|
<!-- jQuery -->
|
|
<script src="/static/plugins/jquery/jquery.min.js"></script>
|
|
<!-- Bootstrap 4 -->
|
|
<script src="/static/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
<!-- SweetAlert2 -->
|
|
<script src="/static/plugins/sweetalert2/sweetalert2.min.js"></script>
|
|
<!-- Select2 -->
|
|
<script src="/static/plugins/select2/js/select2.full.min.js"></script>
|
|
<!-- Bootstrap4 Duallistbox -->
|
|
<script src="/static/plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js"></script>
|
|
<!-- date-range-picker -->
|
|
<script src="/static/plugins/daterangepicker/daterangepicker.js"></script>
|
|
<!-- bootstrap color picker -->
|
|
<script src="/static/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
|
|
<!-- Tempusdominus Bootstrap 4 -->
|
|
<script src="/static/plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
|
|
<!-- InputMask -->
|
|
<script src="/static/plugins/moment/moment.min.js"></script>
|
|
<script src="/static/plugins/inputmask/jquery.inputmask.min.js"></script>
|
|
<!-- Bootstrap Switch -->
|
|
<script src="/static/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
|
|
<!-- BS-Stepper -->
|
|
<script src="/static/plugins/bs-stepper/js/bs-stepper.min.js"></script>
|
|
<!-- dropzonejs -->
|
|
<script src="/static/plugins/dropzone/min/dropzone.min.js"></script>
|
|
<!-- DataTables & Plugins -->
|
|
<script src="/static/plugins/datatables/jquery.dataTables.min.js"></script>
|
|
<script src="/static/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
|
|
<script src="/static/plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
|
|
<script src="/static/plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
|
|
<script src="/static/plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
|
|
<script src="/static/plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
|
|
<script src="/static/plugins/jszip/jszip.min.js"></script>
|
|
<script src="/static/plugins/pdfmake/pdfmake.min.js"></script>
|
|
<script src="/static/plugins/pdfmake/vfs_fonts.js"></script>
|
|
<script src="/static/plugins/datatables-buttons/js/buttons.html5.min.js"></script>
|
|
<script src="/static/plugins/datatables-buttons/js/buttons.print.min.js"></script>
|
|
<script src="/static/plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
|
|
<!-- overlayScrollbars -->
|
|
<script src="/static/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
|
|
<!-- AdminLTE App -->
|
|
<script src="/static/dist/js/adminlte.min.js"></script>
|
|
|
|
{% block js %} {% endblock %}
|
|
|
|
<!-- <script>
|
|
$("#cerrarBoton").click(function () {
|
|
history.back();
|
|
});
|
|
</script> -->
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
$('input[type=date]').val('');
|
|
});
|
|
|
|
</script>
|
|
<script>
|
|
$(function () {
|
|
$("#example1").DataTable({
|
|
"responsive": false, "lengthChange": true, "autoWidth": true,
|
|
// "buttons": ["excel", "pdf"],
|
|
language: {
|
|
"pageLength": "",
|
|
"decimal": "",
|
|
"emptyTable": "No hay datos",
|
|
"info": "Mostrando _START_ a _END_ de _TOTAL_ Registros",
|
|
"infoEmpty": "Mostrando 0 a 0 de 0 Registros",
|
|
"infoFiltered": "(Filtro de _MAX_ total Registros)",
|
|
"infoPostFix": "",
|
|
"thousands": ",",
|
|
"lengthMenu": "Mostrar _MENU_ Registros",
|
|
"loadingRecords": "Cargando...",
|
|
"processing": "Procesando...",
|
|
"search": "Buscar:",
|
|
"zeroRecords": "No se encontraron coincidencias",
|
|
"paginate": {
|
|
"first": "Primero",
|
|
"last": "Ultimo",
|
|
"next": "Próximo",
|
|
"previous": "Anterior",
|
|
},
|
|
"aria": {
|
|
"sortAscending": ": Activar orden de columna ascendente",
|
|
"sortDescending": ": Activar orden de columna desendente",
|
|
}
|
|
}
|
|
}).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');
|
|
|
|
$('#example2').DataTable({
|
|
"paging": true,
|
|
"lengthChange": true,
|
|
"searching": true,
|
|
"ordering": true,
|
|
"info": true,
|
|
"autoWidth": true,
|
|
"responsive": false,
|
|
language: {
|
|
"pageLength": "",
|
|
"decimal": "",
|
|
"emptyTable": "No hay datos",
|
|
"info": "Mostrando _START_ a _END_ de _TOTAL_ Registros",
|
|
"infoEmpty": "Mostrando 0 a 0 de 0 Registros",
|
|
"infoFiltered": "(Filtro de _MAX_ total Registros)",
|
|
"infoPostFix": "",
|
|
"thousands": ",",
|
|
"lengthMenu": "Mostrar _MENU_ Registros",
|
|
"loadingRecords": "Cargando...",
|
|
"processing": "Procesando...",
|
|
"search": "Buscar:",
|
|
"zeroRecords": "No se encontraron coincidencias",
|
|
"paginate": {
|
|
"first": "Primero",
|
|
"last": "Ultimo",
|
|
"next": "Próximo",
|
|
"previous": "Anterior",
|
|
},
|
|
"aria": {
|
|
"sortAscending": ": Activar orden de columna ascendente",
|
|
"sortDescending": ": Activar orden de columna desendente",
|
|
}
|
|
}
|
|
|
|
}).buttons().container().appendTo('#example2_wrapper .col-md-6:eq(0)');
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<script>
|
|
const Toast = Swal.mixin({
|
|
toast: true,
|
|
position: "top-end",
|
|
showConfirmButton: false,
|
|
timer: 3000,
|
|
timerProgressBar: true,
|
|
didOpen: (toast) => {
|
|
toast.onmouseenter = Swal.stopTimer;
|
|
toast.onmouseleave = Swal.resumeTimer;
|
|
}
|
|
});
|
|
Toast.fire({
|
|
icon: "{{ message.tags }}",
|
|
title: "{{ message }}"
|
|
});
|
|
</script>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
</body>
|
|
</html> |