modified: app.py

new file:   templates/edit_user.html
This commit is contained in:
SimolZimol
2024-10-29 11:32:03 +01:00
parent eca786a062
commit 24465304fa
2 changed files with 65 additions and 0 deletions

31
templates/edit_user.html Normal file
View File

@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Edit User</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
{% include 'navigation.html' %}
<div class="container mt-5">
<h2>Edit User - {{ user_data.user_id }}</h2>
<form method="post">
<div class="form-group">
<label for="points">Points</label>
<input type="number" class="form-control" id="points" name="points" value="{{ user_data.points }}" required>
</div>
<div class="form-group">
<label for="level">Level</label>
<input type="number" class="form-control" id="level" name="level" value="{{ user_data.level }}" required>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="ban" name="ban" value="1" {% if user_data.ban %}checked{% endif %}>
<label class="form-check-label" for="ban">Ban User</label>
</div>
<button type="submit" class="btn btn-primary mt-3">Save Changes</button>
<a href="{{ url_for('server_admin_dashboard', guild_id=guild_id) }}" class="btn btn-secondary mt-3">Back to Dashboard</a>
</form>
</div>
</body>
</html>