request.html.twig 1.0 KB

1234567891011121314151617181920212223242526272829
  1. {% extends "FOSUserBundle::layout.html.twig" %}
  2. {% trans_default_domain 'FOSUserBundle' %}
  3. {% block fos_user_header %}
  4. <h2 class="title">
  5. Resetting password
  6. </h2>
  7. {% endblock %}
  8. {% block fos_user_content %}
  9. <form action="{{ path('fos_user_resetting_send_email') }}" method="POST" class="fos_user_resetting_request col-md-6">
  10. {% if invalid_username is defined %}
  11. <div class="alert alert-warning">
  12. <p>{{ 'resetting.request.invalid_username'|trans({'%username%': invalid_username}) }}</p>
  13. </div>
  14. {% endif %}
  15. <div class="form-group">
  16. <label for="username">{{ 'resetting.request.username'|trans }}</label>
  17. <div class="input-group">
  18. <input type="text" id="username" name="username" required="required" class="form-control" />
  19. <span class="input-group-addon"><span class="icon-user"></span></span>
  20. </div>
  21. </div>
  22. <input type="submit" class="btn btn-block btn-inverse btn-lg" value="{{ 'resetting.request.submit'|trans }}" />
  23. </form>
  24. {% endblock %}