Favorieten toegevoegd aan de navigatiebalk en sidebar.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<div class="page-header mb-4">
|
||||
<h1>💙 Favorieten</h1>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<% if (favorites.length === 0) { %>
|
||||
<p class="text-secondary">Je hebt nog geen favoriete producten.</p>
|
||||
<% } else { %>
|
||||
<div class="list-group">
|
||||
<% favorites.forEach(product => { %>
|
||||
<div class="list-group-item d-flex justify-content-between align-items-center gap-3">
|
||||
<div>
|
||||
<strong><%= product.category_icon || "" %> <%= product.name %></strong>
|
||||
<div class="text-secondary"><%= product.category_name || "Geen categorie" %></div>
|
||||
</div>
|
||||
|
||||
<form method="post" action="/favorites/<%= product.id %>/delete">
|
||||
<button class="btn btn-sm btn-outline-danger" type="submit">Verwijder</button>
|
||||
</form>
|
||||
</div>
|
||||
<% }); %>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user