templates/login/frontend-login.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}Login{% endblock %}
  3. {% block body %}
  4.     <div class="container d-flex align-items-center justify-content-center h-100">
  5.         <div class="d-flex flex-column bd-highlight mb-3 card shadow customer-login" style="background-color: #932444; border-radius: 0">
  6.             <div class="p-2 bd-highlight">
  7.                 {% if error %}
  8.                     <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  9.                 {% endif %}
  10.             </div>
  11.             <div class="p-2 bd-highlight text-center">
  12.                 <img width="200" height="200" src="{{ asset('image/logo.png') }}">
  13.             </div>
  14.             <div class="p-2 bd-highlight">
  15.                 <form action="{{ path('customer.login') }}" method="post">
  16.                     <input class="form-control mt-1" type="text" placeholder="apikey" id="_username"
  17.                            name="_username"/>
  18.                     <input type="hidden" id="_password" value="" name="_password"/>
  19.                     <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  20.                     <button class="form-control btn btn-primary mt-2"
  21.                             onclick="document.getElementById('_password').value = document.getElementById('_username').value"
  22.                             type="submit">Login
  23.                     </button>
  24.                 </form>
  25.             </div>
  26.         </div>
  27.     </div>
  28. {% endblock %}