nopaque/app/templates/auth/login.html.j2

47 lines
1.6 KiB
Plaintext
Raw Normal View History

{% extends "base.html.j2" %}
{% block page_content %}
2019-07-09 14:59:04 +00:00
<div class="col s12 m4">
<h3>New to Opaque?</h3>
<p>It's free to join and easy to use. Continue on to our registration page to create your Opaque account.</p>
2019-07-09 14:59:04 +00:00
<p><a href="{{ url_for('auth.register') }}" class="waves-effect waves-light btn">Registration</a>
</div>
2019-07-09 14:59:04 +00:00
<div class="col s12 m8">
<div class="card small">
<form method="POST">
<div class="card-content">
{{ form.hidden_tag() }}
<div class="input-field">
2019-07-09 09:00:41 +00:00
<i class="material-icons prefix">person</i>
2019-07-09 14:59:04 +00:00
{{ form.login(class='validate', placeholder='Email address or username') }}
2019-07-09 09:00:41 +00:00
{{ form.login.label }}
{% for error in form.login.errors %}
<span class="helper-text" style="color:red;">{{ error }}</span>
{% endfor %}
</div>
<div class="input-field">
<i class="material-icons prefix">vpn_key</i>
{{ form.password(class='validate') }}
{{ form.password.label }}
{% for error in form.password.errors %}
<span class="helper-text" style="color:red;">{{ error }}</span>
{% endfor %}
</div>
<a href="{{ url_for('auth.password_reset_request') }}" class="left">Forgot your password?</a>
2019-07-09 14:59:04 +00:00
<div class="switch right">
2019-07-08 08:07:26 +00:00
<label>
Remember me
{{ form.remember_me() }}
<span class="lever"></span>
</label>
</div>
</div>
<div class="card-action">
{{ form.submit(class='btn right') }}
</div>
</form>
</div>
</div>
{% endblock %}