Compare commits
1
Commits
2026.11.9
...
2026.11.10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
424f212b23 |
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
# Lanna Desk (lannadesk.com)
|
# Lanna Desk (lannadesk.com)
|
||||||
|
|
||||||
Lanna Desk, the app `visa`, keeps the immigration records of the foreigners that B4L
|
Lanna Desk, the app `visa`, keeps the immigration records of the foreigners that Lanna Desk
|
||||||
looks after in Thailand: their passports, addresses and TM.30 receipts,
|
looks after in Thailand: their passports, addresses and TM.30 receipts,
|
||||||
visas, arrivals with the TDAC, extensions of stay, re-entry permits, 90-day
|
visas, arrivals with the TDAC, extensions of stay, re-entry permits, 90-day
|
||||||
reports and work permits, and the companies that employ them. From those
|
reports and work permits, and the companies that employ them. From those
|
||||||
@@ -187,7 +187,7 @@ Since November 17, 2026 the app runs on cnx01 in the office, like proplan and
|
|||||||
lampbench-web: the database `visa` on cnx01's PostgreSQL, the documents in the
|
lampbench-web: the database `visa` on cnx01's PostgreSQL, the documents in the
|
||||||
bucket `visa-documents` of cnx01's Garage, backups by borg, and bkk01
|
bucket `visa-documents` of cnx01's Garage, backups by borg, and bkk01
|
||||||
publishing https://app.lannadesk.com (its first name, visa.buildfor.life,
|
publishing https://app.lannadesk.com (its first name, visa.buildfor.life,
|
||||||
and its paths on lannadesk.com redirect there with the path). Passport data stays on B4L's own
|
and its paths on lannadesk.com redirect there with the path). Passport data stays on buildfor.life's own
|
||||||
servers. The fleet's module is `modules/visa` in cnx-network-clan, with its
|
servers. The fleet's module is `modules/visa` in cnx-network-clan, with its
|
||||||
runbook in `docs/src/visa.md` there. Only members of the Kanidm group `visa`
|
runbook in `docs/src/visa.md` there. Only members of the Kanidm group `visa`
|
||||||
get in; members are set in the fleet's `identity/people.nix`.
|
get in; members are set in the fleet's `identity/people.nix`.
|
||||||
|
|||||||
+8
-7
@@ -8,17 +8,18 @@
|
|||||||
> extension pack, and phase 7, the client link, were built on November 20,
|
> extension pack, and phase 7, the client link, were built on November 20,
|
||||||
> 2026, the same day every push to main became a signed release that cnx01
|
> 2026, the same day every push to main became a signed release that cnx01
|
||||||
> installs by itself. Task 7.6, the agreements the client signs, followed the
|
> installs by itself. Task 7.6, the agreements the client signs, followed the
|
||||||
> same day; B4L's real text goes in under Agreements once the lawyers send
|
> same day; Lanna Desk's real text goes in under Agreements once the lawyers send
|
||||||
> it. On November 21, 2026 the app took the name Lanna Desk and moved to
|
> it. On November 21, 2026 the app took the name Lanna Desk and moved to
|
||||||
> https://lannadesk.com, B4L's name for an agency that also takes on legal
|
> https://lannadesk.com, the legal side of buildfor.life (B4L), an agency that also takes on legal
|
||||||
> work and artists' contracts; visa.buildfor.life redirects there with the
|
> work and artists' contracts; visa.buildfor.life redirects there with the
|
||||||
> path. The same day `/` became the public page with the logo, the back
|
> path. The same day `/` became the public page with the logo, the back
|
||||||
> office moved to `/desk`, and signing out ends the id.cnx.network session
|
> office moved to `/desk`, and signing out ends the id.cnx.network session
|
||||||
> too. Later that day lannadesk.com became Lanna Desk's own static website
|
> too. Later that day lannadesk.com became Lanna Desk's own static website
|
||||||
> (B4L/lannadesk-web, Astro), and the app moved to https://app.lannadesk.com;
|
> (B4L/lannadesk-web, Astro), and the app moved to https://app.lannadesk.com;
|
||||||
> its `/` now leads to the back office. **Resume here: phase 8, reminders.**
|
> its `/` now leads to the back office, and the texts clients read name Lanna
|
||||||
|
> Desk rather than B4L. **Resume here: phase 8, reminders.**
|
||||||
|
|
||||||
Lanna Desk keeps the immigration records of the foreigners that B4L
|
Lanna Desk keeps the immigration records of the foreigners that it
|
||||||
looks after: their passports, addresses in Thailand, arrivals with the Thailand
|
looks after: their passports, addresses in Thailand, arrivals with the Thailand
|
||||||
Digital Arrival Card (TDAC), visas, extensions of stay, re-entry permits,
|
Digital Arrival Card (TDAC), visas, extensions of stay, re-entry permits,
|
||||||
90-day reports and work permits. From those records it works out every
|
90-day reports and work permits. From those records it works out every
|
||||||
@@ -52,7 +53,7 @@ The first round of questions was answered on November 17, 2026.
|
|||||||
| Client input (Nov 20) | goes straight into the person's record, logged as coming from the link; staff check it |
|
| Client input (Nov 20) | goes straight into the person's record, logged as coming from the link; staff check it |
|
||||||
| Link lifetime (Nov 20) | 14 days, or until the client presses Send or staff close the link |
|
| Link lifetime (Nov 20) | 14 days, or until the client presses Send or staff close the link |
|
||||||
| Passport photo (Nov 20) | read in the browser with Tesseract.js and an MRZ model served by the app; the photo never leaves the device, only the lines it finds are sent, and the server checks them like typed ones |
|
| Passport photo (Nov 20) | read in the browser with Tesseract.js and an MRZ model served by the app; the photo never leaves the device, only the lines it finds are sent, and the server checks them like typed ones |
|
||||||
| Client agreements (Nov 20) | built into the app rather than run as a separate signing service (DocuSeal was weighed: its embedding, single sign-on and branding are paid, and it would be a second store of client identities): any number of agreements in versions whose text never changes, each signed on the client link with the typed name and a drawing; the data processing agreement first, legal services and consultations later. The texts come from B4L's lawyers |
|
| Client agreements (Nov 20) | built into the app rather than run as a separate signing service (DocuSeal was weighed: its embedding, single sign-on and branding are paid, and it would be a second store of client identities): any number of agreements in versions whose text never changes, each signed on the client link with the typed name and a drawing; the data processing agreement first, legal services and consultations later. The texts come from Lanna Desk's lawyers. Since Nov 21 the texts clients read name Lanna Desk, not B4L (Alex) |
|
||||||
|
|
||||||
Kanidm keeps persons, groups and OAuth2 clients in one namespace, so the
|
Kanidm keeps persons, groups and OAuth2 clients in one namespace, so the
|
||||||
client cannot be called `visa` like the group. It is `visa-web`, as
|
client cannot be called `visa` like the group. It is `visa-web`, as
|
||||||
@@ -238,7 +239,7 @@ dark at desktop and phone width, a commit and a push.
|
|||||||
| 4 | Documents: encrypted uploads (passport pages, TDAC, receipts, photo) in a bucket of cnx01's Garage (first on the dataset `zroot/visa`) with a key var, viewing and download, all audited; the office's GPS position and photo | live Nov 18, 2026; Garage built Nov 19, 2026 |
|
| 4 | Documents: encrypted uploads (passport pages, TDAC, receipts, photo) in a bucket of cnx01's Garage (first on the dataset `zroot/visa`) with a key var, viewing and download, all audited; the office's GPS position and photo | live Nov 18, 2026; Garage built Nov 19, 2026 |
|
||||||
| 5 | Filled-in forms: TM.7, STM.2, the overstay acknowledgment (STM.9), STM.11, STM.1, TM.47 and TM.8 as PDF | built Nov 18, 2026 |
|
| 5 | Filled-in forms: TM.7, STM.2, the overstay acknowledgment (STM.9), STM.11, STM.1, TM.47 and TM.8 as PDF | built Nov 18, 2026 |
|
||||||
| 6 | The Non-B extension pack: B4L's company documents, the checklist, one PDF to print | built Nov 20, 2026 |
|
| 6 | The Non-B extension pack: B4L's company documents, the checklist, one PDF to print | built Nov 20, 2026 |
|
||||||
| 7 | The client link: a client fills in their own record on a phone, the MRZ read from a photo, and signs B4L's agreements | built Nov 20, 2026 |
|
| 7 | The client link: a client fills in their own record on a phone, the MRZ read from a photo, and signs Lanna Desk's agreements | built Nov 20, 2026 |
|
||||||
| 8 | Reminders by Matrix room message and by email | |
|
| 8 | Reminders by Matrix room message and by email | |
|
||||||
| later | Thai user interface, agency cases and fees, other visa categories' packs | |
|
| later | Thai user interface, agency cases and fees, other visa categories' packs | |
|
||||||
|
|
||||||
@@ -534,5 +535,5 @@ Planned on November 20, 2026, from Alex's answers (decisions table).
|
|||||||
|
|
||||||
1. B4L's BOI application: once B4L is promoted, its staff extend their stay
|
1. B4L's BOI application: once B4L is promoted, its staff extend their stay
|
||||||
through the BOI's One Start One Stop center, which changes phase 6's pack.
|
through the BOI's One Start One Stop center, which changes phase 6's pack.
|
||||||
2. The agreements' texts come from B4L's lawyers. Whether a typed name and
|
2. The agreements' texts come from Lanna Desk's lawyers. Whether a typed name and
|
||||||
a drawing are enough for each kind of agreement is theirs to say.
|
a drawing are enough for each kind of agreement is theirs to say.
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
//! Agreements the client signs through their link (task 7.6): the
|
//! Agreements the client signs through their link (task 7.6): the
|
||||||
//! processing of their data by B4L first, later legal services or a
|
//! processing of their data by Lanna Desk first, later legal services or a
|
||||||
//! consultation. An agreement has versions; a published text never changes
|
//! consultation. An agreement has versions; a published text never changes
|
||||||
//! (the table refuses it), so a signature names the exact words signed, by
|
//! (the table refuses it), so a signature names the exact words signed, by
|
||||||
//! version and SHA-256. A new text is a new version, which each client signs
|
//! version and SHA-256. A new text is a new version, which each client signs
|
||||||
@@ -358,13 +358,12 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn text_in_blocks() {
|
fn text_in_blocks() {
|
||||||
let body =
|
let body = "# 1. Purpose\r\nLanna Desk processes\nyour data.\n\n- name\n- passport\n\nEnd. \n\n\n";
|
||||||
"# 1. Purpose\r\nB4L processes\nyour data.\n\n- name\n- passport\n\nEnd. \n\n\n";
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
blocks(body),
|
blocks(body),
|
||||||
vec![
|
vec![
|
||||||
Block::Heading("1. Purpose".into()),
|
Block::Heading("1. Purpose".into()),
|
||||||
Block::Para("B4L processes your data.".into()),
|
Block::Para("Lanna Desk processes your data.".into()),
|
||||||
Block::Item("name".into()),
|
Block::Item("name".into()),
|
||||||
Block::Item("passport".into()),
|
Block::Item("passport".into()),
|
||||||
Block::Para("End.".into()),
|
Block::Para("End.".into()),
|
||||||
|
|||||||
@@ -366,8 +366,9 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn a_signed_copy_renders() {
|
fn a_signed_copy_renders() {
|
||||||
let blocks =
|
let blocks = super::super::blocks(
|
||||||
super::super::blocks("# Purpose\nB4L processes your data.\n\n- name\n- passport");
|
"# Purpose\nLanna Desk processes your data.\n\n- name\n- passport",
|
||||||
|
);
|
||||||
let s = Signed {
|
let s = Signed {
|
||||||
title: "Processing of your data",
|
title: "Processing of your data",
|
||||||
version: 1,
|
version: 1,
|
||||||
|
|||||||
+5
-5
@@ -646,21 +646,21 @@ pub async fn demo(db: &PgPool, today: NaiveDate) -> Result<bool> {
|
|||||||
Ok(true)
|
Ok(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An invented agreement, so the client link shows the step to sign; B4L's
|
/// An invented agreement, so the client link shows the step to sign; Lanna Desk's
|
||||||
/// real text comes from its lawyers.
|
/// real text comes from its lawyers.
|
||||||
const DEMO_AGREEMENT: (&str, &str) = (
|
const DEMO_AGREEMENT: (&str, &str) = (
|
||||||
"How B4L processes your personal data (demo)",
|
"How Lanna Desk processes your personal data (demo)",
|
||||||
"# This text is invented for development\n\
|
"# This text is invented for development\n\
|
||||||
It shows how an agreement looks on the client's link. B4L's real text \
|
It shows how an agreement looks on the client's link. Lanna Desk's real text \
|
||||||
comes from its lawyers and is added under Agreements.\n\
|
comes from its lawyers and is added under Agreements.\n\
|
||||||
\n\
|
\n\
|
||||||
# 1. What B4L keeps\n\
|
# 1. What Lanna Desk keeps\n\
|
||||||
- your name, date of birth and nationality\n\
|
- your name, date of birth and nationality\n\
|
||||||
- your passport, visas and stamps\n\
|
- your passport, visas and stamps\n\
|
||||||
- your address in Thailand and how to reach you\n\
|
- your address in Thailand and how to reach you\n\
|
||||||
\n\
|
\n\
|
||||||
# 2. What for\n\
|
# 2. What for\n\
|
||||||
B4L keeps these to look after your visa and your stay in Thailand: \
|
Lanna Desk keeps these to look after your visa and your stay in Thailand: \
|
||||||
the deadlines, the forms and the documents Immigration asks for.\n\
|
the deadlines, the forms and the documents Immigration asks for.\n\
|
||||||
\n\
|
\n\
|
||||||
# 3. ข้อความภาษาไทย\n\
|
# 3. ข้อความภาษาไทย\n\
|
||||||
|
|||||||
+8
-8
@@ -86,7 +86,7 @@ fn closed_page(st: &AppState, link: Option<&Link>) -> Response {
|
|||||||
None => (
|
None => (
|
||||||
StatusCode::NOT_FOUND,
|
StatusCode::NOT_FOUND,
|
||||||
"This link does not work",
|
"This link does not work",
|
||||||
"There is no link at this address. Check that you opened the whole link, or ask B4L \
|
"There is no link at this address. Check that you opened the whole link, or ask Lanna Desk \
|
||||||
for a new one."
|
for a new one."
|
||||||
.to_string(),
|
.to_string(),
|
||||||
),
|
),
|
||||||
@@ -94,8 +94,8 @@ fn closed_page(st: &AppState, link: Option<&Link>) -> Response {
|
|||||||
StatusCode::GONE,
|
StatusCode::GONE,
|
||||||
"Thank you",
|
"Thank you",
|
||||||
format!(
|
format!(
|
||||||
"You sent your details on {}. B4L checks them and gets in touch. To change \
|
"You sent your details on {}. Lanna Desk checks them and gets in touch. To change \
|
||||||
something now, ask B4L for a new link.",
|
something now, ask Lanna Desk for a new link.",
|
||||||
l.sent_at.map(links::day).unwrap_or_default()
|
l.sent_at.map(links::day).unwrap_or_default()
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -103,14 +103,14 @@ fn closed_page(st: &AppState, link: Option<&Link>) -> Response {
|
|||||||
StatusCode::GONE,
|
StatusCode::GONE,
|
||||||
"This link has expired",
|
"This link has expired",
|
||||||
format!(
|
format!(
|
||||||
"It worked until {}. Ask B4L for a new one; what you saved through it is kept.",
|
"It worked until {}. Ask Lanna Desk for a new one; what you saved through it is kept.",
|
||||||
links::day(l.expires_at)
|
links::day(l.expires_at)
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Some(_) => (
|
Some(_) => (
|
||||||
StatusCode::GONE,
|
StatusCode::GONE,
|
||||||
"This link is closed",
|
"This link is closed",
|
||||||
"B4L closed it. Ask them for a new one if you still need to send something; what you \
|
"Lanna Desk closed it. Ask for a new one if you still need to send something; what you \
|
||||||
saved through it is kept."
|
saved through it is kept."
|
||||||
.to_string(),
|
.to_string(),
|
||||||
),
|
),
|
||||||
@@ -267,7 +267,7 @@ async fn parts(st: &AppState, c: &Client) -> anyhow::Result<Vec<Part>> {
|
|||||||
let has = |k: &str| docs.iter().any(|d| d.kind == k);
|
let has = |k: &str| docs.iter().any(|d| d.kind == k);
|
||||||
let papers = has("passport-photo-page") && has("photo");
|
let papers = has("passport-photo-page") && has("photo");
|
||||||
let state = |done: bool, yes: &str, no: &str| if done { yes } else { no }.to_string();
|
let state = |done: bool, yes: &str, no: &str| if done { yes } else { no }.to_string();
|
||||||
// the agreements first: they say what B4L does with the rest
|
// the agreements first: they say what Lanna Desk does with the rest
|
||||||
let mut out: Vec<Part> = agreements::for_person(&st.db, c.id())
|
let mut out: Vec<Part> = agreements::for_person(&st.db, c.id())
|
||||||
.await?
|
.await?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
@@ -627,7 +627,7 @@ pub async fn passport_save(
|
|||||||
err(
|
err(
|
||||||
&mut errors,
|
&mut errors,
|
||||||
"number",
|
"number",
|
||||||
"This passport cannot be saved here. If it is yours, tell B4L.",
|
"This passport cannot be saved here. If it is yours, tell Lanna Desk.",
|
||||||
);
|
);
|
||||||
return Ok(passport_page(&st, &c, &pf, &errors, None));
|
return Ok(passport_page(&st, &c, &pf, &errors, None));
|
||||||
}
|
}
|
||||||
@@ -1133,7 +1133,7 @@ pub async fn sign(
|
|||||||
err(
|
err(
|
||||||
&mut errors,
|
&mut errors,
|
||||||
"accept",
|
"accept",
|
||||||
"B4L changed the text while you read it. Read this version and sign again.",
|
"Lanna Desk changed the text while you read it. Read this version and sign again.",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if form.name.is_empty() {
|
if form.name.is_empty() {
|
||||||
|
|||||||
+1
-1
@@ -169,7 +169,7 @@ fn made_page(
|
|||||||
);
|
);
|
||||||
format!(
|
format!(
|
||||||
"mailto:{email}?subject={}&body={}",
|
"mailto:{email}?subject={}&body={}",
|
||||||
percent_encode("Your details for B4L"),
|
percent_encode("Your details for Lanna Desk"),
|
||||||
percent_encode(&body)
|
percent_encode(&body)
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<input type="hidden" name="csrf" value="{{ csrf }}">
|
<input type="hidden" name="csrf" value="{{ csrf }}">
|
||||||
<section class="card">
|
<section class="card">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
{{ fm.text("title", "Title", d.title, err=errors.title, req=true, cls="wide", hint="As the client sees it, for example: How B4L processes your personal data.") }}
|
{{ fm.text("title", "Title", d.title, err=errors.title, req=true, cls="wide", hint="As the client sees it, for example: How Lanna Desk processes your personal data.") }}
|
||||||
{{ fm.area("body", "Text", d.body, err=errors.body, rows=18, fcls="wide", hint="Paste it as legal wrote it. An empty line starts a new paragraph, # and a space a heading, - and a space a list item.") }}
|
{{ fm.area("body", "Text", d.body, err=errors.body, rows=18, fcls="wide", hint="Paste it as legal wrote it. An empty line starts a new paragraph, # and a space a heading, - and a space a list item.") }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends "client_base.html" %}
|
{% extends "client_base.html" %}
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<h1 class="chead">{% if first_name %}Hello {{ first_name }}{% else %}Hello{% endif %}</h1>
|
<h1 class="chead">{% if first_name %}Hello {{ first_name }}{% else %}Hello{% endif %}</h1>
|
||||||
<p class="lead2">B4L looks after your visa and your stay in Thailand. {% if locked %}First read and sign how B4L works with your details; then the other parts open.{% else %}Fill in the parts below.{% endif %} Each part is saved on its own, so you can stop and come back to this link. When everything is in, press Send.</p>
|
<p class="lead2">Lanna Desk looks after your visa and your stay in Thailand. {% if locked %}First read and sign how Lanna Desk works with your details; then the other parts open.{% else %}Fill in the parts below.{% endif %} Each part is saved on its own, so you can stop and come back to this link. When everything is in, press Send.</p>
|
||||||
{% if saved %}<div class="notice ok" role="status">Saved: {{ saved }}.</div>{% endif %}
|
{% if saved %}<div class="notice ok" role="status">Saved: {{ saved }}.</div>{% endif %}
|
||||||
<ol class="parts">
|
<ol class="parts">
|
||||||
{% for p in parts %}
|
{% for p in parts %}
|
||||||
@@ -28,11 +28,11 @@
|
|||||||
<p class="muted">Sign the agreement first; then fill in the rest and send it.</p>
|
<p class="muted">Sign the agreement first; then fill in the rest and send it.</p>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<form method="post" action="{{ base }}/send" class="card sendcard" id="send"{% if missing %} data-confirm="Still to do: {{ missing|join(", ") }}. Send anyway? The link closes once it is sent."{% else %} data-confirm="Send your details to B4L? The link closes once it is sent."{% endif %}>
|
<form method="post" action="{{ base }}/send" class="card sendcard" id="send"{% if missing %} data-confirm="Still to do: {{ missing|join(", ") }}. Send anyway? The link closes once it is sent."{% else %} data-confirm="Send your details to Lanna Desk? The link closes once it is sent."{% endif %}>
|
||||||
<input type="hidden" name="csrf" value="{{ csrf }}">
|
<input type="hidden" name="csrf" value="{{ csrf }}">
|
||||||
<h2>Send</h2>
|
<h2>Send</h2>
|
||||||
<p class="muted">{% if missing %}Still to do: {{ missing|join(", ") }}. You can send now and give the rest to B4L later.{% else %}Everything is in. Send it, and B4L checks it.{% endif %} After Send the link closes.</p>
|
<p class="muted">{% if missing %}Still to do: {{ missing|join(", ") }}. You can send now and give the rest to Lanna Desk later.{% else %}Everything is in. Send it, and Lanna Desk checks it.{% endif %} After Send the link closes.</p>
|
||||||
<button type="submit" class="btn pri" id="send-btn">Send to B4L</button>
|
<button type="submit" class="btn pri" id="send-btn">Send to Lanna Desk</button>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
{{ ag.text(blocks) }}
|
{{ ag.text(blocks) }}
|
||||||
</section>
|
</section>
|
||||||
{% if signed %}
|
{% if signed %}
|
||||||
<div class="notice ok" role="status">You signed this version on {{ signed }}. B4L keeps the signed copy.</div>
|
<div class="notice ok" role="status">You signed this version on {{ signed }}. Lanna Desk keeps the signed copy.</div>
|
||||||
<p><a class="btn" href="{{ base }}">Back</a></p>
|
<p><a class="btn" href="{{ base }}">Back</a></p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<form method="post" action="{{ base }}/agree/{{ agreement_id }}" class="form card" id="sign-form" data-sign-form>
|
<form method="post" action="{{ base }}/agree/{{ agreement_id }}" class="form card" id="sign-form" data-sign-form>
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
<button type="submit" class="btn pri" id="sign-btn">Sign</button>
|
<button type="submit" class="btn pri" id="sign-btn">Sign</button>
|
||||||
<a class="btn ghost" href="{{ base }}">Back</a>
|
<a class="btn ghost" href="{{ base }}">Back</a>
|
||||||
</div>
|
</div>
|
||||||
<p class="hint">Signing records your name, the time, this link, your internet address and your browser with the exact text. B4L keeps the signed copy as a PDF.</p>
|
<p class="hint">Signing records your name, the time, this link, your internet address and your browser with the exact text. Lanna Desk keeps the signed copy as a PDF.</p>
|
||||||
</form>
|
</form>
|
||||||
<script src="/static/signature.js?v={{ v }}" defer></script>
|
<script src="/static/signature.js?v={{ v }}" defer></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</header>
|
</header>
|
||||||
<main class="cmain" id="main">
|
<main class="cmain" id="main">
|
||||||
{% block main %}{% endblock %}
|
{% block main %}{% endblock %}
|
||||||
{% if until %}<footer class="ft">This link works until {{ until }}. What you save here goes to B4L, who look after your visa and stay in Thailand; nobody else sees it.</footer>{% endif %}
|
{% if until %}<footer class="ft">This link works until {{ until }}. What you save here goes to Lanna Desk, which looks after your visa and stay in Thailand; nobody else sees it.</footer>{% endif %}
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
<form method="post" action="{{ base }}/contact" class="form" id="contact-form">
|
<form method="post" action="{{ base }}/contact" class="form" id="contact-form">
|
||||||
<input type="hidden" name="csrf" value="{{ csrf }}">
|
<input type="hidden" name="csrf" value="{{ csrf }}">
|
||||||
<section class="card">
|
<section class="card">
|
||||||
<p class="hint lead">B4L uses them to reach you about your visa and your deadlines.</p>
|
<p class="hint lead">Lanna Desk uses them to reach you about your visa and your deadlines.</p>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
{{ fm.text("phone", "Phone", f.phone, err=errors.phone, type="tel", auto="tel", hint="With the country code if it is not a Thai number.") }}
|
{{ fm.text("phone", "Phone", f.phone, err=errors.phone, type="tel", auto="tel", hint="With the country code if it is not a Thai number.") }}
|
||||||
{{ fm.text("email", "Email", f.email, err=errors.email, type="email", auto="email") }}
|
{{ fm.text("email", "Email", f.email, err=errors.email, type="email", auto="email") }}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
<div class="formactions"><button type="submit" class="btn pri" id="upload-btn">Upload</button><a class="btn ghost" href="{{ base }}">Back</a></div>
|
<div class="formactions"><button type="submit" class="btn pri" id="upload-btn">Upload</button><a class="btn ghost" href="{{ base }}">Back</a></div>
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="notice warn">Uploads are switched off on this server. Give your papers to B4L instead.</div>
|
<div class="notice warn">Uploads are switched off on this server. Give your papers to Lanna Desk instead.</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<section class="card" id="uploaded">
|
<section class="card" id="uploaded">
|
||||||
<header><h2>Uploaded through this link</h2></header>
|
<header><h2>Uploaded through this link</h2></header>
|
||||||
|
|||||||
+3
-3
@@ -11,7 +11,7 @@ use crate::common::{App, Resp, assert_unique_ids, local};
|
|||||||
/// A 1 x 1 PNG, as the signature pad would send it.
|
/// A 1 x 1 PNG, as the signature pad would send it.
|
||||||
const DRAWING: &str = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==";
|
const DRAWING: &str = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==";
|
||||||
|
|
||||||
const TEXT: &str = "# 1. What B4L keeps\nYour name and passport.\n\n- name\n- passport";
|
const TEXT: &str = "# 1. What Lanna Desk keeps\nYour name and passport.\n\n- name\n- passport";
|
||||||
|
|
||||||
async fn client_post(
|
async fn client_post(
|
||||||
app: &App,
|
app: &App,
|
||||||
@@ -63,7 +63,7 @@ async fn staff_publish_versions_that_never_change(pool: PgPool) {
|
|||||||
.await;
|
.await;
|
||||||
assert_eq!(r.status, StatusCode::OK);
|
assert_eq!(r.status, StatusCode::OK);
|
||||||
assert!(
|
assert!(
|
||||||
r.text().contains("<h3>1. What B4L keeps</h3>"),
|
r.text().contains("<h3>1. What Lanna Desk keeps</h3>"),
|
||||||
"{}",
|
"{}",
|
||||||
r.body
|
r.body
|
||||||
);
|
);
|
||||||
@@ -183,7 +183,7 @@ async fn the_client_signs_and_signs_again_after_a_change(pool: PgPool) {
|
|||||||
assert_eq!(r.status, StatusCode::OK);
|
assert_eq!(r.status, StatusCode::OK);
|
||||||
assert_unique_ids(&r.body, &uri);
|
assert_unique_ids(&r.body, &uri);
|
||||||
let t = r.text();
|
let t = r.text();
|
||||||
assert!(t.contains("<h3>1. What B4L keeps</h3>"));
|
assert!(t.contains("<h3>1. What Lanna Desk keeps</h3>"));
|
||||||
assert!(t.contains("value=\"Hans Becker\""), "{t}");
|
assert!(t.contains("value=\"Hans Becker\""), "{t}");
|
||||||
assert!(t.contains("/static/signature.js"));
|
assert!(t.contains("/static/signature.js"));
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -163,7 +163,7 @@ async fn every_page_renders_with_demo_data(pool: PgPool) {
|
|||||||
),
|
),
|
||||||
(
|
(
|
||||||
"/agreements".to_string(),
|
"/agreements".to_string(),
|
||||||
"How B4L processes your personal data (demo)",
|
"How Lanna Desk processes your personal data (demo)",
|
||||||
),
|
),
|
||||||
("/agreements/new".to_string(), "Publish version 1"),
|
("/agreements/new".to_string(), "Publish version 1"),
|
||||||
("/agreements/1".to_string(), "ข้อความภาษาไทย"),
|
("/agreements/1".to_string(), "ข้อความภาษาไทย"),
|
||||||
|
|||||||
Reference in new issue
Block a user