addition of user removal
This commit is contained in:
@@ -99,6 +99,29 @@
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.card-danger {
|
||||
border-color: #fecaca;
|
||||
background-color: #fef2f2;
|
||||
}
|
||||
|
||||
.card-danger h3 {
|
||||
color: #991b1b;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background-color: #dc2626;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 10px 18px;
|
||||
border-radius: 6px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.btn-danger:hover {
|
||||
background-color: #b91c1c;
|
||||
}
|
||||
.alert-success { background-color: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
|
||||
.alert-danger { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
|
||||
.alert-warning { background-color: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
|
||||
@@ -171,6 +194,25 @@
|
||||
<button type="submit" class="btn-submit">Passwort aktualisieren</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Karte 3: Konto löschen -->
|
||||
<div class="card card-danger">
|
||||
<h3>Konto löschen</h3>
|
||||
<p style="color: #7f1d1d; font-size: 0.9rem; margin-bottom: 15px;">
|
||||
Achtung: Das Löschen Ihres Kontos ist endgültig. Alle Daten werden unwiderruflich entfernt.
|
||||
</p>
|
||||
|
||||
<form action="{{ url_for('user_profile') }}" method="POST" onsubmit="return confirm('Möchten Sie Ihr Konto wirklich unwiderruflich löschen?');">
|
||||
<input type="hidden" name="action" value="delete_account">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="delete_password" style="color: #991b1b;">Passwort zur Bestätigung</label>
|
||||
<input type="password" id="delete_password" name="current_password" class="form-control" placeholder="Ihr Passwort" required>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn-danger">Konto unwiderruflich löschen</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user