19 lines
705 B
HTML
19 lines
705 B
HTML
{% extends "base.html"%}
|
|
{% set title = "Produkt hinzufügen" %}
|
|
{% block content %}
|
|
<h1>Konsumat hinzufügen</h1>
|
|
{% if error %}
|
|
<div class="somethingbad">Fehler: {{ error }}</div>
|
|
{% endif %}
|
|
{% if success %}
|
|
<div class="somethinggood">{{ success }}</div>
|
|
{% endif %}
|
|
<form name="user" method="post" action="/manage_beverages/add" enctype="multipart/form-data">
|
|
Produktname:<br><input type="text" name="name" required><br>
|
|
Preis:<br><input type="number" name="price" step="any" required value="0.0" /> € <br>
|
|
Angezeigt: <input type="checkbox" name="isshown" checked /><br>
|
|
Bild: <input type="file" name="file"><br>
|
|
<input type="submit" value="Hinzufügen">
|
|
</form>
|
|
{% endblock %}
|