{#
---------------------------------------------------
v0.0001
9.6.2020 (Maša)
- prva verzija
--------------------------------------------------
#}
{% extends 'baselogin.html.twig' %}
{% block title %}Log in!{% endblock %}
{% block body %}
<body class="app flex-row align-items-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card-group mb-0">
<div class="card p-4">
<div class="card-body">
<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">
Prijavljeni ste kot {{ app.user.username }}, <a href="{{ path('app_logout') }}">Odjava</a>
</div>
{% endif %}
<h1>Prijava</h1>
<p class="text-muted">Prijavite se v vaš račun</p>
<div class="input-group mb-3">
<span class="input-group-addon"><i class="icon-user"></i></span>
<input type="text" value="{{ last_username }}" name="username" id="inputUsername" class="form-control" required autofocus>
</div>
<div class="input-group mb-4">
<span class="input-group-addon"><i class="icon-lock"></i></span>
<input type="password" name="password" id="inputPassword" class="form-control" required>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
</div>
<div class="row">
<div class="col-6">
<button class="btn btn-primary px-4" type="submit">Prijava</button>
</div>
</div>
<BR>
</form>
</div>
</div>
<div class="card text-white bg-primary py-5 d-md-down-none" style="width:44%">
<div class="card-body text-center">
<div>
<img src="http://mamo.cloovis.si/admin/img/dancer_small.png" style="background-color:#20a8d8;" alt="Italian Trulli">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
{% endblock %}