Files
KlipperAnywhere/web/static/account.html
T
2026-05-14 02:27:26 +01:00

90 lines
3.8 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Account - KlipperAnywhere</title>
<meta name="description" content="Manage your KlipperAnywhere account.">
<meta id="csrf-meta" name="csrf-token" content="{{CSRF_TOKEN}}">
<link rel="stylesheet" href="/static/styles.css">
<link rel="icon" href="/favicon.ico">
<link rel="icon" type="image/png" href="/static/assets/favicon.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
</head>
<body class="app-page">
<header class="app-header">
<a class="brand" href="/">
<span class="brand-mark" aria-hidden="true">K</span>
<span>KlipperAnywhere</span>
</a>
<nav class="nav-links" aria-label="Account navigation">
<div class="nav-group nav-core">
<a class="text-button" href="/dashboard">Dashboard</a>
<a class="text-button current" href="/account">Account</a>
<a class="text-button admin-only" href="/admin" hidden>Admin</a>
</div>
<div class="nav-group nav-tools">
<div class="printer-switcher-group" aria-label="Printer switcher">
<label class="printer-switcher-label" for="printer-switcher">Printer</label>
<select id="printer-switcher" class="printer-switcher" aria-label="Switch printer">
<option value="">Loading printers...</option>
</select>
<button class="text-button" id="printer-switcher-open" type="button">Open</button>
</div>
<button class="text-button" id="refresh" type="button">Refresh</button>
<form class="logout-form" method="post" action="/logout">
<input type="hidden" name="csrf_token" value="{{CSRF_TOKEN}}">
<button class="text-button" type="submit">Sign out</button>
</form>
</div>
</nav>
</header>
<main class="dashboard-shell account-shell">
<section class="dashboard-heading">
<p class="eyebrow">Account settings</p>
<h1 class="dashboard-title">Account</h1>
</section>
<section class="detail-grid account-grid" aria-live="polite">
<article class="detail-panel">
<div class="panel-heading">
<h2>Profile</h2>
</div>
<dl class="printer-facts detail-facts" id="account-facts">
<div><dt>Username</dt><dd>{{USERNAME}}</dd></div>
<div><dt>Role</dt><dd>{{ROLE}}</dd></div>
</dl>
</article>
<article class="detail-panel">
<div class="panel-heading">
<h2>Change password</h2>
</div>
<p class="auth-copy">Update the password for the current account.</p>
<p id="account-status" class="form-message" hidden></p>
<form id="account-form" class="user-form">
<label>
<span>Current password</span>
<input name="current_password" type="password" autocomplete="current-password" required>
</label>
<label>
<span>New password</span>
<input name="new_password" type="password" autocomplete="new-password" required>
</label>
<label>
<span>Confirm new password</span>
<input name="confirm_password" type="password" autocomplete="new-password" required>
</label>
<button class="button primary" type="submit">Update password</button>
</form>
</article>
</section>
</main>
<script src="/static/session.js"></script>
<script src="/static/printer-switcher.js"></script>
<script src="/static/account.js"></script>
</body>
</html>