{% extends 'base.html' %} {% block title %}Document Templates – IT Asset Management{% endblock %} {% block breadcrumb %} {% endblock %} {% block content %}
Upload .docx Word files with {{ variable_name }} placeholders. When creating paperwork, the system fills them automatically from user / asset data. All generated documents can be regenerated with masked PII if a user leaves the company.
{% if templates %}
{% for tpl in templates %}
{{ tpl.name }}
{% if tpl.category %} {{ dict(doc_types)[tpl.category] if tpl.category in dict(doc_types) else tpl.category }} {% endif %}
{% if tpl.description %}

{{ tpl.description }}

{% endif %}
{% set vars = tpl.variables %} {% if vars %} {{ vars | length }} variable(s): {% for v in vars[:5] %}{{ v }}{% endfor %} {% if vars | length > 5 %}+{{ vars | length - 5 }} more{% endif %} {% else %} No variables detected {% endif %}
View Download {{ tpl.paperwork_docs.count() }} doc(s) generated
{% endfor %}
{% else %}
No templates yet. Upload your first template.
{% endif %} {% endblock %}