templates/mantenimiento/diagrama_tarea/pedidos.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1">
  6.             <link rel="preconnect" href="https://fonts.googleapis.com">
  7.             <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  8.             <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
  9.             
  10.             <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" 
  11.                   integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  12.             <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  13.             <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.2/font/bootstrap-icons.min.css">
  14.             <link href="https://cdn.jsdelivr.net/npm/fastbootstrap@2.2.0/dist/css/fastbootstrap.min.css" rel="stylesheet" integrity="sha256-V6lu+OdYNKTKTsVFBuQsyIlDiRWiOmtC8VQ8Lzdm2i4=" crossorigin="anonymous">
  15.      <style>
  16.             .alto {
  17.               height: 100px;
  18.             }
  19.             .ancho {
  20.                 width: 105px;
  21.                 min-width: 50px;
  22.               max-width: 50px;
  23.             }
  24.     </style>
  25.      </head>
  26.      <body class="container">
  27.          <ul>
  28.             <li>Informe de Mantenimiento</li>
  29.             <li>Periodo: {{ data.desde|date('d/m/Y') }} - {{ data.hasta|date('d/m/Y') }}</li>
  30.          </ul>
  31.                  
  32.             <table id="example" class="table table-striped table-bordered table-hover">
  33.                 <thead>
  34.                     <tr>
  35.                         <th>Estado</th>
  36.                         <th>Fecha Pedido</th>
  37.                         <th>Fecha Realizacion</th>
  38.                         <th>Fecha A Realizar</th>
  39.                         <th>Sector</th>
  40.                         <th>Departamento</th>
  41.                         <th>Detalle</th>
  42.                     </tr>
  43.                 </thead>
  44.                 <tbody>
  45.                 {% for pedido_reparacion in pedido_reparacions %}
  46.                         {% set color = 'black' %}
  47.                         {% if pedido_reparacion.realizada is defined %}
  48.                             {% if pedido_reparacion.realizada %}
  49.                                 {% set color = 'green' %}
  50.                             {% else %}
  51.                                 {% if pedido_reparacion.diagramado %}
  52.                                     {% set color = 'red' %}
  53.                                 {% endif %}
  54.                             {% endif %}
  55.                         {% else %}
  56.                             {% if pedido_reparacion.diagramado %}
  57.                                 {% set color = 'red' %}
  58.                             {% endif %}
  59.                         {% endif %}
  60.                     <tr>
  61.                         <td style="color: {{ color }}">
  62.                             {{ pedido_reparacion.realizada is defined ? pedido_reparacion.realizada ? 'Realizado' : 'Pendiente Realizar' : 'Pendiente Diagramar' }}
  63.                         </td>
  64.                         <td style="color: {{ color }}">{{ pedido_reparacion.fechaPedido|date('d/m/Y') }}</td>
  65.                         <td style="color: {{ color }}">
  66.                             {{ pedido_reparacion.realizada is defined ? pedido_reparacion.realizada ? pedido_reparacion.fecha|date('d/m/Y') : '' : '' }}</td>
  67.                         <td style="color: {{ color }}">
  68.                             {{pedido_reparacion.realizada is defined ? not pedido_reparacion.realizada ? pedido_reparacion.fechaDiagrama|date('d/m/Y') : '' : '' }}</td>
  69.                         <td style="color: {{ color }}">{{ pedido_reparacion.sector}}</td>
  70.                         <td style="color: {{ color }}">
  71.                                 {{ pedido_reparacion.departamento }}
  72.                         </td>
  73.                         <td style="color: {{ color }}">{{ pedido_reparacion.detalle }}</td>
  74.                     </tr>
  75.                 {% endfor %}
  76.                 </tbody>
  77.             </table>
  78.                      <br>
  79.         
  80.      </body>
  81. </html>