{#- Documents: the upload with what the files are, and the list. A person's Documents tab and a company's page use them. -#} {% import "_fields.html" as fm %} {#- The record a person's document belongs to, by kind of record. -#} {% macro belongs(value, groups, err="") -%}
{{ err }}
{%- endif %}| Document | {% if person %}Belongs to | {% endif %}Dated | File | Added | Actions |
|---|---|---|---|---|---|
|
{{ d.kind_label }}{% if d.side == "front" %} front{% elif d.side == "back" %} back{% endif %}
{%- if d.note %} {{ d.note }} {% endif %}
{% if d.dated_on %}{{ d.dated_on }} ยท {% endif %}{{ d.type_label }}, {{ d.size }}
|
{%- if person %}
{% if d.link_label %}{{ d.link_label }}{% else %}the person{% endif %} | {%- endif %}{{ d.dated_on }} | {{ d.type_label }} {{ d.size }} {{ d.file_name }} |
{{ d.uploaded }} {{ d.uploaded_by }} |
ViewDownload{% if d.side == "front" %}Print both sides{% endif %}Edit |