{# ============================================================================== Formeleon - Multi-tenant Form Generator Author: Björn Runden Template: admin/forms/list.html Description: List all forms with filtering and management options. ============================================================================== #} {% extends "base.html" %} {% block title %}Forms - Formeleon{% endblock %} {% block content %}

Forms

{% if user %} Create Form {% endif %}
{% if forms %}
All Forms ({{ forms|length }})
{% for form in forms %} {% endfor %}
Name Tenant ID Status Submissions Created Actions
{{ form.name }} {{ form.tenant.name if form.tenant else 'N/A' }} {{ form.id }} {{ 'Active' if form.is_active else 'Inactive' }} {{ form.submissions|length }} {{ form.created_at.strftime('%Y-%m-%d') if form.created_at else 'N/A' }}
{% if is_admin or (user and form.tenant and user in form.tenant.users) %}
{% endif %}
{% else %}

No Forms

No forms have been created yet.

{% if user %} Create First Form {% endif %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}