Skip to content

Commit eeafe41

Browse files
committed
Fix twig syntax
1 parent 50689c7 commit eeafe41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

forms.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,15 +974,15 @@ This is a creation user form::
974974

975975
The extra fields can be injected like this:
976976

977-
.. code-block:: twig
977+
.. code-block:: html+twig
978978

979979
{# templates/user/create.html.twig #}
980980
{{ form_start(form) }}
981981
{{ form_row(form.username) }}
982982
{{ form_row(form.email) }}
983983

984984
{# Hidden field to send additional sponsorship code #}
985-
<input type="hidden" name="user_create[referralCode]" value="{{ referralCode }}" />
985+
<input type="hidden" name="user_create[referralCode]" value="{{ referralCode }}"/>
986986

987987
<button type="submit">Submit</button>
988988
{{ form_end(form) }}

0 commit comments

Comments
 (0)