Files
visa/templates/_person_head.html
T
grabowski a2cedcdd7e
CI / secret scan (push) Successful in 5s
CI / fmt, clippy, tests (push) Successful in 39s
Phase 5: the Immigration Bureau's forms, filled in from the records
A Forms tab on each person fills in TM.7, STM.2, STM.9, STM.11 and STM.1
for an extension of stay, TM.47 for a 90-day report and TM.8 for a re-entry
permit. The Bureau's blank pages (forms/, with their sources and checksums)
go unchanged into a new PDF, and the values are written on the dotted lines
in Sarabun; boxes are ticked and the title circled where a form asks.
scripts/gen_layout.py measures the blanks into src/papers/layout.rs.

The tab says what would stay blank and links to where it is added. What only
the application says (the date, the office, the reason, the days, a trip) is
carried in the links and never stored. The extension's five forms also come
in one PDF. Opening or downloading a form is audited as entity "form" with
the forms' codes, never their values.

Migration 0005 adds what STM.1 and STM.11 ask of the company (capital,
revenue, equity, staff, a coordinator), a work permit's salary and contract
dates, and where an arrival came from. The Nix package now takes forms/.
2026-11-18 12:30:03 +07:00

32 lines
2.1 KiB
HTML

{#- The head of every page about one person, with its tabs: the same
place on each. -#}
<div class="phead tabbed">
<div class="crumbs"><a href="/people">People</a></div>
<div class="pagehead">
<h1><a href="/people/{{ p.id }}">{{ p.name }}</a></h1>
<div class="actions">
{% if p.archived %}
<form method="post" action="/people/{{ p.id }}/restore" class="inline-form"><input type="hidden" name="csrf" value="{{ csrf }}"><button type="submit" class="btn sm">Restore</button></form>
{% else %}
<form method="post" action="/people/{{ p.id }}/archive" class="inline-form" data-confirm="Archive {{ p.name }}? The record stays and can be restored."><input type="hidden" name="csrf" value="{{ csrf }}"><button type="submit" class="btn sm ghost">Archive</button></form>
{% endif %}
</div>
</div>
<p class="meta">
{%- if p.nationality_name %}{{ p.nationality_name }}{% else %}Nationality not recorded{% endif %}
{%- if p.age is not none %}<span class="sep">·</span>{{ p.age }} years{% endif %}
{%- if p.current_passport %}<span class="sep">·</span>passport <span class="mono">{{ p.current_passport }}</span>{% endif %}
{%- if p.employer %}<span class="sep">·</span><a href="/companies/{{ p.employer_id }}">{{ p.employer }}</a>{% endif %}
</p>
<nav class="tabs" aria-label="About {{ p.name }}">
<a href="/people/{{ p.id }}"{% if tab not in ["stay", "documents", "forms", "activity"] %} class="on" aria-current="page"{% endif %}>Overview</a>
<a href="/people/{{ p.id }}/stay"{% if tab == "stay" %} class="on" aria-current="page"{% endif %}>Visa and stay</a>
<a href="/people/{{ p.id }}/documents"{% if tab == "documents" %} class="on" aria-current="page"{% endif %}>Documents</a>
<a href="/people/{{ p.id }}/forms"{% if tab == "forms" %} class="on" aria-current="page"{% endif %}>Forms</a>
<a href="/people/{{ p.id }}/activity"{% if tab == "activity" %} class="on" aria-current="page"{% endif %}>Activity</a>
</nav>
</div>
{% if p.archived %}
<div class="notice warn">Archived on {{ p.archived_on }}. Archived people are left out of the list and the deadlines; Restore brings the record back.</div>
{% endif %}