60 lines
3.1 KiB
HTML
60 lines
3.1 KiB
HTML
<div class="bg-white rounded-lg shadow-md border border-gray-200 lg:col-span-2">
|
|
<div class="p-6 border-b border-gray-200">
|
|
<h2 class="text-xl font-semibold text-gray-900 flex items-center">
|
|
<svg class="w-5 h-5 text-green-600 mr-2"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
|
|
</svg>
|
|
Change your password
|
|
</h2>
|
|
<p class="text-sm text-gray-600 mt-1">Set a new password for your account.</p>
|
|
</div>
|
|
<div class="p-6">
|
|
<form hx-post="/admin/password"
|
|
hx-target="#password-messages"
|
|
hx-swap="innerHTML"
|
|
class="space-y-4">
|
|
<div>
|
|
<label for="current_password"
|
|
class="block text-sm font-medium text-gray-700 mb-2">Current password</label>
|
|
<input type="password"
|
|
id="current_password"
|
|
name="current_password"
|
|
required
|
|
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500" />
|
|
</div>
|
|
<div>
|
|
<label for="new_password"
|
|
class="block text-sm font-medium text-gray-700 mb-2">New password</label>
|
|
<input type="password"
|
|
id="new_password"
|
|
name="new_password"
|
|
required
|
|
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500" />
|
|
</div>
|
|
<div>
|
|
<label for="new_password_check"
|
|
class="block text-sm font-medium text-gray-700 mb-2">Confirm new password</label>
|
|
<input type="password"
|
|
id="new_password_check"
|
|
name="new_password_check"
|
|
required
|
|
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500" />
|
|
</div>
|
|
<button type="submit"
|
|
class="w-full bg-green-600 text-white hover:bg-green-700 font-medium py-3 px-4 rounded-md transition-colors flex items-center justify-center">
|
|
<svg class="w-4 h-4 mr-2"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
|
|
</svg>
|
|
Update password
|
|
</button>
|
|
<div id="password-messages" class="mt-4"></div>
|
|
</form>
|
|
</div>
|
|
</div>
|