Files
visa/templates/client_agree.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

44 lines
2.8 KiB
HTML

{% extends "client_base.html" %}
{% import "_agreement_text.html" as ag %}
{% block main %}
<div class="crumbs"><a href="{{ base }}">Your details</a></div>
<h1 class="chead">{{ title }}</h1>
<p class="muted small">Version {{ version }}, {{ published }}</p>
{% if again %}<div class="notice warn">The text has changed since you last signed it. Read this version and sign it again.</div>{% endif %}
<section class="card agcard">
{{ ag.text(blocks) }}
</section>
{% if signed %}
<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>
{% else %}
<form method="post" action="{{ base }}/agree/{{ agreement_id }}" class="form card" id="sign-form" data-sign-form>
<input type="hidden" name="csrf" value="{{ csrf }}">
<input type="hidden" name="version" value="{{ version_id }}">
<h2>Sign</h2>
<div class="field{% if errors.accept %} has-err{% endif %}">
<label class="check"><input type="checkbox" name="accept" value="yes" id="f-accept" required{% if f.accept %} checked{% endif %}{% if errors.accept %} aria-invalid="true" aria-describedby="e-accept"{% endif %}> I have read this agreement and accept it.</label>
{% if errors.accept %}<p class="err" id="e-accept">{{ errors.accept }}</p>{% endif %}
</div>
<div class="field{% if errors.name %} has-err{% endif %}">
<label for="f-name">Your full name, as your signature <span class="req" aria-hidden="true">*</span></label>
<input id="f-name" name="name" type="text" value="{{ f.name }}" required autocomplete="name"{% if errors.name %} aria-invalid="true" aria-describedby="e-name"{% endif %}>
{% if errors.name %}<p class="err" id="e-name">{{ errors.name }}</p>{% endif %}
</div>
<div class="field sigfield{% if errors.drawing %} has-err{% endif %}" data-sign-wrap hidden>
<label for="f-pad">Sign with your finger or the mouse <span class="req" aria-hidden="true">*</span></label>
<canvas class="sigpad" id="f-pad" data-sign-pad aria-label="Signature pad"></canvas>
<input type="hidden" name="drawing" value="" data-sign-out>
<div class="sigbar"><button type="button" class="btn sm ghost" data-sign-clear>Clear</button><span class="err" data-sign-msg hidden>Sign in the box first.</span></div>
{% if errors.drawing %}<p class="err" id="e-drawing">{{ errors.drawing }}</p>{% endif %}
</div>
<div class="formactions">
<button type="submit" class="btn pri" id="sign-btn">Sign</button>
<a class="btn ghost" href="{{ base }}">Back</a>
</div>
<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>
<script src="/static/signature.js?v={{ v }}" defer></script>
{% endif %}
{% endblock %}