Files
pages/templates/pages/upload.gohtml
T
Anya Tokugawa c1175d389f Implement Knowledge City platform, organizer and DAV integration
Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming.

Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
2026-09-27 14:44:43 +09:00

47 lines
1.4 KiB
Go Template

{{ define "upload.gohtml" }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .Title }}</title>
<link rel="stylesheet" href="/static/css/main.css">
<link rel="stylesheet" href="/static/css/modes.css">
<link rel="stylesheet" href="/static/css/theme/base.css">
<link rel="stylesheet" href="{{ .ThemeCSS }}">
</head>
<body>
<header class="topbar">
<div class="brand"><a href="/">{{ .WikiName }}</a></div>
<nav>
{{ range .NavItems }}<a href="{{ .ResolvedHref }}">{{ .Label }}</a>{{ end }}
</nav>
{{ template "auth-menu" . }}</header>
<main class="container">
<section class="card upload-card">
<h1>{{ T "upload.title" }}</h1>
<p><a href="/v/import">{{ T "import.archive_link" }}</a></p>
<form method="post" enctype="multipart/form-data">
<label>
<span>{{ T "upload.path" }}</span>
<input name="path" type="text" value="{{ .SuggestedPath }}" placeholder="/media/ or /media/example.png" autofocus>
</label>
<label>
<span>{{ T "upload.file" }}</span>
<input name="file" type="file" required>
</label>
<p class="muted">{{ T "upload.help" }}</p>
<button type="submit">{{ T "upload.submit" }}</button>
</form>
</section>
</main>
<style>
.upload-card { max-width: 46rem; margin: 2rem auto; }
.upload-card form { display: grid; gap: 1rem; }
.upload-card label { display: grid; gap: .4rem; }
.upload-card input { width: 100%; }
</style>
</body>
</html>
{{ end }}