{% extends "base_generic.html" %} {% load crispy_forms_tags custom_tags %} {% block pagetitle %}Report Template Library{% endblock %} {% block content %}

Report Template Library

{{ filter.qs|length }} template{{ filter.qs|length|pluralize }}

Find Word and PowerPoint templates, inspect their readiness, or upload a new report design.

Upload Template {% if filter.qs|length > 0 %} {% endif %}
{% crispy filter.form filter.helper %}
{% if filter.qs|length == 0 %}
{% if request.GET %}

No matching templates

Try broadening your filters or reset them to view available report templates.

Reset filters {% else %}

No report templates yet

Upload a Word or PowerPoint template to begin generating reports.

Upload Template {% endif %}
{% else %}

Template controls: report template management permission is required to edit global or protected templates or delete templates.

{% for template in filter.qs %} {% endfor %}
Status Document Type Name Orientation Client Project-Only Actions
{% with template.get_status as status %} {% if status == "success" %} Ready {% elif status == "warning" %} Warning {% elif status == "unknown" %} Unknown {% else %} {{ status|capfirst }} {% endif %} {% endwith %} {{ template.doc_type.extension|upper }} {% if template.protected %} Protected template: {% endif %} {{ template.name }} {% if template.landscape %} Landscape {% else %} Portrait {% endif %} {% if template.client %} {{ template.client }} {% else %} Any client {% endif %} {% if template.doc_type.doc_type == "project_docx" %} Yes {% else %} No {% endif %}
{% if request.user|can_edit_report_template:template %} {% else %} {% endif %} {% if request.user|can_delete_report_template:template %} {% endif %}
{% endif %}
{% endblock %} {% block morescripts %} {{ autocomplete_data|json_script:"report-template-autocomplete-data" }} {% comment %} Insert modals for additional template details {% endcomment %} {% for template in filter.qs %} {% include "snippets/template_detail_modal.html" with template=template %} {% endfor %} {% endblock %}