zie vorige message
This commit is contained in:
+11
-3
@@ -1,6 +1,12 @@
|
||||
<div class="page-header mb-4">
|
||||
<a href="/lists" class="btn btn-link">← Terug</a>
|
||||
<h1><%= list.name %></h1>
|
||||
<a href="/lists" class="btn btn-outline-secondary mb-3">← Terug naar lijsten</a>
|
||||
<div class="d-flex flex-wrap align-items-center justify-content-between gap-3">
|
||||
<h1 class="mb-0"><%= list.name %></h1>
|
||||
<form method="post" action="/lists/<%= list.id %>/items/reset"
|
||||
onsubmit="return confirm('Alle producten weer openzetten?');">
|
||||
<button class="btn btn-outline-primary" type="submit">Alles weer openzetten</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@@ -14,7 +20,9 @@
|
||||
<% items.forEach(item => { %>
|
||||
<div class="list-group-item d-flex align-items-center">
|
||||
<form method="post" action="/lists/<%= list.id %>/items/<%= item.id %>/toggle">
|
||||
<button class="btn btn-sm me-2" type="submit" aria-label="Product afvinken">
|
||||
<button class="btn btn-sm me-2 list-check-button" type="submit"
|
||||
aria-label="Product <%= item.checked ? 'weer openzetten' : 'afvinken' %>"
|
||||
<% if (item.checked) { %>onclick="return confirm('Product weer openzetten?');"<% } %>>
|
||||
<%= item.checked ? "☑" : "☐" %>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user