57 lines
No EOL
2.5 KiB
Handlebars
57 lines
No EOL
2.5 KiB
Handlebars
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Profile Management</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body class="bg-gray-100">
|
|
|
|
<div class="max-w-3xl mx-auto mt-10 p-6 bg-white rounded-lg shadow-lg">
|
|
<h2 class="text-2xl font-bold text-gray-800 mb-4">Profile Management</h2>
|
|
|
|
<form action="/profile/update" method="POST" class="space-y-6">
|
|
<div class="flex items-center space-x-4">
|
|
<img src="{{user.avatar}}" alt="User Avatar" class="h-16 w-16 rounded-full">
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700">Change Profile Picture</label>
|
|
<input type="file" name="avatar"
|
|
class="block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100 mt-1">
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="name" class="block text-sm font-medium text-gray-700">Name</label>
|
|
<input type="text" name="name" id="name" value="{{user.name}}"
|
|
class="mt-1 block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="email" class="block text-sm font-medium text-gray-700">Email</label>
|
|
<input type="email" name="email" id="email" value="{{user.email}}"
|
|
class="mt-1 block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="bio" class="block text-sm font-medium text-gray-700">Bio</label>
|
|
<textarea name="bio" id="bio" rows="3"
|
|
class="mt-1 block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">{{user.bio}}</textarea>
|
|
</div>
|
|
|
|
<dev></dev>
|
|
|
|
<div>
|
|
<button type="submit"
|
|
class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
|
Save Changes
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html> |