Phase 5: the Immigration Bureau's forms, filled in from the records
CI / secret scan (push) Successful in 5s
CI / fmt, clippy, tests (push) Successful in 39s

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/.
This commit is contained in:
grabowski committed 2026-11-18 12:30:03 +07:00
1 parent 2a6e972b68
commit a2cedcdd7e
40 files changed
+3404 -35

No files matched your search

+76 -3
View File
@@ -717,14 +717,14 @@ textarea.mrz {
color: var(--hd);
border-bottom-color: var(--accent);
}
/* four tabs fit a phone */
/* five tabs fit a phone */
@media (max-width: 560px) {
.tabs {
gap: 0;
}
.tabs a {
padding: 8px 9px;
font-size: 14px;
padding: 8px 7px;
font-size: 13.5px;
}
}
@@ -997,6 +997,79 @@ textarea.mrz {
}
}
/* ---- a heading inside a form, over the whole row */
.fsec {
grid-column: 1 / -1;
margin: 18px 0 4px;
font-size: 14.5px;
font-weight: 750;
color: var(--hd);
}
.grid > .fsec:first-child {
margin-top: 0;
}
/* ---- the Forms tab: each form with its links and what it still lacks */
.paper {
padding: 12px 0;
border-top: 1px solid var(--line);
}
.paper:first-of-type {
border-top: 0;
padding-top: 4px;
}
.paper-head {
display: grid;
grid-template-columns: 62px minmax(0, 1fr) auto;
gap: 8px 12px;
align-items: start;
}
.paper-code {
padding: 2px 0;
border-radius: 6px;
background: var(--accent-s);
color: var(--hd);
font-size: 13px;
font-weight: 800;
text-align: center;
white-space: nowrap;
}
.paper-go {
display: flex;
gap: 6px;
}
.paper-missing {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 12px;
margin: 8px 0 0 74px;
font-size: 13.5px;
}
.appform .grid + .fsec {
margin-top: 20px;
}
/* the forms get the wider column */
.cols.papers {
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
@media (max-width: 1060px) {
.cols.papers {
grid-template-columns: minmax(0, 1fr);
}
}
@media (max-width: 560px) {
.paper-head {
grid-template-columns: 58px minmax(0, 1fr);
}
.paper-go {
grid-column: 2;
}
.paper-missing {
margin-left: 70px;
}
}
/* the list runs to the card's edges */
.tblwrap.bleed {
margin: 0 -20px -18px;