lego/back-end/src/templates/pieces.ejs
2024-12-04 10:50:01 +00:00

53 lines
1.0 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Liste des membres
</title>
<%- include('partials/links.ejs') %>
</head>
<body>
<%- include('partials/header.ejs') %>
<main>
<h1>
Liste des pièces
</h1>
<div class="table">
<table>
<thead>
<tr>
<th>Id Pièce</th>
<th>Couleur</th>
<th>Motif</th>
<th>Forme</th>
</tr>
</thead>
<tbody>
<% pieces.forEach(function(p) { %>
<tr>
<td><%=p.id_piece%></td>
<td><%=p.colour.name%> (<%=p.colour.id_colour%>)</td>
<td><%=p.pattern.name%> (<%=p.pattern.id_pattern%>)</td>
<td><%=p.shape.name%> (<%=p.shape.id_shape%>)</td>
</tr>
<% }); %>
</tbody>
</table>
<div class="box"></div>
</div>
</main>
</body>
</html>