This commit is contained in:
2025-08-31 12:12:04 +02:00
parent f6643b712b
commit dbf53a9c30
13 changed files with 906 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{{define "title"}}Produkt anlegen Kücheninventar{{end}}
{{define "content"}}
<section class="card">
<h2>Neues Produkt</h2>
<form method="post" enctype="multipart/form-data" action="/products/create">
<div class="form-grid">
<label>Name*<input required name="name"/></label>
<label>Hersteller<input name="manufacturer"/></label>
<label>Größe / Inhalt<input name="size" placeholder="z.B. 500 g"/></label>
<label>Bevorzugter Händler<input name="preferred_vendor" placeholder="z.B. REWE"/></label>
<label>Mindestbestand<input type="number" min="0" name="min_stock" value="0"/></label>
<label>Bild (Datei)<input type="file" name="image_file" accept="image/*"/></label>
<label>Oder Bild-URL<input type="url" name="image_url" placeholder="https://…"/></label>
</div>
<button class="btn">Anlegen</button>
</form>
</section>
{{end}}