64 lines
1.6 KiB
HTML
64 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Change Admin Credentials</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body>
|
|
|
|
<main class="page admin-page">
|
|
<nav class="site-nav">
|
|
<a href="{{ url_for('admin.dashboard') }}">Dashboard</a>
|
|
<a href="{{ url_for('public.home') }}">Public Site</a>
|
|
</nav>
|
|
|
|
<h1>Change Admin Credentials</h1>
|
|
|
|
{% if error %}
|
|
<p class="error">{{ error }}</p>
|
|
{% endif %}
|
|
|
|
<form class="admin-form" method="POST">
|
|
<label for="username">Username</label>
|
|
<input
|
|
id="username"
|
|
name="username"
|
|
type="text"
|
|
value="{{ admin.username }}"
|
|
required
|
|
>
|
|
|
|
<label for="current_password">Current Password</label>
|
|
<input
|
|
id="current_password"
|
|
name="current_password"
|
|
type="password"
|
|
required
|
|
>
|
|
|
|
<label for="new_password">New Password</label>
|
|
<input
|
|
id="new_password"
|
|
name="new_password"
|
|
type="password"
|
|
minlength="8"
|
|
>
|
|
|
|
<label for="confirm_password">Confirm New Password</label>
|
|
<input
|
|
id="confirm_password"
|
|
name="confirm_password"
|
|
type="password"
|
|
minlength="8"
|
|
>
|
|
|
|
<div class="form-actions">
|
|
<button class="button-compact" type="submit">Save Credentials</button>
|
|
<a href="{{ url_for('admin.dashboard') }}">Cancel</a>
|
|
</div>
|
|
</form>
|
|
</main>
|
|
|
|
</body>
|
|
</html>
|