templates/forms/sign-in.html.twig line 1

Open in your IDE?
  1. {% extends "base-split.html.twig" %}
  2. {% block right %}
  3.     
  4.     {% if message %}
  5.         <div class="alert alert-{{ message.type }}">
  6.         {% if message.type == 'warning' %}
  7.             <i class="fa fa-exclamation-triangle"></i> 
  8.         {% elseif message.type == 'success' %}
  9.             <i class="fa fa-check"></i> 
  10.         {% endif %}
  11.         {{ message.text | raw}}
  12.         </div>
  13.     {% endif %}
  14.     {% if app.user %}
  15.         <p>Hello {{ app.user.getFullName() }},<br />
  16.         You are currently signed in.<br />
  17.         <form method="post" action="/sign-out">
  18.             <button 
  19.                 type="submit" 
  20.                 class="btn btn-secondary text-white bg-dark mt-2"
  21.             >Sign Out</button>
  22.         </form>
  23.         
  24.     {% else %}
  25.         {#<form action="{{ path("sign-in") }}" method="post">#}
  26.         <form action="/sign-in" method="post">
  27.             <legend>Sign In</legend>
  28.             
  29.             <hr />
  30.             
  31.             <label class="btn-block">Username or Email Address
  32.                 <input 
  33.                     class="form-control" 
  34.                     type="text" 
  35.                     name="_username" 
  36.                     placeholder="Your Username or Email Address"
  37.                 />
  38.             </label>
  39.             
  40.             <label class="btn-block">Password
  41.                 <input 
  42.                     class="form-control" 
  43.                     type="password" 
  44.                     name="_password" 
  45.                     placeholder="Your Password"
  46.                 />
  47.             </label>
  48.             
  49.             <div class="form-row g-recaptcha" data-sitekey="6LeEIlMUAAAAAGhdmJJLdJHPxaWx2GqBjber5n6B" required></div>
  50.             
  51.             <button 
  52.                 type="submit" 
  53.                 class="btn btn-secondary text-white bg-dark mt-2"
  54.             >Sign In</button>
  55.         </form>
  56.         
  57.         <hr />
  58.         <ul class="mt-3">
  59.             <li><a href="/sign-up" class="text-white">Click here to Sign Up.</a></li>
  60.             <li><a href="/forgot-password" class="text-white">Forgot Password?</a></li>
  61.             <li><a href="/forgot-username" class="text-white">Forgot Username?</a></li>
  62.             <li><a href="/send-activation" class="text-white">Re-send Activation.</a></li>
  63.         </ul>
  64.     {% endif %}
  65. {% endblock %}