templates/prog_solicitud/informacion_solicitud.html.twig line 1

Open in your IDE?
  1. {# Plantilla de Twig #}
  2. <!-- Modal with form -->
  3. <!-- div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true" -->
  4. <div class="modal-dialog modal-lg" role="document">
  5.     <div class="modal-content p-4">
  6.         {% if info is defined %}
  7.             <div class="modal-header">
  8.                 <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>{{ info.nombre }} {{ info.papellido }} {{ info.sapellido }}</b></h5>
  9.                 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  10.                     <span aria-hidden="true">&times;</span>
  11.                 </button>
  12.             </div>
  13.             <div class="card-body">
  14.                 <div class="table-responsive">
  15.                     <table class="table table-hover">
  16.                         <thead></thead>
  17.                         <tbody>
  18.                             <tr>
  19.                                 <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>
  20.                             </tr>
  21.                             <tr>
  22.                                 <td>Marbete</td>
  23.                                 <th>{{ info.marbete }}</th>
  24.                                 <td>Descripción</td>
  25.                                 <th>{{ info.descripcion }}</th>
  26.                             </tr>
  27.                             <tr>
  28.                                 <td>Marca</td>
  29.                                 <th>{{ info.marca }}</th>
  30.                                 <td>Modelo</td>
  31.                                 <th>{{ info.modelo }}</th>
  32.                             </tr>
  33.                             <tr>
  34.                                 <td colspan="2" class="text-center">Serie</td>
  35.                                 <th colspan="2" class="text-center">{{ info.serie }}</th>
  36.                             </tr>
  37.                             <tr>
  38.                                 <th colspan="4" class="text-center text-white" style="background: #2dbc4e">INFORMACIÓN DE SOLICITUD</th>
  39.                             </tr>
  40.                             <tr>
  41.                                 <td>Ubicación</td>
  42.                                 <th>{{ info.ubicacion_nombre }}</th>
  43.                                 <td>Gestor</td>
  44.                                 <th> {% if info.gestor is defined and info.gestor != null %}
  45.                                         {{ info.nombre }} {{ info.papellido }} {{ info.sapellido }}
  46.                                     {% endif %}
  47.                                 </th>
  48.                             </tr>
  49.                             <tr>
  50.                                 <td>Periodo</td>
  51.                                 <th>{{ info.periodo }}</th>
  52.                                 <td>Tipo de Mantenimiento</td>
  53.                                 <th>
  54.                                     {% if info.tipo_mantenimiento == "MC" %}
  55.                                         Mantenimiento Correctivo
  56.                                     {% else %}
  57.                                         Mantenimiento Preventivo
  58.                                     {% endif %}
  59.                                 </th>
  60.                             </tr>
  61.                             <tr>
  62.                                 <td>Incidente</td>
  63.                                 <th>{{ info.falla }}</th>
  64.                                 <td>Servicio Realizado</td>
  65.                                 <th>{{ info.srealizado }}</th>
  66.                             </tr>
  67.                             <tr>
  68.                                 <td>Fecha de Registro</td>
  69.                                 <th>
  70.                                     {% if info.fregistro != "" %}
  71.                                         {{ info.fregistro|format_datetime('medium', 'short', locale='es') }}
  72.                                     {% endif %}
  73.                                 </th>
  74.                                 <td>Fecha de Atención</td>
  75.                                 <th>
  76.                                     {% if info.fatencion != "" %}
  77.                                         {{ info.fatencion|format_datetime('medium', 'short', locale='es') }}
  78.                                     {% endif %}
  79.                                 </th>
  80.                             </tr>
  81.                             <tr>
  82.                                 <td>Fecha de Finalización</td>
  83.                                 <th>
  84.                                     {% if info.ffin != "" %}
  85.                                         {{ info.ffin|format_datetime('medium', 'short', locale='es') }}
  86.                                     {% endif %}
  87.                                 </th>
  88.                                 <td>Fecha de Evaluación</td>
  89.                                 <th>
  90.                                     {% if info.fevaluacion != "" %}
  91.                                         {{ info.fevaluacion|format_datetime('medium', 'short', locale='es') }}
  92.                                     {% endif %}
  93.                                 </th>
  94.                             </tr>
  95.                             <tr>
  96.                                 <td>Refacciones</td>
  97.                                 <th>
  98.                                     {% if info.refacciones == 0 or info.refacciones == null %}
  99.                                         No
  100.                                     {% else %}
  101.                                         Si
  102.                                     {% endif %}
  103.                                 </th>
  104.                                 <td>Estatus</td>
  105.                                 <th>
  106.                                     {% if info.estatus == 1 %}
  107.                                         <div class="badge bg-gradient-warning text-white" style="width: 6rem;">Pendiente</div>
  108.                                     {% elseif info.estatus == 2 %}
  109.                                         <div class="badge bg-gradient-danger" style="width: 6rem;">En proceso</div>
  110.                                     {% elseif info.estatus == 3 %}
  111.                                         <div class="badge bg-gradient-primary" style="width: 6rem;">Atendido</div>
  112.                                     {% elseif info.estatus == 4 %}
  113.                                         <div class="badge bg-gradient-success" style="width: 6rem;">Evaluado</div>
  114.                                     {% endif %}
  115.                                 </th>
  116.                             </tr>
  117.                         </tbody>
  118.                     </table>
  119.                 </div>
  120.             </div>
  121.         {% endif %}
  122.         <div class="modal-footer">
  123.             <button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Cerrar</button>
  124.         </div>
  125.     </div>
  126. </div>
  127. <!-- /div -->