{% extends 'layouts/base.html' %} {% load static %} {% load hospital_filters %} {% block title %}{{ report.name }} - Report Details - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ report.name }}

{{ report.get_data_source_display }} {% if report.is_shared %} Shared {% endif %} {% if report.last_run_at %} Last run: {{ report.last_run_at|date:"M d, Y H:i" }} {% endif %}
Back CSV Excel PDF {% if report.created_by == request.user %} Delete {% endif %}
{% if report.description %}

{{ report.description }}

{% endif %}
{{ summary.total_count|default:data.rows|length|default:0 }}
Total Records
{{ report.created_at|date:"M d, Y" }}
Created
{{ data.columns|length|default:0 }}
Columns
{{ report.created_by.get_full_name|default:report.created_by.username }}
Created By
{% if data.rows and data.rows|length > 0 %}
{% for column in data.columns %} {% endfor %} {% for row in data.rows %} {% for column_key in data.column_keys %} {% endfor %} {% endfor %}
{{ column }}
{{ row|lookup:column_key|default:"-" }}
{% if data.rows|length > 100 %}
Showing 100 of {{ data.rows|length }} records
{% endif %} {% else %}

No data found

The report filters may be too restrictive or no data exists for the selected criteria.

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}