2018-03-18 18:43:30 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("Sign in") }}
|
2018-03-18 18:43:30 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2021-02-03 01:56:43 +01:00
|
|
|
{% block container %}
|
|
|
|
<main class="text-center pt-5">
|
|
|
|
{% from "macros/forms.html" import render_field, render_checkbox_field, render_submit_field %}
|
|
|
|
<form class="signin" method="POST">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
2022-01-08 00:27:00 +01:00
|
|
|
<h1 class="h3 mb-4 font-weight-normal">{{ self.title() }}</h1>
|
2021-02-03 01:56:43 +01:00
|
|
|
|
|
|
|
{{ render_field(form.username, tabindex=110, label_visible=False, placeholder=_("Username or email")) }}
|
|
|
|
{{ render_field(form.password, tabindex=120, label_visible=False, placeholder=_("Password")) }}
|
2023-08-26 15:54:58 +02:00
|
|
|
<div class="d-flex gap-2 mb-4">
|
|
|
|
{{ render_checkbox_field(form.remember_me, tabindex=130, class_="flex-grow-1") }}
|
|
|
|
<a class="flex-grow-1" href="{{ url_for('users.forgot_password') }}">
|
2021-02-03 01:56:43 +01:00
|
|
|
{{ _("Forgot my password") }}
|
|
|
|
</a>
|
2018-05-18 22:35:54 +02:00
|
|
|
</div>
|
2023-08-26 15:54:58 +02:00
|
|
|
{{ render_submit_field(form.submit, tabindex=140, class_="btn btn-lg btn-primary d-block w-100") }}
|
2021-02-03 01:56:43 +01:00
|
|
|
|
|
|
|
<hr class="my-5" />
|
|
|
|
|
|
|
|
<p>
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="btn btn-secondary me-3" href="{{ url_for('github.start') }}">
|
|
|
|
<i class="fab fa-github me-1"></i>
|
2021-02-03 01:56:43 +01:00
|
|
|
{{ _("GitHub") }}
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-secondary" href="{{ url_for('users.claim') }}">
|
2023-08-22 20:58:43 +02:00
|
|
|
<i class="fas fa-user-plus me-1"></i>
|
2021-02-03 01:56:43 +01:00
|
|
|
{{ _("Register") }}
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
</main>
|
2018-03-18 18:43:30 +01:00
|
|
|
{% endblock %}
|