177 lines
5.0 KiB
Twig
177 lines
5.0 KiB
Twig
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Passwort einrichten - myCRM</title>
|
|
{{ encore_entry_link_tags('app') }}
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.setup-container {
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
|
padding: 3rem;
|
|
width: 100%;
|
|
max-width: 450px;
|
|
}
|
|
.setup-header {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
.setup-header h1 {
|
|
margin: 0;
|
|
color: #2563eb;
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
}
|
|
.setup-header p {
|
|
margin: 0.5rem 0 0;
|
|
color: #6b7280;
|
|
font-size: 0.95rem;
|
|
}
|
|
.user-info {
|
|
background: #f3f4f6;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
margin-bottom: 2rem;
|
|
}
|
|
.user-info p {
|
|
margin: 0.25rem 0;
|
|
color: #374151;
|
|
}
|
|
.user-info strong {
|
|
color: #1f2937;
|
|
}
|
|
.form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
color: #374151;
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
}
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 6px;
|
|
font-size: 1rem;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: #2563eb;
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
|
}
|
|
.btn-setup {
|
|
width: 100%;
|
|
padding: 0.875rem;
|
|
background: #2563eb;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
.btn-setup:hover {
|
|
background: #1d4ed8;
|
|
}
|
|
.btn-setup:active {
|
|
background: #1e40af;
|
|
}
|
|
.alert {
|
|
padding: 1rem;
|
|
border-radius: 6px;
|
|
margin-bottom: 1.5rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
.alert-danger {
|
|
background: #fef2f2;
|
|
color: #991b1b;
|
|
border: 1px solid #fecaca;
|
|
}
|
|
.alert-info {
|
|
background: #eff6ff;
|
|
color: #1e40af;
|
|
border: 1px solid #bfdbfe;
|
|
}
|
|
.password-hint {
|
|
font-size: 0.85rem;
|
|
color: #6b7280;
|
|
margin-top: 0.5rem;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="setup-container">
|
|
<div class="setup-header">
|
|
<h1>📊 myCRM</h1>
|
|
<p>Passwort einrichten</p>
|
|
</div>
|
|
|
|
<div class="user-info">
|
|
<p><strong>Willkommen, {{ user.firstName }} {{ user.lastName }}!</strong></p>
|
|
<p>E-Mail: {{ user.email }}</p>
|
|
</div>
|
|
|
|
{% if error %}
|
|
<div class="alert alert-danger">
|
|
{{ error }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="alert alert-info">
|
|
Bitte wählen Sie ein sicheres Passwort für Ihren Account.
|
|
</div>
|
|
|
|
<form method="post">
|
|
<div class="form-group">
|
|
<label for="password">Neues Passwort</label>
|
|
<input
|
|
type="password"
|
|
name="password"
|
|
id="password"
|
|
class="form-control"
|
|
placeholder="Mindestens {{ min_length }} Zeichen"
|
|
required
|
|
autofocus
|
|
minlength="{{ min_length }}"
|
|
>
|
|
<div class="password-hint">
|
|
Mindestens {{ min_length }} Zeichen erforderlich
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password_confirm">Passwort bestätigen</label>
|
|
<input
|
|
type="password"
|
|
name="password_confirm"
|
|
id="password_confirm"
|
|
class="form-control"
|
|
placeholder="Passwort wiederholen"
|
|
required
|
|
>
|
|
</div>
|
|
|
|
<button class="btn-setup" type="submit">
|
|
Passwort speichern und Account aktivieren
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|