{# templates/esign/edit_document.html #} {% extends "esign/base_header.html" %} {% block content %} {% if messages %}
{% for message in messages %} {% if forloop.last %} {% endif %} {% endfor %}
{% endif %}
{% csrf_token %}

Edit Document

{% if document.file %}
{% else %}
No file yet. Upload a PDF to preview.
{% endif %} {% if errors.file %}
{{ errors.file }}
{% endif %}

Drop your files here or

Only PDF. Max 100 MB.

Recipients

{# Render existing recipients server-side so JS can clone from first element #} {% if recipients_initial %} {% for r in recipients_initial %}
{{ forloop.counter }}
{% endfor %} {% else %} {# Render a single empty template when no recipients found #}
1
{% endif %}

0/100
{% if errors.subject %}
{{ errors.subject }}
{% endif %}
0/1000
{% if errors.message %}
{{ errors.message }}
{% endif %}
{% endblock %}