gnu-social/templates/security/login.html.twig

63 lines
3.0 KiB
Twig
Raw Normal View History

2020-07-24 15:52:45 +01:00
{% extends 'left/left.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/login/login.css') }}">
{% endblock %}
{% block title %}Log in!{% endblock %}
2020-07-25 23:55:09 +01:00
{% block left %}
<div id='left-panel'>
<input type="checkbox" checked id="toggle">
<div class="icon-menu">
<label for="toggle" id='menu'></label>
</div>
<div class='navbar'>
<div class="left-nav">
<a href="{{ path('login') }}" class='hover-effect {{ active('login') }}'>Login</a>
<div class='content'>
<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="register-info">
<label for="inputNickname">Nickname</label>
<input type="text" value="{{ last_username }}" name="nickname" id="inputNickname"
class="form-control" required autofocus>
<label for="inputPassword">Password</label>
<input type="password" name="password" id="inputPassword" class="form-control" required>
</div>
2020-07-25 23:55:09 +01:00
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
2020-07-25 23:55:09 +01:00
<div class="checkbox mb-3">
<label>
<input type="checkbox" name="_remember_me"> Remember me
</label>
</div>
2020-07-25 23:55:09 +01:00
<button class="btn btn-lg btn-primary" type="submit">
Sign in
</button>
</form>
</div>
<a href="{{ path('register') }}" class='hover-effect {{ active('register') }}'>Register</a>
</div>
<div class="footer">
<a href="{{ path('doc_faq') }}" class='hover-effect {{ active('doc_faq') }}'>FAQ</a>
<a href="{{ path('doc_tos') }}" class='hover-effect {{ active('doc_tos') }}'>TOS</a>
<a href="{{ path('doc_privacy') }}" class='hover-effect {{ active('doc_privacy') }}'>Privacy</a>
<a href="{{ path('doc_source') }}" class='hover-effect {{ active('doc_source') }}'>Source</a>
<a href="{{ path('doc_version') }}" class='hover-effect {{ active('doc_version') }}'>Version</a>
</div>
</div>
2020-07-25 23:55:09 +01:00
</div>
{% endblock %}