{% extends 'base.login.html.twig' %}
{% block title %}Anmelden in swtPOS{% endblock %}
{% block body %}
<div class="row justify-content-center">
<div class="col-lg-5">
<div class="card">
<!-- Logo -->
<div class="card-header pt-4 pb-4 text-center bg-primary">
<a href="index.html">
<span><img src="assets/images/logo.png" alt="" height="18"></span>
</a>
</div>
<div class="card-body p-4">
<div class="text-center w-75 m-auto">
<h4 class="text-dark-50 text-center mt-0 font-weight-bold">Sign In</h4>
<p class="text-muted mb-4">Enter your email address and password to access admin panel.</p>
</div>
<form method="post">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class="mb-3">
You are logged in as {{ app.user.username }}, <a
href="{{ path('app_logout') }}">Logout</a>
</div>
{% endif %}
<div class="form-group">
<label for="emailaddress">Email address</label>
{# ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! #}
<input type="email" value="admin@4tfm.de" name="email" id="inputEmail" class="form-control"
required="" autofocus placeholder="Enter your email">
{# <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" required="" autofocus placeholder="Enter your email"> #}
</div>
<div class="form-group">
<a href="pages-recoverpw.html" class="text-muted float-right"><small>Forgot your
password?</small></a>
<label for="password">Password</label>
<div class="input-group input-group-merge">
{# ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! #}
<input value="test123" type="password" name="password" id="inputPassword"
class="form-control" required="" placeholder="Enter your password">
{# <input type="password" name="password" id="inputPassword" class="form-control" required="" placeholder="Enter your password"> #}
<input type="hidden" name="_csrf_token"
value="{{ csrf_token('authenticate') }}"
>
<div class="input-group-append" data-password="false">
<div class="input-group-text">
<span class="password-eye"></span>
</div>
</div>
</div>
</div>
<div class="form-group mb-3">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="checkbox-signin" checked
name="_remember_me">
<label class="custom-control-label" for="checkbox-signin">Remember me</label>
</div>
</div>
<div class="form-group mb-0 text-center">
<button class="btn btn-primary" type="submit"> Log In</button>
</div>
</form>
</div> <!-- end card-body -->
</div>
<!-- end card -->
<div class="row mt-3">
<div class="col-12 text-center">
<p class="text-muted">Don't have an account? <a href="pages-register.html"
class="text-muted ml-1"><b>Sign Up</b></a></p>
</div> <!-- end col -->
</div>
<!-- end row -->
</div> <!-- end col -->
</div>
{# ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! ONLY DEV !!! #}
<p><a href="https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi"
target="_blank">react-developer-tools</a></p>
<p><a href="https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=de"
target="_blank">redux-devtools</a></p>
<p><a
href="https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc?hl=de"
target="_blank">xdebug-helper</a></p>
<p><a
href="https://chrome.google.com/webstore/detail/hard-refresh/ichmdelihgokllcnibkcpciljnggojkj"
target="_blank">hard-refresh</a></p>
<p><a
href="https://addons.mozilla.org/de/firefox/addon/react-devtools/"
target="_blank">react-developer-tools</a></p>
<p><a
href="https://addons.mozilla.org/de/firefox/addon/reduxdevtools/"
target="_blank">redux-devtools</a></p>
<p><a
href="https://addons.mozilla.org/de/firefox/addon/hard-refresh-button/"
target="_blank">hard-refresh</a></p>
<!-- end row -->
{% endblock %}