I just started using Twig and I\'m trying to build a registration form. To add a password/re-enter password field I use the \"repeated\" filetype:
->add(\
After a random guess I solved my own problem. I'll post it here so others who might come to this question by searching also know the answer:
{% for passwordField in form.password %}
{{ form_label(passwordField, null, { 'attr': {'class': 'form-label'} }) }}
{{ form_widget(passwordField, { 'attr': {'class': 'form-input'} }) }}
{% endfor %}