45 lines
1.8 KiB
HTML
45 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n static %}
|
|
{% load allauth account %}
|
|
{% load crispy_forms_filters %}
|
|
|
|
{% block title %}{{ _("Sign In") }}{% endblock title %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="row flex-center min-vh-100 py-5">
|
|
<div class="col-sm-10 col-md-8 col-lg-5 col-xl-5 col-xxl-3"><a class="d-flex flex-center text-decoration-none mb-4" href="{% url 'landing_page' %}">
|
|
<div class="d-flex align-items-center fw-bolder fs-3 d-inline-block"><img src="{% static 'images/logos/logo.png' %}" alt="{% trans 'Haikal' %}" width="58" />
|
|
</div>
|
|
</a>
|
|
<div class="text-center">
|
|
<h3 class="text-body-highlight">{{ _("Sign In") }}</h3>
|
|
{% if SOCIALACCOUNT_ENABLED %}
|
|
<p class="text-body-tertiary">Get access to your account</p>
|
|
</div>
|
|
|
|
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %}
|
|
{% endif %}
|
|
{% if not SOCIALACCOUNT_ONLY %}
|
|
<form method="post" action="{% url 'account_login' %}" class="needs-validation" novalidate>
|
|
{% csrf_token %}
|
|
{{ redirect_field }}
|
|
{{ form|crispy }}
|
|
<button type="submit" class="btn btn-primary w-100 mb-3">{{ _("Sign In") }}</button>
|
|
|
|
</form>
|
|
{% endif %}
|
|
|
|
<div class="text-center">{% trans 'If you have not created an account yet, then please' %} <a class="fs-9 fw-bold" href="{% url 'account_signup' %}">{% trans 'signup'|capfirst %}</a></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock content %}
|
|
|
|
{% block extra_body %}
|
|
{{ block.super }}
|
|
{% if PASSKEY_LOGIN_ENABLED %}
|
|
{% include "mfa/webauthn/snippets/login_script.html" with button_id="passkey_login" %}
|
|
{% endif %}
|
|
{% endblock %} |