nopaque/app/templates/auth/login.html.j2
2019-07-08 10:07:26 +02:00

51 lines
1.4 KiB
Django/Jinja

{% extends "base.html.j2" %}
{% block page_content %}
<div class="col s12 m6">
<div class="card medium">
<div class="card-image">
<img src="{{ url_for('static', filename='images/favicon.png') }}" alt="">
<span class="card-title grey-text text-darken-4">Welcome to Opaque!</span>
</div>
<div class="card-content">
<p>Sign in into an exisiting account or register a new one!</p>
<br/>
<div class="card-action">
<a class="btn" href="{{url_for('auth.register')}}">Register</a>
</div>
</div>
</div>
</div>
<div class="col s12 m6">
<div class="card medium">
<div class="card-content">
<span class="card-title">Log In</span>
<form method="POST">
{{ form.hidden_tag() }}
<div class="input-field">
{{ form.email(class='validate', type='email') }}
{{ form.email.label }}
</div>
<div class="input-field">
{{ form.password(class='validate') }}
{{ form.password.label }}
</div>
<div class="switch">
<label>
Remember me
{{ form.remember_me() }}
<span class="lever"></span>
</label>
</div>
<a href="#!">Forgot Password?</a>
<br><br>
<div class="card-action">
{{ form.submit(class='btn right') }}
</div>
</form>
</div>
</div>
</div>
{% endblock %}