132 lines
6.3 KiB
HTML
132 lines
6.3 KiB
HTML
{% extends "layouts/base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "Enhanced Survey Reports" %} - PX360{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container-fluid px-4">
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
<div>
|
|
<h1 class="h3 mb-0">{% trans "Enhanced Survey Reports" %}</h1>
|
|
<p class="text-muted mb-0">{% trans "Separate detailed reports for each survey type with question-level analysis" %}</p>
|
|
</div>
|
|
<div>
|
|
<a href="{% url 'surveys:generate_enhanced_report' %}" class="btn btn-primary">
|
|
<i class="bi bi-plus-circle me-2"></i>{% trans "Generate New Reports" %}
|
|
</a>
|
|
<a href="{% url 'surveys:analytics_reports' %}" class="btn btn-outline-secondary">
|
|
<i class="bi bi-arrow-left me-2"></i>{% trans "Back to Standard Reports" %}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Info Card -->
|
|
<div class="alert alert-info mb-4">
|
|
<h5><i class="bi bi-info-circle me-2"></i>{% trans "What are Enhanced Reports?" %}</h5>
|
|
<p class="mb-0">
|
|
{% trans "Enhanced reports generate a separate HTML file for each survey template with detailed question-level analysis.
|
|
Each report includes individual charts per question, performance insights, and recommendations.
|
|
A master index page links all reports together for easy navigation." %}
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Report Sets -->
|
|
<div class="card border-0 shadow-sm">
|
|
<div class="card-header bg-white border-0">
|
|
<h5 class="mb-0">{% trans "Available Report Sets" %}</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
{% if report_sets %}
|
|
<div class="table-responsive">
|
|
<table class="table table-hover align-middle">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans "Generated" %}</th>
|
|
<th>{% trans "Reports Count" %}</th>
|
|
<th>{% trans "Total Size" %}</th>
|
|
<th>{% trans "Last Modified" %}</th>
|
|
<th class="text-end">{% trans "Actions" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for report_set in report_sets %}
|
|
<tr>
|
|
<td>
|
|
<i class="bi bi-folder me-2 text-primary"></i>
|
|
<strong>{{ report_set.created|date:"Y-m-d H:i" }}</strong>
|
|
</td>
|
|
<td>
|
|
<span class="badge bg-info">{{ report_set.report_count }} {% trans "reports" %}</span>
|
|
</td>
|
|
<td>{{ report_set.size|filesizeformat }}</td>
|
|
<td>
|
|
<small class="text-muted">{{ report_set.modified|date:"Y-m-d H:i" }}</small>
|
|
</td>
|
|
<td class="text-end">
|
|
<div class="btn-group">
|
|
<a href="{% url 'surveys:enhanced_report_view' report_set.dir_name %}"
|
|
class="btn btn-sm btn-primary"
|
|
target="_blank">
|
|
<i class="bi bi-eye me-1"></i>{% trans "View Index" %}
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% else %}
|
|
<div class="text-center py-5">
|
|
<i class="bi bi-folder-x text-muted fs-1 mb-3"></i>
|
|
<h5 class="text-muted">{% trans "No enhanced reports found" %}</h5>
|
|
<p class="text-muted mb-4">
|
|
{% trans "Generate your first set of enhanced survey reports with detailed question analysis." %}
|
|
</p>
|
|
<a href="{% url 'surveys:generate_enhanced_report' %}" class="btn btn-primary">
|
|
<i class="bi bi-plus-circle me-2"></i>{% trans "Generate Reports" %}
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Features -->
|
|
<div class="row g-4 mt-4">
|
|
<div class="col-md-4">
|
|
<div class="card border-0 shadow-sm h-100">
|
|
<div class="card-body text-center">
|
|
<i class="bi bi-file-earmark-bar-graph text-primary fs-1 mb-3"></i>
|
|
<h5>{% trans "Separate Reports" %}</h5>
|
|
<p class="text-muted mb-0">
|
|
{% trans "Each survey template gets its own dedicated HTML report file with comprehensive analysis." %}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="card border-0 shadow-sm h-100">
|
|
<div class="card-body text-center">
|
|
<i class="bi bi-graph-up text-success fs-1 mb-3"></i>
|
|
<h5>{% trans "Question-Level Analysis" %}</h5>
|
|
<p class="text-muted mb-0">
|
|
{% trans "Detailed charts and metrics for each individual question with score distributions and trends." %}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="card border-0 shadow-sm h-100">
|
|
<div class="card-body text-center">
|
|
<i class="bi bi-lightbulb text-warning fs-1 mb-3"></i>
|
|
<h5>{% trans "Smart Insights" %}</h5>
|
|
<p class="text-muted mb-0">
|
|
{% trans "Automatic insights and recommendations based on performance metrics and trends." %}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|