49 lines
2.5 KiB
HTML
49 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<!-- Copyright © 2026 Olaf Kolkman -->
|
|
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Configure LinkLog</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="stylesheet" href="/static/style.css" />
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<div class="container">
|
|
<div class="header-row">
|
|
<div>
|
|
<a class="site-logo-link" href="/" aria-label="LinkLog home"><img class="site-logo" src="/static/logo.svg" alt="LinkLog" /></a>
|
|
<h1>Configure LinkLog</h1>
|
|
<p>Create the first administrator and test email delivery.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<main class="container">
|
|
<section class="link-item settings-panel">
|
|
<form id="setup-form">
|
|
<h2>Administrator</h2>
|
|
<label>Username<input name="username" type="text" autocomplete="username" required /></label>
|
|
<label>Email address<input name="email" type="email" autocomplete="email" required /></label>
|
|
<label>Password<input name="password" type="password" autocomplete="new-password" minlength="8" required /></label>
|
|
<h2>SMTP</h2>
|
|
<label>SMTP host<input name="smtp_host" type="text" required /></label>
|
|
<label>SMTP port<input name="smtp_port" type="number" min="1" max="65535" required /></label>
|
|
<label>SMTP username<input name="smtp_username" type="text" autocomplete="off" /></label>
|
|
<label>SMTP password<input name="smtp_password" type="password" autocomplete="new-password" /></label>
|
|
<label>From address<input name="smtp_from" type="text" required /></label>
|
|
<label class="checkbox-label"><input name="smtp_use_tls" type="checkbox" /> Use STARTTLS</label>
|
|
<button type="submit">Save configuration</button>
|
|
<button id="test-mail-button" type="button" disabled>Send test mail</button>
|
|
<button id="complete-setup-button" type="button" hidden>Complete setup</button>
|
|
<p id="setup-status" class="status" role="status"></p>
|
|
<p id="setup-timer" class="status" role="timer" aria-live="polite"></p>
|
|
</form>
|
|
</section>
|
|
</main>
|
|
<footer class="site-footer">LinkLog Version {{ app_version }}. Copyright © 2026 Olaf Kolkman</footer>
|
|
<script src="/static/theme.js?v=1"></script>
|
|
<script src="/static/setup.js"></script>
|
|
</body>
|
|
</html> |