mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 17:25:44 +00:00
57 lines
1.8 KiB
Django/Jinja
57 lines
1.8 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>
|
|
</div>
|
|
<div class="card-action">
|
|
<a class="btn" href="{{url_for('auth.register')}}">Register</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col s12 m6">
|
|
<div class="card medium">
|
|
<form method="POST">
|
|
<div class="card-content">
|
|
<span class="card-title">Log In</span>
|
|
{{ form.hidden_tag() }}
|
|
<div class="input-field">
|
|
<i class="material-icons prefix">person</i>
|
|
{{ form.login(class='validate') }}
|
|
{{ 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>
|
|
<div class="switch left">
|
|
<label>
|
|
Remember me
|
|
{{ form.remember_me() }}
|
|
<span class="lever"></span>
|
|
</label>
|
|
</div>
|
|
<a href="{{ url_for('auth.password_reset_request') }}" class="right">Forgot Password?</a>
|
|
</div>
|
|
<div class="card-action">
|
|
{{ form.submit(class='btn right') }}
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|