feat: add possible models by box
This commit is contained in:
parent
93604300cb
commit
039f7fbce6
@ -25,26 +25,47 @@
|
||||
<pre>
|
||||
<main>
|
||||
id : <%= box.id %>
|
||||
date : <%= box.date %>
|
||||
pièces :
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id pièce</th>
|
||||
<th>Quantité pieces</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% box.pieces.forEach(function(pair) { %>
|
||||
<tr>
|
||||
<td><a href="/pieces/<%=pair.first.id_piece%>"><i class="fa-solid fa-puzzle-piece"></i> <%= pair.first.id_piece%></a></td>
|
||||
<td><%= pair.second%></td>
|
||||
<td><a href="javascript: deletePiece('<%= pair.first.id_piece %>')"><i class="fa-solid fa-trash"></i></a></td>
|
||||
</tr>
|
||||
<% }); %>
|
||||
</tbody>
|
||||
</table>
|
||||
date : <%= box.date %>
|
||||
<h2>Liste des pièces</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id pièce</th>
|
||||
<th>Quantité pieces</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% box.pieces.forEach(function(pair) { %>
|
||||
<tr>
|
||||
<td><a href="/pieces/<%=pair.first.id_piece%>"><i class="fa-solid fa-puzzle-piece"></i> <%= pair.first.id_piece%></a></td>
|
||||
<td><%= pair.second%></td>
|
||||
<td><a href="javascript: deletePiece('<%= pair.first.id_piece %>')"><i class="fa-solid fa-trash"></i></a></td>
|
||||
</tr>
|
||||
<% }); %>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Liste des modèles constructibles</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id modèle</th>
|
||||
<th>Nom</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% box.models.forEach(function(model) { %>
|
||||
<tr>
|
||||
<td><%=model.id%></td>
|
||||
<td><%=model.name%></td>
|
||||
<td><a href="/models/byname/<%=model.name%>"><i class="fa-solid fa-eye"></i></a></td>
|
||||
</tr>
|
||||
<% }); %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h2>Ajouter une pièce</h2>
|
||||
<form>
|
||||
<label for="numero_piece">Numero Piece</label>
|
||||
<input type="number" id="numero_piece" name="numero_piece" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user