{% extends "base.html" %} {% load i18n %} {% block title %} {{ document.name }} {% endblock %} {% block content_title %} {{ document.name }} {% endblock %} {% block content %}

{{ document.details }}

{{ document.text|safe }} {% if request.user.is_authenticated %}

{% trans "Signature" %}

{% if document.user_consents %} {% blocktrans with name=document.user_consents.0.signed_name date=document.user_consents.0.created %} Signed on {{ date }} by {{ name }} {% endblocktrans %} {% else %} {% blocktrans %} If you agree with the terms above, please complete the form below. {% endblocktrans %}
{% csrf_token %}
{% trans "Digital Signature" %} {% if name_error %}
{% trans "Your signature could not be accepted. The name you signed did not match your user account's display name." %} {% endif %}

{{ request.user.get_full_name }}
{% trans "Have you read and understood this document, and do you agree to be bound by it?" %} {% if checkbox_error %}
{% trans "Your signature could not be accepted. You did not agree to sign this document." %} {% endif %}
{% trans "I agree" %}
{% endif %} {% endif %} {% endblock %}