回答編集履歴
1
キーが質問文に記載されていたので修正
test
CHANGED
@@ -22,10 +22,24 @@
|
|
22
22
|
|
23
23
|
```
|
24
24
|
|
25
|
-
|
25
|
+
または
|
26
26
|
|
27
27
|
```Twig
|
28
28
|
|
29
|
+
{% for key, child in form.payment %}
|
30
|
+
|
31
|
+
<li>
|
32
|
+
|
29
|
-
{{ form_widget(child, {'attr': {'class': 'payment' }}) }}{{ key ==
|
33
|
+
{{ form_widget(child, {'attr': {'class': 'payment' }}) }}{{ key == 2 ? '振込予定日を「ご要望欄」に記載下さいませ。' }}
|
34
|
+
|
35
|
+
{% if form.payment.vars.choices[key].data.payment_image is not null %}
|
36
|
+
|
37
|
+
<img src="{{ app.config.image_save_urlpath }}/{{ form.payment.vars.choices[key].data.payment_image }}">
|
38
|
+
|
39
|
+
{% endif %}
|
40
|
+
|
41
|
+
</li>
|
42
|
+
|
43
|
+
{% endfor %}
|
30
44
|
|
31
45
|
```
|