{% extends "base.html" %} {% from "macros.html" import render_breadcrumb, render_empty_state, render_pagination %} {% block title %}Templates - Document Generator{% endblock %} {% block breadcrumb %} {{ render_breadcrumb([ {'title': 'Dashboard', 'url': url_for('main.dashboard')}, {'title': 'Templates'} ]) }} {% endblock %} {% block content %}

Document Templates

Manage your document templates

New Template
{% if templates.items %}
{% for template in templates.items %}
{{ template.title }}
v{{ template.version }}
{% if template.description %}

{{ template.description[:100] }}{% if template.description|length > 100 %}...{% endif %}

{% else %}

No description provided

{% endif %}
Created
{{ template.created_at.strftime('%m/%d/%Y') }}
Jobs
{{ template.jobs.count() }}
{% endfor %}
{{ render_pagination(templates, 'templates.index') }} {% else %} {{ render_empty_state( title="No Templates Yet", description="Upload your first document template to get started with automated document generation.", icon="bi-file-earmark-text", action_text="Upload Template", action_url=url_for('templates.new') ) }} {% endif %} {% endblock %}