76 lines
2.1 KiB
HTML
76 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Change Admin Credentials</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body>
|
|
|
|
<header class="app-header">
|
|
<a class="brand" href="{{ url_for('admin.dashboard') }}">admin</a>
|
|
<nav class="site-nav">
|
|
<a href="{{ url_for('admin.dashboard') }}">Dashboard</a>
|
|
<a href="{{ url_for('public.home') }}">Public Site</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="page admin-page">
|
|
<section class="main-card admin-card">
|
|
<p class="eyebrow">Account</p>
|
|
<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>
|
|
</section>
|
|
</main>
|
|
|
|
<footer class="app-footer">
|
|
<span>credentials</span>
|
|
<span>admin</span>
|
|
</footer>
|
|
|
|
</body>
|
|
</html>
|