summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/home.twig12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/home.twig b/templates/home.twig
index bc5b812..d4e86ed 100644
--- a/templates/home.twig
+++ b/templates/home.twig
@@ -1,2 +1,14 @@
<h3>Home</h3>
+<form action="/card/add" method="post" enctype="multipart/form-data">
+ {% for key, field in fields %}
+ <label>
+ {{ key }} <input type="text" name="{{ field }}">
+ </label>
+ {% endfor %}
+ <label>
+ Image <input type="file" name="images[]" multiple>
+ </label>
+ <input type="submit" value="Hinzufügen">
+</form>
+