462 lines
16 KiB
HTML
462 lines
16 KiB
HTML
{% load static %}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="es">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<link rel="apple-touch-icon" sizes="76x76" href="/static/assets/img/apple-icon.png">
|
|
<link rel="icon" type="image/png" href="/static/assets/img/favicon.png">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<title>
|
|
CIUDAD SALUD
|
|
</title>
|
|
<meta content='width=device-width, initial-scale=1.0, shrink-to-fit=no' name='viewport' />
|
|
<!-- Fonts and icons -->
|
|
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons" />
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
|
|
<!-- CSS Files -->
|
|
<link href="/static/assets/css/material-dashboard.css?v=2.1.2" rel="stylesheet" />
|
|
<!-- CSS Just for demo purpose, don't include it in your project -->
|
|
<link href="/static/assets/demo/demo.css" rel="stylesheet" />
|
|
|
|
<link rel="stylesheet" href="{% static 'lib/datatables-1.10.20/css/dataTables.bootstrap4.min.css' %}"/>
|
|
<link rel="stylesheet" href="{% static 'lib/datatables-1.10.20/plugins/responsive-2.2.3/css/responsive.bootstrap4.min.css' %}"/>
|
|
{% block extra_css %}
|
|
|
|
|
|
{% endblock extra_css %}
|
|
<script src="{% static 'lib/datatables-1.10.20/js/jquery.dataTables.js' %}"></script>
|
|
<script src="{% static 'lib/datatables-1.10.20/js/dataTables.bootstrap4.min.js' %}"></script>
|
|
<script src="{% static 'lib/datatables-1.10.20/plugins/responsive-2.2.3/js/dataTables.responsive.min.js' %}"></script>
|
|
<script src="{% static 'lib/datatables-1.10.20/plugins/responsive-2.2.3/js/responsive.bootstrap4.min.js' %}"></script>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body class="">
|
|
<div class="wrapper ">
|
|
<div class="sidebar" data-color="purple" data-background-color="white" data-image="/static/assets/img/sidebar-1.jpg" >
|
|
|
|
<div class="logo">
|
|
<div class="img-responsive text-center">
|
|
|
|
<img class="img" src="/static/assets/img/cds.jpg" width="50%"/>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="sidebar-wrapper">
|
|
<ul class="nav">
|
|
<li class="nav-item ">
|
|
<a class="nav-link" href="{% url 'index' %}">
|
|
<p>Principal</p>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item ">
|
|
<a class="nav-link" href="{% url 'invalmacen' %}">
|
|
<p>Almacen</p>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item ">
|
|
<a class="nav-link" href="{% url 'buscar' %}">
|
|
<p>Buscar</p>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item ">
|
|
<a class="nav-link" href="{% url 'inv_equipo' %}">
|
|
<p>Inventario</p>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item ">
|
|
<a class="nav-link" href="{% url 'bitacora' %}">
|
|
<p style="text-align: center;">Bitacora de Reportes</p>
|
|
</a>
|
|
</li>
|
|
|
|
<li class="nav-item ">
|
|
<a class="nav-link" href="{% url 'pendientes' %}">
|
|
<p style="text-align: center;">Servicios Pendientes</p>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item ">
|
|
<a class="nav-link" href="{% url 'servicios' %}">
|
|
<p style="text-align: center;">Servicios concluidos </p>
|
|
</a>
|
|
</li>
|
|
<!--
|
|
<li class="nav-item ">
|
|
<a class="nav-link" href="{% url 'preventivo' %}">
|
|
<i class="material-icons">content_paste</i>
|
|
<p style="text-align: center;">Servicios <br> Preventivos</p>
|
|
</a>
|
|
</li>
|
|
-->
|
|
<li class="nav-item ">
|
|
<a class="nav-link" href="{% url 'usuarios' %}">
|
|
<p>Usuarios</p>
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="main-panel">
|
|
<!-- Navbar -->
|
|
<nav class="navbar navbar-expand-lg navbar-transparent navbar-absolute fixed-top ">
|
|
<div class="container-fluid">
|
|
<div class="navbar-wrapper">
|
|
<a class="navbar-brand" href="{% url 'index' %}">INICIO</a>
|
|
</div>
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="navbar-toggler-icon icon-bar"></span>
|
|
<span class="navbar-toggler-icon icon-bar"></span>
|
|
<span class="navbar-toggler-icon icon-bar"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse justify-content-end">
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link" href="javascript:;" id="navbarDropdownProfile" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<i class="material-icons">person</i>
|
|
<p class="d-lg-none d-md-block">
|
|
Account
|
|
</p>
|
|
</a>
|
|
|
|
{% if user.is_authenticated %}
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownProfile">
|
|
<a class="dropdown-item" href="#">{{ user.username }}</a>
|
|
<div class="dropdown-divider"></div>
|
|
<a class="dropdown-item" href="{% url 'salir' %}">Cerrar Sesion</a>
|
|
</div>
|
|
{% else %}
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownProfile">
|
|
<a class="dropdown-item" href="{% url 'acceder' %}">Login</a>
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<!-- End Navbar -->
|
|
|
|
{% if messages %}
|
|
<div class="row mt-3 mb-3">
|
|
<div class="col-12">
|
|
{% for message in messages %}
|
|
<div class="alert alert-{{ message.tags }}">
|
|
{{ message }}
|
|
</div>
|
|
{% endfor %}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock content %}
|
|
|
|
|
|
<footer class="footer">
|
|
<div class="container-fluid">
|
|
<nav class="float-left">
|
|
<ul>
|
|
<li>
|
|
<a href="https://mxsig.com.mx/" target="_blank">
|
|
MXSIG
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
<div class="copyright float-right">
|
|
©
|
|
<script>
|
|
document.write(new Date().getFullYear())
|
|
</script>, Hecho por
|
|
<a href="https://mxsig.com.mx/" target="_blank">Antonio Espiritu >>> mxsig.com.mx</a>
|
|
</div>
|
|
<!-- your footer here -->
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Core JS Files -->
|
|
<script src="/static/assets/js/core/jquery.min.js"></script>
|
|
<script src="/static/assets/js/core/popper.min.js"></script>
|
|
<script src="/static/assets/js/core/bootstrap-material-design.min.js"></script>
|
|
<script src="/static/assets/js/plugins/perfect-scrollbar.jquery.min.js"></script>
|
|
<!-- Plugin for the momentJs -->
|
|
<script src="/static/assets/js/plugins/moment.min.js"></script>
|
|
<!-- Plugin for Sweet Alert -->
|
|
<script src="/static/assets/js/plugins/sweetalert2.js"></script>
|
|
<!-- Forms Validations Plugin -->
|
|
<script src="/static/assets/js/plugins/jquery.validate.min.js"></script>
|
|
<!-- Plugin for the Wizard, full documentation here: https://github.com/VinceG/twitter-bootstrap-wizard -->
|
|
<script src="/static/assets/js/plugins/jquery.bootstrap-wizard.js"></script>
|
|
<!-- Plugin for Select, full documentation here: http://silviomoreto.github.io/bootstrap-select -->
|
|
<script src="/static/assets/js/plugins/bootstrap-selectpicker.js"></script>
|
|
<!-- Plugin for the DateTimePicker, full documentation here: https://eonasdan.github.io/bootstrap-datetimepicker/ -->
|
|
<script src="/static/assets/js/plugins/bootstrap-datetimepicker.min.js"></script>
|
|
<!-- DataTables.net Plugin, full documentation here: https://datatables.net/ -->
|
|
<script src="/static/assets/js/plugins/jquery.dataTables.min.js"></script>
|
|
<!-- Plugin for Tags, full documentation here: https://github.com/bootstrap-tagsinput/bootstrap-tagsinputs -->
|
|
<script src="/static/assets/js/plugins/bootstrap-tagsinput.js"></script>
|
|
<!-- Plugin for Fileupload, full documentation here: http://www.jasny.net/bootstrap/javascript/#fileinput -->
|
|
<script src="/static/assets/js/plugins/jasny-bootstrap.min.js"></script>
|
|
<!-- Full Calendar Plugin, full documentation here: https://github.com/fullcalendar/fullcalendar -->
|
|
<script src="/static/assets/js/plugins/fullcalendar.min.js"></script>
|
|
<!-- Vector Map plugin, full documentation here: http://jvectormap.com/documentation/ -->
|
|
<script src="/static/assets/js/plugins/jquery-jvectormap.js"></script>
|
|
<!-- Plugin for the Sliders, full documentation here: http://refreshless.com/nouislider/ -->
|
|
<script src="/static/assets/js/plugins/nouislider.min.js"></script>
|
|
<!-- Include a polyfill for ES6 Promises (optional) for IE11, UC Browser and Android browser support SweetAlert -->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.1/core.js"></script>
|
|
<!-- Library for adding dinamically elements -->
|
|
<script src="/static/assets/js/plugins/arrive.min.js"></script>
|
|
<!-- Google Maps Plugin -->
|
|
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
|
|
<!-- Chartist JS -->
|
|
<script src="/static/assets/js/plugins/chartist.min.js"></script>
|
|
<!-- Notifications Plugin -->
|
|
<script src="/static/assets/js/plugins/bootstrap-notify.js"></script>
|
|
<!-- Control Center for Material Dashboard: parallax effects, scripts for the example pages etc -->
|
|
<script src="/static/assets/js/material-dashboard.js?v=2.1.2" type="text/javascript"></script>
|
|
<!-- Material Dashboard DEMO methods, don't include it in your project! -->
|
|
<script src="/static/assets/demo/demo.js"></script>
|
|
<script>
|
|
$(document).ready(function() {
|
|
$().ready(function() {
|
|
$sidebar = $('.sidebar');
|
|
|
|
$sidebar_img_container = $sidebar.find('.sidebar-background');
|
|
|
|
$full_page = $('.full-page');
|
|
|
|
$sidebar_responsive = $('body > .navbar-collapse');
|
|
|
|
window_width = $(window).width();
|
|
|
|
fixed_plugin_open = $('.sidebar .sidebar-wrapper .nav li.active a p').html();
|
|
|
|
if (window_width > 767 && fixed_plugin_open == 'Dashboard') {
|
|
if ($('.fixed-plugin .dropdown').hasClass('show-dropdown')) {
|
|
$('.fixed-plugin .dropdown').addClass('open');
|
|
}
|
|
|
|
}
|
|
|
|
$('.fixed-plugin a').click(function(event) {
|
|
if ($(this).hasClass('switch-trigger')) {
|
|
if (event.stopPropagation) {
|
|
event.stopPropagation();
|
|
} else if (window.event) {
|
|
window.event.cancelBubble = true;
|
|
}
|
|
}
|
|
});
|
|
|
|
$('.fixed-plugin .active-color span').click(function() {
|
|
$full_page_background = $('.full-page-background');
|
|
|
|
$(this).siblings().removeClass('active');
|
|
$(this).addClass('active');
|
|
|
|
var new_color = $(this).data('color');
|
|
|
|
if ($sidebar.length != 0) {
|
|
$sidebar.attr('data-color', new_color);
|
|
}
|
|
|
|
if ($full_page.length != 0) {
|
|
$full_page.attr('filter-color', new_color);
|
|
}
|
|
|
|
if ($sidebar_responsive.length != 0) {
|
|
$sidebar_responsive.attr('data-color', new_color);
|
|
}
|
|
});
|
|
|
|
$('.fixed-plugin .background-color .badge').click(function() {
|
|
$(this).siblings().removeClass('active');
|
|
$(this).addClass('active');
|
|
|
|
var new_color = $(this).data('background-color');
|
|
|
|
if ($sidebar.length != 0) {
|
|
$sidebar.attr('data-background-color', new_color);
|
|
}
|
|
});
|
|
|
|
$('.fixed-plugin .img-holder').click(function() {
|
|
$full_page_background = $('.full-page-background');
|
|
|
|
$(this).parent('li').siblings().removeClass('active');
|
|
$(this).parent('li').addClass('active');
|
|
|
|
|
|
var new_image = $(this).find("img").attr('src');
|
|
|
|
if ($sidebar_img_container.length != 0 && $('.switch-sidebar-image input:checked').length != 0) {
|
|
$sidebar_img_container.fadeOut('fast', function() {
|
|
$sidebar_img_container.css('background-image', 'url("' + new_image + '")');
|
|
$sidebar_img_container.fadeIn('fast');
|
|
});
|
|
}
|
|
|
|
if ($full_page_background.length != 0 && $('.switch-sidebar-image input:checked').length != 0) {
|
|
var new_image_full_page = $('.fixed-plugin li.active .img-holder').find('img').data('src');
|
|
|
|
$full_page_background.fadeOut('fast', function() {
|
|
$full_page_background.css('background-image', 'url("' + new_image_full_page + '")');
|
|
$full_page_background.fadeIn('fast');
|
|
});
|
|
}
|
|
|
|
if ($('.switch-sidebar-image input:checked').length == 0) {
|
|
var new_image = $('.fixed-plugin li.active .img-holder').find("img").attr('src');
|
|
var new_image_full_page = $('.fixed-plugin li.active .img-holder').find('img').data('src');
|
|
|
|
$sidebar_img_container.css('background-image', 'url("' + new_image + '")');
|
|
$full_page_background.css('background-image', 'url("' + new_image_full_page + '")');
|
|
}
|
|
|
|
if ($sidebar_responsive.length != 0) {
|
|
$sidebar_responsive.css('background-image', 'url("' + new_image + '")');
|
|
}
|
|
});
|
|
|
|
$('.switch-sidebar-image input').change(function() {
|
|
$full_page_background = $('.full-page-background');
|
|
|
|
$input = $(this);
|
|
|
|
if ($input.is(':checked')) {
|
|
if ($sidebar_img_container.length != 0) {
|
|
$sidebar_img_container.fadeIn('fast');
|
|
$sidebar.attr('data-image', '#');
|
|
}
|
|
|
|
if ($full_page_background.length != 0) {
|
|
$full_page_background.fadeIn('fast');
|
|
$full_page.attr('data-image', '#');
|
|
}
|
|
|
|
background_image = true;
|
|
} else {
|
|
if ($sidebar_img_container.length != 0) {
|
|
$sidebar.removeAttr('data-image');
|
|
$sidebar_img_container.fadeOut('fast');
|
|
}
|
|
|
|
if ($full_page_background.length != 0) {
|
|
$full_page.removeAttr('data-image', '#');
|
|
$full_page_background.fadeOut('fast');
|
|
}
|
|
|
|
background_image = false;
|
|
}
|
|
});
|
|
|
|
$('.switch-sidebar-mini input').change(function() {
|
|
$body = $('body');
|
|
|
|
$input = $(this);
|
|
|
|
if (md.misc.sidebar_mini_active == true) {
|
|
$('body').removeClass('sidebar-mini');
|
|
md.misc.sidebar_mini_active = false;
|
|
|
|
$('.sidebar .sidebar-wrapper, .main-panel').perfectScrollbar();
|
|
|
|
} else {
|
|
|
|
$('.sidebar .sidebar-wrapper, .main-panel').perfectScrollbar('destroy');
|
|
|
|
setTimeout(function() {
|
|
$('body').addClass('sidebar-mini');
|
|
|
|
md.misc.sidebar_mini_active = true;
|
|
}, 300);
|
|
}
|
|
|
|
var simulateWindowResize = setInterval(function() {
|
|
window.dispatchEvent(new Event('resize'));
|
|
}, 180);
|
|
|
|
setTimeout(function() {
|
|
clearInterval(simulateWindowResize);
|
|
}, 1000);
|
|
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
<script>
|
|
$(document).ready(function() {
|
|
md.initDashboardPageCharts();
|
|
|
|
});
|
|
</script>
|
|
|
|
<script>
|
|
$(function() {
|
|
$('#data').DataTable({
|
|
responsive: true,
|
|
"language": {
|
|
url : "{% static 'lib/datatables-1.10.20/spanish.txt' %}"
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% block javascript %}
|
|
|
|
{% endblock javascript %}
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
<!--
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link" href="" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<i class="material-icons">notifications</i>
|
|
<span class="notification">5</span>
|
|
<p class="d-lg-none d-md-block">
|
|
Some Actions
|
|
</p>
|
|
</a>
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
|
|
<a class="dropdown-item" href="#">Mike John responded to your email</a>
|
|
<a class="dropdown-item" href="#">You have 5 new tasks</a>
|
|
<a class="dropdown-item" href="#">You're now friend with Andrew</a>
|
|
<a class="dropdown-item" href="#">Another Notification</a>
|
|
<a class="dropdown-item" href="#">Another One</a>
|
|
</div>
|
|
</li>--> |