{% for c in clients %}
{# job_counts is a pre-aggregated {client_id: n} map — reading c.jobs here would lazy-load
every client's job rows, one query per row #}
{% set n_jobs = job_counts.get(c.id, 0) %}
{# data-orig-* are what bulk edit diffs against, so only changed rows are ever submitted #}
{% endfor %}
No clients match your filters.
{% if not clients %}
No clients yet{% if user.role in ['admin', 'tech'] %} — click Add client above to start monitoring backups{% endif %}.
{% endif %}
{% if user.role in ['admin', 'tech'] %}
No changes yet
{% endif %}
{% if user.role in ['admin', 'tech'] %}