haikal/templates/account/login.html
Marwan Alwali 72091eac4e update
2024-12-29 17:19:16 +03:00

49 lines
2.0 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-50">
<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">
<div class="d-flex align-items-center fw-bolder fs-3 d-inline-block">
<img class="d-dark-none" src="{% static 'images/logos/logo-d.png' %}" alt="{% trans 'home' %}" width="58" />
<img class="d-light-none" src="{% static 'images/logos/logo.png' %}" alt="{% trans 'home' %}" width="58" />
</div>
</div>
</a>
<div class="text-center">
<h3 class="text-body-highlight">{{ _("Sign In") }}</h3>
{% if SOCIALACCOUNT_ENABLED %}
<p class="text-body-tertiary">Login 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 'Sign Up'|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 %}