vendor/sonata-project/user-bundle/src/Resources/views/Admin/Security/Resetting/request.html.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <[email protected]>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. {% extends base_template %}
  8. {% block sonata_nav %}
  9. {% endblock sonata_nav %}
  10. {% block logo %}
  11. {% endblock logo %}
  12. {% block sonata_left_side %}
  13. {% endblock sonata_left_side %}
  14. {% block body_attributes %}class="sonata-bc login-page"{% endblock %}
  15. {% block sonata_wrapper %}
  16.     <div class="login-box">
  17.         {% block login_box_header %}
  18.             <div class="login-logo">
  19.                 <a href="{{ path('sonata_admin_dashboard') }}">
  20.                     {% if admin_pool.getOption('title_mode') in ['single_image', 'both'] %}
  21.                         <div>
  22.                             <img style="width:64px;" src="{{ asset(admin_pool.titlelogo) }}" alt="{{ admin_pool.title }}">
  23.                         </div>
  24.                     {% endif %}
  25.                     {% if admin_pool.getOption('title_mode') in ['single_text', 'both'] %}
  26.                         <span>{{ admin_pool.title }}</span>
  27.                     {% endif %}
  28.                 </a>
  29.             </div>
  30.         {% endblock %}
  31.         <div class="login-box-body">
  32.             {% block sonata_user_reset_request_form %}
  33.                 {% block sonata_user_reset_request_error %}
  34.                     {% if invalid_username is defined %}
  35.                         <div class="alert alert-danger">
  36.                             {{ 'resetting.request.invalid_username'|trans({'%username%': invalid_username}, 'FOSUserBundle') }}
  37.                         </div>
  38.                     {% endif %}
  39.                 {% endblock %}
  40.                 <p class="login-box-msg">{{ 'resetting.request.submit'|trans({}, 'FOSUserBundle') }}</p>
  41.                 <form action="{{ path('sonata_user_admin_resetting_send_email') }}" method="post" role="form">
  42.                     <div class="form-group has-feedback">
  43.                         <input type="text" class="form-control" id="username"  name="username" required="required"
  44.                             placeholder="{{ 'resetting.request.username'|trans({}, 'FOSUserBundle')|replace({':': ''}) }}"/>
  45.                         <span class="glyphicon glyphicon-user form-control-feedback"></span>
  46.                     </div>
  47.                     <div class="row">
  48.                         <div class="col-xs-12">
  49.                             <button type="submit" class="btn btn-primary btn-block btn-flat">
  50.                                 {{ 'resetting.request.submit'|trans({}, 'FOSUserBundle') }}
  51.                             </button>
  52.                         </div>
  53.                     </div>
  54.                 </form>
  55.                 <a href="{{ path('sonata_user_admin_security_login') }}">
  56.                     {{ 'title_user_authentication'|trans({}, 'SonataUserBundle') }}
  57.                 </a>
  58.             {% endblock %}
  59.         </div>
  60.     </div>
  61. {% endblock sonata_wrapper %}