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

47 lines
1.5 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>In case you are new to Opaque, you can create a free account at our register page.</p>
<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>
2019-07-09 14:59:04 +00:00
<a href="{{ url_for('auth.password_reset_request') }}" class="left">Forgot Password?</a>
<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 %}