{% extends 'base.html' %} {% load static i18n crispy_forms_tags %} {% block title %}{% trans "Form Templates" %} - {{ block.super }}{% endblock %} {% block content %}

{% trans "Form Templates" %}

{% if query %} {% endif %}
{% if templates %}
{# View Switcher #} {% include "includes/_list_view_switcher.html" with list_id="form-templates-list" %} {# Card View (Default) #}
{% for template in templates %}
{{ template.name }}
{{ template.job|default:"N/A" }}
{# Stats #}
{{ template.get_stage_count }}
{% trans "Stages" %}
{{ template.get_field_count }}
{% trans "Fields" %}
{# Description #}

{% if template.description %} {{ template.description|truncatewords:20 }} {% else %} {% trans "No description provided" %} {% endif %}

{# Actions #}
{% trans "Created:" %} {{ template.created_at|date:"M d, Y" }} {{ template.updated_at|timesince }} {% trans "ago" %}
{% endfor %}
{# Table View #}
{# Pagination #} {% if templates.has_other_pages %} {% endif %} {% else %}

{% trans "No Form Templates Found" %}

{% if query %} {% blocktrans with query=query %}No templates match your search "{{ query }}".{% endblocktrans %} {% else %} {% trans "You haven't created any form templates yet." %} {% endif %}

{% endif %}
{% include 'includes/delete_modal.html' %} {% endblock %}