{% form_theme form 'MuzichCoreBundle:Form:errors.html.twig' %}

{{ form_errors(form) }}

{% if errors_pers is defined %}
<ul class="error_list">
  {% for error in errors_pers %}
    <li>{{ error }}</li>
  {% endfor %}
</ul>
{% endif %}
    
  <div class="field">
    {{ form_errors(form.plain_password.first) }}
    {{ form_label(form.plain_password.first, 'password.new.first'|trans({}, 'userform')) }}
    {{ form_widget(form.plain_password.first, {'attr':{'class':'niceinput'}}) }}
  </div>

  <div class="field">
    {{ form_errors(form.plain_password.second) }}
    {{ form_label(form.plain_password.second, 'password.new.second'|trans({}, 'userform')) }}
    {{ form_widget(form.plain_password.second, {'attr':{'class':'niceinput'}}) }}
  </div>

{{ form_rest(form) }}