templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block stylesheets %}
  3.     <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
  4.     <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
  5.     <style>
  6.         /*
  7.  * Specific styles of signin component
  8.  */
  9.         /*
  10.          * General styles
  11.          */
  12.         body, html {
  13.             height: 100%;
  14.             background-repeat: no-repeat;
  15.             background-image: linear-gradient(rgb(104, 145, 162), rgb(12, 97, 33));
  16.         }
  17.         .card-container.card {
  18.             max-width: 350px;
  19.             padding: 40px 40px;
  20.         }
  21.         .btn {
  22.             font-weight: 700;
  23.             height: 36px;
  24.             -moz-user-select: none;
  25.             -webkit-user-select: none;
  26.             user-select: none;
  27.             cursor: default;
  28.         }
  29.         /*
  30.          * Card component
  31.          */
  32.         .card {
  33.             background-color: #F7F7F7;
  34.             /* just in case there no content*/
  35.             padding: 20px 25px 30px;
  36.             margin: 0 auto 25px;
  37.             margin-top: 50px;
  38.             /* shadows and rounded borders */
  39.             -moz-border-radius: 2px;
  40.             -webkit-border-radius: 2px;
  41.             border-radius: 2px;
  42.             -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
  43.             -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
  44.             box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
  45.         }
  46.         .profile-img-card {
  47.             width: 96px;
  48.             height: 96px;
  49.             margin: 0 auto 10px;
  50.             display: block;
  51.             -moz-border-radius: 50%;
  52.             -webkit-border-radius: 50%;
  53.             border-radius: 50%;
  54.         }
  55.         /*
  56.          * Form styles
  57.          */
  58.         .profile-name-card {
  59.             font-size: 16px;
  60.             font-weight: bold;
  61.             text-align: center;
  62.             margin: 10px 0 0;
  63.             min-height: 1em;
  64.         }
  65.         .reauth-email {
  66.             display: block;
  67.             color: #404040;
  68.             line-height: 2;
  69.             margin-bottom: 10px;
  70.             font-size: 14px;
  71.             text-align: center;
  72.             overflow: hidden;
  73.             text-overflow: ellipsis;
  74.             white-space: nowrap;
  75.             -moz-box-sizing: border-box;
  76.             -webkit-box-sizing: border-box;
  77.             box-sizing: border-box;
  78.         }
  79.         .form-signin #inputEmail,
  80.         .form-signin #inputPassword {
  81.             direction: ltr;
  82.             height: 44px;
  83.             font-size: 16px;
  84.         }
  85.         .form-signin input[type=email],
  86.         .form-signin input[type=password],
  87.         .form-signin input[type=text],
  88.         .form-signin button {
  89.             width: 100%;
  90.             display: block;
  91.             margin-bottom: 10px;
  92.             z-index: 1;
  93.             position: relative;
  94.             -moz-box-sizing: border-box;
  95.             -webkit-box-sizing: border-box;
  96.             box-sizing: border-box;
  97.         }
  98.         .form-signin .form-control:focus {
  99.             border-color: rgb(104, 145, 162);
  100.             outline: 0;
  101.             -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgb(104, 145, 162);
  102.             box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgb(104, 145, 162);
  103.         }
  104.         .btn.btn-signin {
  105.             /*background-color: #4d90fe; */
  106.             background-color: rgb(104, 145, 162);
  107.             /* background-color: linear-gradient(rgb(104, 145, 162), rgb(12, 97, 33));*/
  108.             padding: 0px;
  109.             font-weight: 700;
  110.             font-size: 14px;
  111.             height: 36px;
  112.             -moz-border-radius: 3px;
  113.             -webkit-border-radius: 3px;
  114.             border-radius: 3px;
  115.             border: none;
  116.             -o-transition: all 0.218s;
  117.             -moz-transition: all 0.218s;
  118.             -webkit-transition: all 0.218s;
  119.             transition: all 0.218s;
  120.         }
  121.         .btn.btn-signin:hover,
  122.         .btn.btn-signin:active,
  123.         .btn.btn-signin:focus {
  124.             background-color: rgb(12, 97, 33);
  125.         }
  126.         .forgot-password {
  127.             color: rgb(104, 145, 162);
  128.         }
  129.         .forgot-password:hover,
  130.         .forgot-password:active,
  131.         .forgot-password:focus{
  132.             color: rgb(12, 97, 33);
  133.         }
  134.     </style>
  135.     <script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
  136. {% endblock %}
  137. {% block title %}Log in!{% endblock %}
  138. {% block body %}
  139.     <div class="container">
  140.         <div class="card card-container">
  141.             <!-- <img class="profile-img-card" src="//lh3.googleusercontent.com/-6V8xOA6M7BA/AAAAAAAAAAI/AAAAAAAAAAA/rzlHcD0KYwo/photo.jpg?sz=120" alt="" /> -->
  142.             <img id="profile-img" class="profile-img-card" src="//ssl.gstatic.com/accounts/ui/avatar_2x.png" />
  143.             <p id="profile-name" class="profile-name-card"></p>
  144.             {% if error %}
  145.                 <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  146.             {% endif %}
  147.             {% if app.user %}
  148.                 <div class="mb-3">
  149.                     You are logged in as {{ app.user.username }}, <a href="{{ path('app_logout') }}">Logout</a>
  150.                 </div>
  151.             {% endif %}
  152.             <form method="post" class="form-signin">
  153.                 <h1 class="h3 mb-3 font-weight-normal">Ingrese sus credenciales:</h1>
  154.                 <span id="reauth-email" class="reauth-email"></span>
  155.                 <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus>
  156.                 <input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required>
  157.                 <div id="remember" class="checkbox">
  158.                     <label>
  159.                         <input type="checkbox" value="remember-me"> Recordar
  160.                     </label>
  161.                 </div>
  162.                 <input type="hidden" name="_csrf_token"
  163.                        value="{{ csrf_token('authenticate') }}"
  164.                 >
  165.                 <button class="btn btn-lg btn-primary btn-block btn-signin" type="submit">Ingresar</button>
  166.             </form><!-- /form -->
  167.             <a href="#" class="forgot-password">
  168.                 Olvidó su password?
  169.             </a>
  170.         </div><!-- /card-container -->
  171.     </div><!-- /container -->
  172. {% endblock %}
  173. {% block javascripts %}
  174. {% endblock %}