{% extends "base.html" %} {% from "components/ui.html" import page_header, breadcrumb_nav, button, filter_badge, empty_state %} {% block title %}{{ _('Project Templates') }} - {{ app_name }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': 'Project Templates'} ] %} {{ page_header( icon_class='fas fa-layer-group', title_text='Project Templates', subtitle_text='Create reusable project configurations', breadcrumbs=breadcrumbs, actions_html='Create Template' if (current_user.is_admin or has_permission('create_projects')) else None ) }}
{% if templates %}
{% for template in templates %}

{{ template.name }}

{% if template.category %} {{ template.category }} {% endif %}
{% if template.created_by == current_user.id %} {% endif %}
{% if template.description %}

{{ template.description }}

{% endif %}
{{ template.usage_count }} {{ _('uses') }} {% if template.is_public %} {{ _('Public') }} {% endif %}
{% endfor %}
{% if pagination.pages > 1 %}
{% if pagination.has_prev %} {{ _('Previous') }} {% endif %} {{ _('Page') }} {{ pagination.page }} {{ _('of') }} {{ pagination.pages }} {% if pagination.has_next %} {{ _('Next') }} {% endif %}
{% endif %} {% else %} {% set actions %} {% if current_user.is_admin or has_permission('create_projects') %} {{ _('Create Template') }} {% endif %} {% endset %} {{ empty_state( 'fas fa-layer-group', _('No Templates Found'), _('Create your first project template to quickly set up new projects with pre-configured settings and tasks.'), actions, type='no-data' ) }} {% endif %}
{% endblock %}