Files
visa/templates/client_documents.html
T
grabowski 424f212b23
CI / secret scan (push) Successful in 8s
CI / fmt, clippy, tests (push) Successful in 43s
CI / release (push) Skipped
Client texts name Lanna Desk, not B4L
Lanna Desk is the legal side of buildfor.life (B4L), and the client link,
its agreements, the demo agreement and the messages now name Lanna Desk:
"Lanna Desk looks after your visa ...", "Send to Lanna Desk", "Lanna
Desk keeps the signed copy". B4L stays where it is the company itself:
the employer in the Non-B pack and its BOI application.

README and PLAN say the same.

Checks: fmt, clippy, 109 unit and 57 integration tests.
2026-11-21 22:49:21 +07:00

39 lines
2.3 KiB
HTML

{% extends "client_base.html" %}
{% import "_fields.html" as fm %}
{% block main %}
<div class="crumbs"><a href="{{ base }}">Your details</a></div>
<h1 class="chead">Documents</h1>
<p class="lead2">Scans or photos of your papers: the passport's photo page, a passport photo (4 x 6 cm), your visa, the arrival stamp, the TDAC, the work permit. Upload one kind at a time. For a card (ID card, work permit card), choose the photo of the front and the photo of the back together, front first.</p>
{% if files_on %}
<form method="post" action="{{ base }}/documents" enctype="multipart/form-data" class="upload card" id="upload">
<input type="hidden" name="csrf" value="{{ csrf }}">
{%- if errors %}
<div class="notice warn">Nothing was uploaded. Correct what is marked and choose the files again.</div>
{%- endif %}
{{ fm.select("kind", "What the files are", v.kind, kinds, err=errors.kind, blank="Choose", req=true) }}
<div class="drop{% if errors.file %} has-err{% endif %}" data-max="{{ file_limit }}">
<input type="file" id="f-file" name="file" multiple required accept="application/pdf,image/jpeg,image/png,image/webp" aria-describedby="h-file{% if errors.file %} e-file{% endif %}">
<span class="drop-icon" aria-hidden="true">+</span>
<label for="f-file"><b>Choose files</b> or take a photo</label>
<span class="drop-names" data-drop-names></span>
<span class="hint" id="h-file">PDF, JPEG, PNG or WebP, up to {{ file_limit_mb }} MB each, {{ max_files }} at once</span>
</div>
{%- if errors.file %}
<p class="err" id="e-file">{{ errors.file }}</p>
{%- endif %}
{{ fm.text("note", "Note", v.note, err=errors.note, ph="page 2") }}
<div class="formactions"><button type="submit" class="btn pri" id="upload-btn">Upload</button><a class="btn ghost" href="{{ base }}">Back</a></div>
</form>
{% else %}
<div class="notice warn">Uploads are switched off on this server. Give your papers to Lanna Desk instead.</div>
{% endif %}
<section class="card" id="uploaded">
<header><h2>Uploaded through this link</h2></header>
{% for d in uploaded %}
<div class="item"><div class="row"><b>{{ d.label }}</b><span class="muted small">{{ d.at }}</span></div><div class="muted small fname">{{ d.file_name }}, {{ d.size }}</div></div>
{% else %}
<p class="empty-inline">Nothing yet.</p>
{% endfor %}
</section>
{% endblock %}