contentdb/app/templates/users/login.html

40 lines
1.2 KiB
HTML
Raw Normal View History

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")) }}
<div class="row mb-3">
{{ render_checkbox_field(form.remember_me, tabindex=130, class_="col-sm") }}
<a class="col-sm" href="{{ url_for('users.forgot_password') }}">
{{ _("Forgot my password") }}
</a>
2018-05-18 22:35:54 +02:00
</div>
2021-02-03 01:56:43 +01:00
{{ render_submit_field(form.submit, tabindex=140, class_="btn btn-lg btn-primary btn-block") }}
<hr class="my-5" />
<p>
<a class="btn btn-secondary mr-3" href="{{ url_for('github.start') }}">
<i class="fab fa-github mr-1"></i>
{{ _("GitHub") }}
</a>
<a class="btn btn-secondary" href="{{ url_for('users.claim') }}">
<i class="fas fa-user-plus mr-1"></i>
{{ _("Register") }}
</a>
</p>
</form>
</main>
2018-03-18 18:43:30 +01:00
{% endblock %}