src/Eccube/Resource/template/admin/login.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends '@admin/login_frame.twig' %}
  9. {% form_theme form '@admin/Form/bootstrap_4_horizontal_layout.html.twig' %}
  10. {% block main %}
  11.     <div class="container" style="margin-top: 150px;">
  12.         <div class="row">
  13.             <div class="col-12 col-md-6 offset-md-3 col-lg-4 offset-lg-4">
  14.                 <div class="text-center p-5 bg-white">
  15.                     {{ include('@admin/alert.twig') }}
  16.                     <form name="form1" id="form1" method="post" action="{{ path('admin_login') }}">
  17.                         <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  18.                         <p><img src="{{ asset('assets/img/logo2.png', 'admin') }}" width="106"></p>
  19.                         <div class="mb-3">
  20.                             {{ form_widget(form.login_id, {'id': 'login_id', 'attr': {'placeholder': 'admin.login.login_id', 'autofocus': true}}) }}
  21.                         </div>
  22.                         <div class="mb-3">
  23.                             {{ form_widget(form.password, {'attr': {'placeholder': 'admin.login.password'}}) }}
  24.                         </div>
  25.                         {% if error %}
  26.                             <div class="mb-3">
  27.                                 <span class="text-danger">{{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}</span>
  28.                             </div>
  29.                         {% endif %}
  30.                         <div class="d-grid gap-2">
  31.                             <button type="submit" class="btn btn-primary btn-lg w-100">{{ 'admin.login.login'|trans }}</button>
  32.                         </div>
  33.                         {{ form_rest(form) }}
  34.                     </form>
  35.                 </div>
  36.             </div>
  37.             <div class="col-12">
  38.                 <p class="text-center mt-3">
  39.                     <small>Copyright &copy; 2000-{{ "now"|date("Y") }} EC-CUBE CO.,LTD. All Rights Reserved.</small>
  40.                 </p>
  41.             </div>
  42.         </div>
  43.     </div>
  44. {% endblock %}