Files
labhelper/labhelper/templates/login.html

33 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block title %}Login - LabHelper{% endblock %}
{% block page_header %}
<div class="page-header">
<h1><i class="fas fa-sign-in-alt"></i> Login</h1>
</div>
{% endblock %}
{% block content %}
<div class="section" style="max-width: 500px; margin: 0 auto; text-align: center;">
{% if request.GET.next and user.is_authenticated %}
<div class="alert alert-error" style="margin-bottom: 24px;">
<i class="fas fa-info-circle"></i> Your account doesn't have access to this page.
</div>
{% elif request.GET.next %}
<div class="alert alert-error" style="margin-bottom: 24px;">
<i class="fas fa-info-circle"></i> Please login to see this page.
</div>
{% endif %}
<p style="color: #555; margin-bottom: 28px;">
Authentication is handled via Single Sign-On. Click below to continue to the login page.
</p>
<a href="{% url 'oidc_authentication_init' %}{% if request.GET.next %}?next={{ request.GET.next }}{% endif %}"
class="btn" style="justify-content: center; display: inline-flex;">
<i class="fas fa-sign-in-alt"></i> Login with SSO
</a>
</div>
{% endblock %}