{% form_theme form form.getOption('theme') %}
<form action="{% path 'doctrine_user_user_create' %}" {{ form|render_enctype }} method="POST" class="doctrine_user_user_new">
    <ul>
        {% for field in form.getVisibleFieldsRecursively() %}
            {{ field|render }}
        {% endfor %}
        <li>
            <input type="submit" value="{% trans 'Create user' from 'DoctrineUserBundle' %}" />
        </li>
    </ul>
    {{ form|render_hidden }}
</form>

{% form_theme form form.getOption('theme') %}
<form action="{% path 'doctrine_user_user_create' %}" {{ form|render_enctype }} method="POST" class="doctrine_user_user_new">
    <ul>
        {% for field in form.getVisibleFieldsRecursively() %}
            {{ field|render_label }}
            {{ field|render }}
            {{ field|render_errors }}
        {% endfor %}
        <li>
            <input type="submit" value="{% trans 'Create user' from 'DoctrineUserBundle' %}" />
        </li>
    </ul>
    {{ form|render_hidden }}
</form>

Update twig syntax in new user template
Update twig syntax in new user template
