change_password_content.html.twig 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. {{ form_start(form, { 'action': path('fos_user_change_password'), 'attr': { 'class': 'fos_user_change_password col-md-6' } }) }}
  2. {{ form_errors(form) }}
  3. <div class="form-group clearfix">
  4. {{ form_label(form.current_password, 'Current password') }}
  5. <div class="input-group">
  6. {{ form_errors(form.current_password) }}
  7. {{ form_widget(form.current_password) }}
  8. <span class="input-group-addon"><span class="icon-key"></span></span>
  9. </div>
  10. </div>
  11. <div class="form-group clearfix">
  12. {{ form_label(form.plainPassword.first, 'New password') }}
  13. <div class="input-group">
  14. {{ form_errors(form.plainPassword.first) }}
  15. {{ form_widget(form.plainPassword.first) }}
  16. <span class="input-group-addon"><span class="icon-lock"></span></span>
  17. </div>
  18. </div>
  19. <div class="form-group clearfix">
  20. {{ form_label(form.plainPassword.second, 'Confirm new password') }}
  21. <div class="input-group">
  22. {{ form_errors(form.plainPassword.second) }}
  23. {{ form_widget(form.plainPassword.second) }}
  24. <span class="input-group-addon"><span class="icon-lock-open"></span></span>
  25. </div>
  26. </div>
  27. {{ form_widget(form) }}
  28. <input type="submit" class="btn btn-block btn-inverse btn-lg" value="{{ 'change_password.submit'|trans({}, 'FOSUserBundle') }}" />
  29. {{ form_end(form) }}