{# ==============================================================================
Formeleon - Multi-tenant Form Generator
Author: Björn Runden
Template: admin/dashboard.html
Description: Admin dashboard overview page with statistics and quick access.
============================================================================== #}
{% extends "base.html" %}
{% block title %}Dashboard - Formeleon{% endblock %}
{% block content %}
Welcome, {{ user.name }}! | Role: {{ user.role.value }}
| ID | Form | Tenant | Date | Status | Actions |
|---|---|---|---|---|---|
| {{ submission.id[:12] }}... | {{ submission.form_config.name if submission.form_config else 'N/A' }} | {{ submission.tenant.name if submission.tenant else 'N/A' }} | {{ submission.created_at.strftime('%Y-%m-%d %H:%M') if submission.created_at else 'N/A' }} | {% if submission.status.value == 'processed' %} Processed {% elif submission.status.value == 'pending' %} Pending {% elif submission.status.value == 'spam' %} Spam {% else %} {{ submission.status.value }} {% endif %} | View |
No active recent submissions found.
| Name | Tenant | Fields | Status | Created | Actions |
|---|---|---|---|---|---|
| {{ form.name }} | {{ form.tenant.name if form.tenant else 'N/A' }} | {{ form.get_field_definitions()|length }} | {% if form.is_active %} Active {% else %} Inactive {% endif %} | {{ form.created_at.strftime('%Y-%m-%d') if form.created_at else 'N/A' }} | Edit |
No forms have been created yet.