cml04-falcon-ui/templates/index.html
2024-10-09 16:02:06 +02:00

130 lines
5.5 KiB
HTML

{{define "title"}}Falcon UI{{end}}
{{define "body"}}
<div class="container is-fluid">
<hr>
<h3 class="title is-3">Panel principal</h3>
<div class="columns is-multiline">
<div class="column is-12">
<nav class="panel is-link">
<p class="panel-heading"><i class="fas fa-chart-line" aria-hidden="true"></i> Estadísticas turno</p>
<div class="panel-block">
<table class="table">
<thead>
<tr>
<td>Paq.Etiquetados</td>
<td>Eti.Leídas</td>
<td>Paq.Confirmados</td>
</tr>
</thead>
<!-- <tfoot>
<tr>
<td>Paq.Etiquetados</td>
<td>Eti.Leídas</td>
<td>Paq.Confirmados</td>
</tr>
</tfoot> -->
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</div>
</nav>
</div>
<div class="column is-one-quarter">
<nav class="panel is-link">
<p class="panel-heading"><i class="fas fa-barcode"></i> Etiquetas leídas</p>
<div class="panel-block">
<table class="table">
<thead>
<tr>
<th><abbr title="Unidad de almacén">UA</abbr></th>
<th>Origen</th>
<th>Fecha</th>
</tr>
</thead>
<tfoot>
<tr>
<th><abbr title="Unidad de almacén">UA</abbr></th>
<th>Origen</th>
<th>Fecha</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>9401234567</td>
<td>1</td>
<td>05/10/2024 08:19</td>
</tr>
</tbody>
</table>
</div>
</nav>
</div>
{{ if .Bundles }}
<div class="column">
<nav class="panel is-link">
<p class="panel-heading"><i class="fas fa-box"></i> Paquetes</p>
<div class="panel-block">
<table class="table">
<thead>
<tr>
<th><abbr title="Unidad de almacén">UA</abbr></th>
<th>PO</th>
<th>CO</th>
<th>Calidad</th>
<th>Código SAP</th>
<th>Producto</th>
<th>Peso</th>
<th>Desvío</th>
<th><abbr title="Paquete confirmado">Conf.</abbr></th>
<th><abbr title="Nivel 3">N3</abbr></th>
<th>SAP</th>
<th>Fecha</th>
</tr>
</thead>
<tfoot>
<tr>
<th><abbr title="Unidad de almacén">UA</abbr></th>
<th>PO</th>
<th>CO</th>
<th>Calidad</th>
<th>Código SAP</th>
<th>Producto</th>
<th>Peso</th>
<th>Desvío</th>
<th><abbr title="Paquete confirmado">Conf.</abbr></th>
<th><abbr title="Nivel 3">N3</abbr></th>
<th>SAP</th>
<th>Fecha</th>
</tr>
</tfoot>
<tbody>
{{ range .Bundles }}
<tr>
<td><a href="">{{ .Nromatricula }}</a></td>
<td><a href="">{{ .Po }}</a></td>
<td><a href="">{{ .Co }}</a></td>
<td>{{ .Calidad }}</td>
<td>{{ .Matnr }}</td>
<td>{{ .SeccionTipo }}</td>
<td>{{ .PaquetePeso }}</td>
<td>{{ .FormatDesvio }}</td>
<td>{{if .L3Sended }} Sí {{ else }} No {{ end }}</td>
<td>{{if .Confirmed }} Sí {{ else }} No {{ end }}</td>
<td>{{if .SAP }} Sí {{ else }} No {{ end }}</td>
<td>{{ .FormatCreatedAt }}</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</nav>
</div>
{{ end }}
</div>
</div>
{{ end }}