{% extends "base-split.html.twig" %}
{% block right %}
{% if message %}
<div class="alert alert-{{ message.type }}">
{% if message.type == 'warning' %}
<i class="fa fa-exclamation-triangle"></i>
{% elseif message.type == 'success' %}
<i class="fa fa-check"></i>
{% endif %}
{{ message.text | raw}}
</div>
{% endif %}
{% if app.user %}
<p>Hello {{ app.user.getFullName() }},<br />
You are currently signed in.<br />
<form method="post" action="/sign-out">
<button
type="submit"
class="btn btn-secondary text-white bg-dark mt-2"
>Sign Out</button>
</form>
{% else %}
{#<form action="{{ path("sign-in") }}" method="post">#}
<form action="/sign-in" method="post">
<legend>Sign In</legend>
<hr />
<label class="btn-block">Username or Email Address
<input
class="form-control"
type="text"
name="_username"
placeholder="Your Username or Email Address"
/>
</label>
<label class="btn-block">Password
<input
class="form-control"
type="password"
name="_password"
placeholder="Your Password"
/>
</label>
<div class="form-row g-recaptcha" data-sitekey="6LeEIlMUAAAAAGhdmJJLdJHPxaWx2GqBjber5n6B" required></div>
<button
type="submit"
class="btn btn-secondary text-white bg-dark mt-2"
>Sign In</button>
</form>
<hr />
<ul class="mt-3">
<li><a href="/sign-up" class="text-white">Click here to Sign Up.</a></li>
<li><a href="/forgot-password" class="text-white">Forgot Password?</a></li>
<li><a href="/forgot-username" class="text-white">Forgot Username?</a></li>
<li><a href="/send-activation" class="text-white">Re-send Activation.</a></li>
</ul>
{% endif %}
{% endblock %}