{% extends 'base.html' %} {% load static %} {% block title %}Data Sources - Hospital Management{% endblock %} {% block content %}

{{ total_sources|default:"0" }}

Total Sources

{{ active_sources|default:"0" }}

Active Sources

{{ error_sources|default:"0" }}

With Errors

{{ syncing_sources|default:"0" }}

Syncing
Data Sources
{% for source in data_sources %} {% empty %} {% endfor %}
Name Type Status Last Sync Records Created Actions
{% if source.source_type == 'database' %} {% elif source.source_type == 'api' %} {% elif source.source_type == 'file' %} {% elif source.source_type == 'stream' %} {% else %} {% endif %}
{{ source.name }}
{{ source.description|truncatechars:50 }}
{{ source.get_source_type_display }} {% if source.status == 'active' %} Active {% elif source.status == 'inactive' %} Inactive {% elif source.status == 'error' %} Error {% elif source.status == 'syncing' %} Syncing {% endif %} {% if source.last_sync %} {{ source.last_sync|timesince }} ago {% else %} Never {% endif %} {{ source.record_count|default:"0"|floatformat:0 }} {{ source.created_at|date:"M d, Y" }}
No Data Sources Found

Create your first data source to start building analytics.

Add Data Source
{% if is_paginated %} {% endif %}
{% endblock %}