{% extends 'base.html' %} {% load static %} {% block title %}Report Executions - Hospital Management{% endblock %} {% block content %}
{{ total_executions|default:"0" }}
Total Executions
{{ successful_executions|default:"0" }}
Successful
{{ running_executions|default:"0" }}
Running
{{ failed_executions|default:"0" }}
Failed
Filters
Report Executions
{% if executions %}
{% for execution in executions %} {% endfor %}
Report Name {% if request.GET.sort == 'report__name' %} {% elif request.GET.sort == '-report__name' %} {% else %} {% endif %} Started At {% if request.GET.sort == 'started_at' %} {% elif request.GET.sort == '-started_at' %} {% else %} {% endif %} Duration Status Executed By Records File Size Actions
{{ execution.report.name }} {% if execution.report.description %}
{{ execution.report.description|truncatechars:50 }} {% endif %}
{{ execution.started_at|date:"M d, Y" }}
{{ execution.started_at|time:"H:i:s" }}
{% if execution.duration %}
{{ execution.duration }} {% if execution.status == 'running' %}
Running... {% endif %}
{% else %} N/A {% endif %}
{% if execution.status == 'completed' %} Completed {% elif execution.status == 'running' %} Running {% elif execution.status == 'failed' %} Failed {% elif execution.status == 'cancelled' %} Cancelled {% else %} Pending {% endif %} {% if execution.record_count %} {{ execution.record_count|floatformat:0 }} {% else %} N/A {% endif %} {% if execution.file_size %} {{ execution.file_size|filesizeformat }} {% else %} N/A {% endif %}
{% if execution.status == 'completed' and execution.output_file %} {% endif %} {% if execution.status == 'running' %} {% endif %} {% if execution.status == 'failed' %} {% endif %}
{% if is_paginated %}
Showing {{ page_obj.start_index }} to {{ page_obj.end_index }} of {{ paginator.count }} entries
{% endif %} {% else %}
No Report Executions Found

No report executions match your current filters. Try adjusting your search criteria or execute a new report.

Execute Report
{% endif %}
{% endblock %}