- Rename Go module from github.com/cclohmar/ReceiptNext to NextExpense - Update all import paths across 7 Go source files - Update templates (titles, headings, branding) - Update static files (manifest.json, sw.js, CSS) - Update config (Makefile, install.sh, .env.example) - Update README with new name and URLs - Rename service file receiptnext.service -> nextexpense.service - Update install paths, service names, log paths in install.sh
56 lines
2.6 KiB
HTML
56 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<meta name="theme-color" content="#10b981">
|
|
<title>{{if .Editing}}Profile{{else}}Welcome{{end}} - NextExpense</title>
|
|
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
|
|
<link rel="stylesheet" href="/static/css/style.css?v=4">
|
|
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
|
|
</head>
|
|
<body>
|
|
<div class="app-shell">
|
|
<header class="app-header">
|
|
{{if .Editing}}
|
|
<a href="/dashboard" class="btn btn-secondary btn-sm"
|
|
hx-get="/dashboard" hx-target="body" hx-push-url="true">← Back</a>
|
|
<h1 class="app-title" style="font-size: 1.1rem;">Edit Profile</h1>
|
|
<span></span>
|
|
{{else}}
|
|
<h1 class="app-title" style="font-size: 1.1rem;">Welcome to NextExpense</h1>
|
|
{{end}}
|
|
</header>
|
|
|
|
<main class="main-content">
|
|
{{if .Editing}}
|
|
<p style="color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 1.5rem;">
|
|
Update your name or department. This appears on all expense reports.
|
|
</p>
|
|
{{else}}
|
|
<p style="color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 1.5rem;">
|
|
Let's set up your profile. This information will appear on your expense reports.
|
|
</p>
|
|
{{end}}
|
|
|
|
<div id="onboarding-error"></div>
|
|
|
|
<form hx-post="{{if .Editing}}/profile{{else}}/onboarding{{end}}" hx-target="#onboarding-error" hx-swap="innerHTML">
|
|
<div class="form-group">
|
|
<label class="form-label" for="name">Full Name</label>
|
|
<input type="text" id="name" name="name" placeholder="Your name as it should appear on reports"
|
|
value="{{.Name}}" required autofocus>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label" for="department">Department / Employee ID</label>
|
|
<input type="text" id="department" name="department" placeholder="e.g. Finance, ENG-1234"
|
|
value="{{.Department}}">
|
|
</div>
|
|
<button type="submit" class="btn btn-primary btn-block" style="margin-top: 0.5rem;">
|
|
{{if .Editing}}Save Changes{{else}}Save & Continue{{end}}
|
|
</button>
|
|
</form>
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|