Skip to content

Commit 4dad90f

Browse files
committed
[Site] Use form_start for form like in a normal situation
1 parent f88979d commit 4dad90f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ux.symfony.com/templates/components/RegistrationForm.html.twig

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
{% if isSuccessful %}
55
<div>Welcome {{ newUserEmail}}!</div>
66
{% else %}
7-
<form
8-
novalidate
9-
data-action="live#action"
10-
data-action-name="prevent|saveRegistration"
11-
data-model="on(change)|*"
12-
>
7+
{{ form_start(form, {
8+
attr: {
9+
'novalidate': true,
10+
'data-action': 'live#action',
11+
'data-action-name': 'prevent|saveRegistration',
12+
}
13+
}) }}
1314
{{ form_row(form.email) }}
1415
{{ form_row(form.password) }}
1516
{{ form_row(form.terms) }}

0 commit comments

Comments
 (0)