Versie 1.0
This commit is contained in:
@@ -18,8 +18,15 @@
|
||||
<div class="list-group">
|
||||
<% products.forEach(product => { %>
|
||||
<div class="list-group-item">
|
||||
<strong><%= product.category_icon || "" %> <%= product.name %></strong>
|
||||
<div class="text-secondary"><%= product.category_name || "Geen categorie" %></div>
|
||||
<div class="d-flex align-items-start justify-content-between gap-3">
|
||||
<div>
|
||||
<strong><%= product.category_icon || "" %> <%= product.name %></strong>
|
||||
<div class="text-secondary"><%= product.category_name || "Geen categorie" %></div>
|
||||
</div>
|
||||
<a class="btn btn-sm btn-outline-primary" href="/products/<%= product.id %>/edit">
|
||||
Wijzigen
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<% }); %>
|
||||
</div>
|
||||
@@ -49,5 +56,18 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mt-3">
|
||||
<div class="card-header"><h3 class="card-title">Producten in bulk laden</h3></div>
|
||||
<div class="card-body">
|
||||
<form method="post" action="/products/import" enctype="multipart/form-data">
|
||||
<label class="form-label" for="product-import-file">CSV-bestand</label>
|
||||
<input id="product-import-file" class="form-control mb-3" type="file" name="file"
|
||||
accept=".csv,text/csv" required>
|
||||
<div class="text-secondary small mb-3">Kolommen: name, category, barcode. Alleen name is verplicht.</div>
|
||||
<button class="btn btn-outline-primary w-100" type="submit">CSV importeren</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user