Spaces:
Build error
Build error
Create edit_profile.html
Browse files- templates/edit_profile.html +48 -0
templates/edit_profile.html
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Edit Profile</title>
|
| 7 |
+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="container mt-4">
|
| 11 |
+
<h1>Edit Profile</h1>
|
| 12 |
+
<!-- Display success or error messages -->
|
| 13 |
+
{% with messages = get_flashed_messages(with_categories=true) %}
|
| 14 |
+
{% if messages %}
|
| 15 |
+
<div class="alert alert-{{ messages[0][0] }}">
|
| 16 |
+
{{ messages[0][1] }}
|
| 17 |
+
</div>
|
| 18 |
+
{% endif %}
|
| 19 |
+
{% endwith %}
|
| 20 |
+
|
| 21 |
+
<form method="POST">
|
| 22 |
+
<div class="mb-3">
|
| 23 |
+
<label for="name" class="form-label">Full Name</label>
|
| 24 |
+
<input type="text" class="form-control" id="name" name="name" value="{{ user_name }}" required>
|
| 25 |
+
</div>
|
| 26 |
+
|
| 27 |
+
<div class="mb-3">
|
| 28 |
+
<label for="email" class="form-label">Email address</label>
|
| 29 |
+
<input type="email" class="form-control" id="email" name="email" value="{{ user_email }}" required>
|
| 30 |
+
</div>
|
| 31 |
+
|
| 32 |
+
<div class="mb-3">
|
| 33 |
+
<label for="phone" class="form-label">Phone Number</label>
|
| 34 |
+
<input type="tel" class="form-control" id="phone" name="phone" value="{{ user_phone }}" required>
|
| 35 |
+
</div>
|
| 36 |
+
|
| 37 |
+
<div class="mb-3">
|
| 38 |
+
<label for="password" class="form-label">New Password (Optional)</label>
|
| 39 |
+
<input type="password" class="form-control" id="password" name="password" placeholder="Leave blank to keep the current password">
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
<button type="submit" class="btn btn-primary">Update Profile</button>
|
| 43 |
+
</form>
|
| 44 |
+
</div>
|
| 45 |
+
|
| 46 |
+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
|
| 47 |
+
</body>
|
| 48 |
+
</html>
|