The back office now looks like lannadesk.com: - Light theme as a printed letterhead (warm paper, navy ink, thin gold rules, a gold line across the top), and the default; the dark theme is the same navy and gold and stays a click away. - Trirong for headings and names, Sarabun for text: the website's fonts, self-hosted in static/fonts/ (latin and Thai subsets, OFL), since the CSP allows fonts from this origin only. - The header reads "Lanna Desk, back office"; primary buttons are navy on paper and gold on navy; corners are squarer. People are record cards, like the example record on the website: a monogram, the name in Trirong, nationality and province, the most urgent deadline's chip, the stay today, the next four dated deadlines with how far away they are, the passport and the employer. The filter works on the cards; "Table" shows the table as before (?view=table), and the switch keeps the employer and archive filters. Checks: fmt, clippy, 109 unit and 57 integration tests (the cards show the stay, the next dates and the monogram; the table view and the switch keep their filters); screenshots of People (light, dark, phone), a person, the deadlines and a client link.
51 lines
2.4 KiB
HTML
51 lines
2.4 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="robots" content="noindex,nofollow">
|
|
<title>{{ title }} · Lanna Desk</title>
|
|
<script src="/static/theme-init.js?v={{ v }}"></script>
|
|
<link rel="icon" href="/static/favicon.svg?v={{ v }}" type="image/svg+xml">
|
|
<link rel="stylesheet" href="/static/fonts.css?v={{ v }}">
|
|
<link rel="stylesheet" href="/static/app.css?v={{ v }}">
|
|
<script src="/static/app.js?v={{ v }}" defer></script>
|
|
</head>
|
|
<body>
|
|
<header class="top">
|
|
<a class="brand" href="/desk" aria-label="Lanna Desk, the deadlines">
|
|
{% include "_mark.html" %}
|
|
<span class="nm">Lanna Desk</span><span class="sub">Back office</span>
|
|
</a>
|
|
<button type="button" class="ib" id="themeBtn" aria-label="Switch between light and dark" title="Switch between light and dark">◐</button>
|
|
</header>
|
|
<div class="app">
|
|
<aside class="side">
|
|
<nav class="nav" aria-label="Sections">
|
|
<a href="/desk"{% if nav == "deadlines" %} class="on" aria-current="page"{% endif %}>Deadlines</a>
|
|
<a href="/people"{% if nav == "people" %} class="on" aria-current="page"{% endif %}>People</a>
|
|
<a href="/companies"{% if nav == "companies" %} class="on" aria-current="page"{% endif %}>Companies</a>
|
|
<a href="/agreements"{% if nav == "agreements" %} class="on" aria-current="page"{% endif %}>Agreements</a>
|
|
<a href="/activity"{% if nav == "activity" %} class="on" aria-current="page"{% endif %}>Activity</a>
|
|
</nav>
|
|
<div class="who">
|
|
{% if user.local %}
|
|
<span class="k">Local development</span>
|
|
<b>No login</b>
|
|
<p>VISA_INSECURE_NO_LOGIN is set; this only runs on a loopback address.</p>
|
|
{% else %}
|
|
<span class="k">Signed in as</span>
|
|
<b>{{ user.name }}</b>
|
|
<p>{{ user.login }} at id.cnx.network</p>
|
|
<form method="post" action="/logout" class="inline-form"><input type="hidden" name="csrf" value="{{ csrf }}"><button type="submit" class="btn sm ghost">Sign out</button></form>
|
|
{% endif %}
|
|
</div>
|
|
</aside>
|
|
<main id="main">
|
|
{% block main %}{% endblock %}
|
|
<footer class="ft">Lanna Desk {{ version }}{% if commit %}, commit {% if commit_url %}<a href="{{ commit_url }}">{{ commit }}</a>{% else %}{{ commit }}{% endif %}{% endif %}. Every view and change of a person's record is written to the Activity log. Dates are in Chiang Mai time.</footer>
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|