From 5cbb4ef449da114a1f2c215ae77e7e701f386746 Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Mon, 17 Mar 2025 18:33:21 +0100 Subject: [PATCH] Build login page --- .../frontend/templates/account/login.html | 43 +++++++++++++++++++ src/servala/static/img/keycloak.svg | 6 +++ 2 files changed, 49 insertions(+) create mode 100644 src/servala/frontend/templates/account/login.html create mode 100644 src/servala/static/img/keycloak.svg diff --git a/src/servala/frontend/templates/account/login.html b/src/servala/frontend/templates/account/login.html new file mode 100644 index 0000000..bb945ee --- /dev/null +++ b/src/servala/frontend/templates/account/login.html @@ -0,0 +1,43 @@ +{% extends "frontend/base.html" %} +{% load static i18n %} +{% load allauth account socialaccount %} +{% block html_title %} + {% block page_title %} + {% translate "Sign In" %} + {% endblock page_title %} +{% endblock html_title %} +{% block content %} +
+
+
+
+ {% if SOCIALACCOUNT_ENABLED %} + {% get_providers as socialaccount_providers %} + {% if socialaccount_providers %} + {% for provider in socialaccount_providers %} + {% provider_login_url provider process=process scope=scope auth_params=auth_params as href %} +
+ {% csrf_token %} + +
+ {% endfor %} + {% endif %} + {% endif %} +
+ {% translate "Log in with email and password instead" %} +
+ {% csrf_token %} + {{ form }} + +
+
+
+
+
+
+{% endblock content %} diff --git a/src/servala/static/img/keycloak.svg b/src/servala/static/img/keycloak.svg new file mode 100644 index 0000000..cdcd0fa --- /dev/null +++ b/src/servala/static/img/keycloak.svg @@ -0,0 +1,6 @@ +