blob: 47aebde9ca389279c0b467cb4bdd84ed6fd86b5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{% extends 'base.twig' %}
{% block main %}
<h3>Home</h3>
<pre>
{{ dump(debug) }}
</pre>
<section class="content">
<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>
</section>
{% endblock %}
|