samjeston / openhub Public
Sam Jeston Working vertical 9aa3c45 · History
24 lines· 1.1 KB ·HTML
Raw
1{% extends "base.html" %}
2{% block title %}Sign in · Openhub{% endblock %}
3{% block page_class %}auth-page{% endblock %}
4{% block content %}
5<div class="auth-card">
6 <h1>Sign in to Openhub</h1>
7 {% if let Some(e) = error %}<div class="flash flash-error">{{ crate::web::fmt::icon("circle-alert")|safe }}<span>{{ e }}</span></div>{% endif %}
8 <form method="post" action="/login" class="box box-body form">
9 <input type="hidden" name="next" value="{{ next }}">
10 <label class="field">
11 <span class="field-label">Username or email</span>
12 <input class="input" type="text" name="login" value="{{ login }}" autocomplete="username" autocapitalize="off" autofocus required>
13 </label>
14 <label class="field">
15 <span class="field-label">Password</span>
16 <input class="input" type="password" name="password" autocomplete="current-password" required>
17 </label>
18 <button class="btn btn-primary btn-block" type="submit">Sign in</button>
19 </form>
20 {% if can_register %}
21 <div class="auth-alt">New here? <a href="/register">Create an account</a>.</div>
22 {% endif %}
23</div>
24{% endblock %}