{% extends "base.html" %} {% import "_fields.html" as fm %} {% import "_agreement_text.html" as ag %} {% block main %}
Agreements

{{ a.title }}

{% if a.active %}asked for Every client link asks for version {{ current }}.{% else %}switched off Client links do not ask for it.{% endif %}

Version {{ shown }}{% if shown != current %} earlier{% endif %}

{{ ag.text(blocks) }}

Versions

{% for v in versions %}
Version {{ v.version }}{% if v.version == current %}current{% endif %}{{ v.signed }} signed
published {{ v.published }} by {{ v.by }}
{{ v.sha256 }}
{% endfor %}

A new version

Change the text below and publish it as version {{ current + 1 }}. Clients who signed an earlier version sign again at their next link. A published text can never be changed.

{{ fm.area("body", "Text", draft, err=errors.body, rows=16, fcls="wide") }}
{% if is_preview %}

The new text as the client reads it

{{ ag.text(preview) }}
{% endif %} {% endblock %}