Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1618d2 commit bc623c0Copy full SHA for bc623c0
src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
@@ -31,8 +31,18 @@
31
32
{% block collection_widget %}
33
{% spaceless %}
34
+ {% set attr = attr|merge({'data-collection': true}) %}
35
+
36
{% if prototype is defined %}
- {% set attr = attr|merge({'data-prototype': form_row(prototype) }) %}
37
+ {% set attr = attr|merge({'data-collection-prototype': form_row(prototype)}) %}
38
+ {% endif %}
39
40
+ {% if allow_delete is defined %}
41
+ {% set attr = attr|merge({'data-collection-delete': allow_delete}) %}
42
43
44
+ {% if allow_add is defined %}
45
+ {% set attr = attr|merge({'data-collection-add': allow_add}) %}
46
{% endif %}
47
{{ block('form_widget') }}
48
{% endspaceless %}
0 commit comments