{# Plantilla de Twig #}<!-- Modal with form --><!-- div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true" --><div class="modal-dialog modal-lg" role="document"> <div class="modal-content p-4"> {% if info is defined %} <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Información de Solicitud <b>{{ info.id_sol }}</b>: <b><span class="text-success">{{ info.marbete }}</span></b><br>Usuario: <b>{% if info.nombre is defined %}{{ info.nombre }}{% endif %} {% if info.papellido is defined %}{{ info.papellido }}{% endif %} {% if info.sapellido is defined %}{{ info.sapellido }}{% endif %}</b></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="card-body"> <div class="table-responsive"> <table class="table table-hover"> <thead></thead> <tbody> <tr> <th colspan="4" class="text-center" style="background: #75BFFF">INFORMACIÓN DE <b class="text-white">{% if info.tipo_equipo == "Equipo" %} EQUIPO DE CÓMPUTO {% else %} {{ info.tipo_equipo|upper }} {% endif %}</b></th> </tr> <tr> <td>Marbete</td> <th>{{ info.marbete }}</th> <td>Descripción</td> <th>{{ info.descripcion }}</th> </tr> <tr> <td>Marca</td> <th>{{ info.marca }}</th> <td>Modelo</td> <th>{{ info.modelo }}</th> </tr> <tr> <td colspan="2" class="text-center">Serie</td> <th colspan="2" class="text-center">{{ info.serie }}</th> </tr> <tr> <th colspan="4" class="text-center text-white" style="background: #2dbc4e">INFORMACIÓN DE SOLICITUD</th> </tr> <tr> <td>Ubicación</td> <th>{{ info.ubicacion_nombre }}</th> <td>Gestor</td> <th> {% if info.gestor is defined and info.gestor != null %} {% if info.nombre is defined %}{{ info.nombre }}{% endif %} {% if info.papellido is defined %}{{ info.papellido }}{% endif %} {% if info.sapellido is defined %}{{ info.sapellido }}{% endif %} {% endif %} </th> </tr> <tr> <td>Periodo</td> <th>{{ info.periodo }}</th> <td>Tipo de Mantenimiento</td> <th> {% if info.tipo_mantenimiento == "MC" %} Mantenimiento Correctivo {% else %} Mantenimiento Preventivo {% endif %} </th> </tr> <tr> <td>Incidente</td> <th>{{ info.falla }}</th> <td>Servicio Realizado</td> <th>{{ info.srealizado }}</th> </tr> <tr> <td>Fecha de Registro</td> <th> {% if info.fregistro != "" %} {{ info.fregistro|format_datetime('medium', 'short', locale='es') }} {% endif %} </th> <td>Fecha de Atención</td> <th> {% if info.fatencion != "" %} {{ info.fatencion|format_datetime('medium', 'short', locale='es') }} {% endif %} </th> </tr> <tr> <td>Fecha de Finalización</td> <th> {% if info.ffin != "" %} {{ info.ffin|format_datetime('medium', 'short', locale='es') }} {% endif %} </th> <td>Fecha de Evaluación</td> <th> {% if info.fevaluacion != "" %} {{ info.fevaluacion|format_datetime('medium', 'short', locale='es') }} {% endif %} </th> </tr> <tr> <td>Refacciones</td> <th> {% if info.refacciones == 0 or info.refacciones == null %} No {% else %} Si {% endif %} </th> <td>Estatus</td> <th> {% if info.estatus == 1 %} <div class="badge bg-gradient-warning text-white" style="width: 6rem;">Pendiente</div> {% elseif info.estatus == 2 %} <div class="badge bg-gradient-danger" style="width: 6rem;">En proceso</div> {% elseif info.estatus == 3 %} <div class="badge bg-gradient-primary" style="width: 6rem;">Atendido</div> {% elseif info.estatus == 4 %} <div class="badge bg-gradient-success" style="width: 6rem;">Evaluado</div> {% endif %} </th> </tr> </tbody> </table> </div> </div> {% endif %} <div class="modal-footer"> <button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Cerrar</button> </div> </div></div><!-- /div -->