<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SIGMEC{% block title %}{% endblock %}</title>
<link rel="icon" type="image/x-icon" href="{{ asset('img/sistema/favicon.ico') }}">
<!-- Google Font: Source Sans Pro -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<!-- Font Awesome -->
<link rel="stylesheet" href="{{ asset('plugins/fontawesome-free/css/all.min.css') }}">
<!-- Theme style -->
<link rel="stylesheet" href="{{ asset('css/adminlte.min.css') }}">
{% block stylesheets %}
{% endblock %}
</head>
<body class="hold-transition sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light" style="background-color: #01746d">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link d-lg-none" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
</li>
</ul>
<!-- Right navbar links -->
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" data-widget="fullscreen" href="#" role="button">
<i class="fas fa-expand-arrows-alt"></i>
</a>
</li>
{% if app.session.get('periodo').nombre is defined %}
<li class="nav-item p-0">
<span class="nav-link pl-0 pr-0">
{{ app.session.get('periodo').nombre }}
</span>
</li>
{% endif %}
<li class="nav-item dropdown user user-menu">
<a href="#" class="nav-link" data-toggle="dropdown">
<img src="{{ asset('img/sistema/user-generic.png') }}" class="user-image" alt="User Image">
<span class="hidden-xs">{{ app.user.nombre }} {{ app.user.papellido }}</span>
</a>
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<div class="user-header text-center">
<img src="{{ asset('img/sistema/user-generic.png') }}" class="img-circle img-size-64 pt-2" alt="User Image">
<p class="p-4">
{{ app.user.nombre }} {{ app.user.papellido }}
<br>
<small>{{ app.user.unidad }}</small>
<br>
<small>{{ app.user.rol }}</small>
</p>
</div>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item dropdown-footer">Configuraciones</a>
<a href="{{ path('app_logout') }}" class="dropdown-item dropdown-footer">Cerrar sesión</a>
</div>
</li>
</ul>
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<aside class="main-sidebar elevation-2 sidebar-light-teal">
<!-- Brand Logo -->
<a href="{{ path('homepage') }}" class="brand-link text-center">
<img src="{{ asset('img/sistema/logo.png') }}" alt="SIGMEC" class="brand-image elevation-2" style="opacity: .8; float: none">
</a>
<!-- Sidebar -->
<div class="sidebar">
<!-- Sidebar user (optional) -->
<div class="user-panel mb-1 d-flex">
<div class="info w-100">
<p class="text-center mb-0" style="font-size: 14px">
{{ app.user.nombre }} {{ app.user.papellido }}<br>
{{ app.user.unidad}} <br>
{{ app.user.rol }}
</p>
</div>
</div>
<!-- Sidebar Menu -->
{% include 'menu.html.twig' %}
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>
<!-- Message alert -->
<div id="content-message" style="position: fixed; top: 0; left: 0; width: 100%; z-index: 5000;" class="modal">
<div class="row">
<div class="col-lg-5 col-md-12 ml-auto">
<div class="alert alert-dismissible" style="margin: 20px">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h5><i class="icon"></i> <span class="title-alert"></span></h5>
<p><span class="body-alert"></span></p>
</div>
</div>
</div>
</div>
<!-- Content Wrapper. Contains page content -->
{% block body %}{% endblock %}
<!-- /.content-wrapper -->
<footer class="main-footer">
<div class="float-right d-none d-sm-block">
<b>Version</b> 1.0
</div>
<strong>CONALEP Estado de México © {{ "now"|date('Y') }}</strong> Derechos reservados
</footer>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<!-- jQuery -->
<script src="{{ asset('plugins/jquery/jquery.min.js') }}"></script>
<!-- Bootstrap 4 -->
<script src="{{ asset('plugins/bootstrap/js/bootstrap.bundle.min.js') }}"></script>
<!-- AdminLTE App -->
<script src="{{ asset('js/adminlte.min.js') }}"></script>
<script>
$(function(){
$('#content-message').css("display", "none");
});
function alertMessage(type, body){
let mensaje = $('#content-message');
mensaje.find('.body-alert').text(body);
if (type === 0){
mensaje.find('.alert').addClass('alert-success');
mensaje.find('.icon').addClass('icon fas fa-check');
mensaje.find('.title-alert').text('¡Éxito!');
} else {
mensaje.find('.alert').addClass('alert-danger');
mensaje.find('.icon').addClass('fa fa-ban');
mensaje.find('.title-alert').text('¡Error!');
}
mensaje.css("display", "block");
setTimeout(function(){ mensaje.fadeOut(); }, 5000);
}
</script>
{% block javascripts %}
{% endblock %}
</body>
</html>