"feat: Update login template with new design"

This commit is contained in:
2025-05-29 19:19:02 +02:00
parent a03c514e1a
commit 70956ded87
2 changed files with 16 additions and 5 deletions

View File

@@ -2,6 +2,11 @@
{% block title %}Anmelden - Mercedes-Benz MYP Platform{% endblock %}
{% block head %}
{{ super() }}
<meta name="csrf-token" content="{{ csrf_token() }}">
{% endblock %}
{% block extra_css %}
<style>
/* Mercedes-Benz Corporate Design */
@@ -246,7 +251,7 @@
{% endblock %}
{% block content %}
<div class="mercedes-login-container flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
<div class="max-w-md w-full space-y-8">
<!-- Header -->
<div class="text-center">
@@ -281,7 +286,12 @@
<!-- Login Form -->
<div class="mercedes-card p-8">
<form id="loginForm" method="POST" action="{{ url_for('login') if url_for else '#' }}" class="space-y-6">
{{ form.hidden_tag() if form }}
<!-- CSRF Token -->
{% if form %}
{{ form.hidden_tag() }}
{% else %}
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
{% endif %}
<!-- E-Mail Address -->
<div>