{% load static djadmin_tags %} {% if object_list|is_lazy_fragment %} {% if object_list.is_disabled_warning %} {# LazyFragment instantiated but DJADMIN_LAZY_LOADING_ENABLED=False - show warning #}
{{ object_list.panel_name }}
Lazy loading disabled: Panel "{{ object_list.panel_name }}" (key: {{ object_list.lazy_key }}) was set up for lazy loading but DJADMIN_LAZY_LOADING_ENABLED=False. The code is directly instantiating LazyFragment instead of using table_for()/details_table_for().
{% else %} {# Render lazy loading placeholder with persistent outer wrapper #} {% get_lazy_url object object_list as lazy_url %}
{{ object_list.panel_name }}
Loading...

{{ object_list.placeholder }}

{% endif %} {% else %}
{{ object_list.panel_name }} {% if object_list.obj_set_limit %} ({{ object_list.rows|length }} of {{ object_list.obj_set.count|default:object_list.count }}) {% endif %}
{% if object_list.view_all_url %}View All{% endif %}
{% for col in object_list.cols %}{% endfor %} {% if row.actions or object_list.allow_edit %}{% endif %} {% for row in object_list.rows %} {% for obj_detail in row.obj_details %} {% endfor %} {% empty %} {% endfor %} {% if object_list.add_url %} {% endif %} {% if object_list.view_all_footer_url %} {% endif %}
{{ col.display_name }}{{ _("Actions") }}
{% is_file_field obj_detail.value_out as field_is_file %} {% is_link_field obj_detail.value_out as field_is_link %} {% if field_is_file %} {% if obj_detail.value_out %} {{ obj_detail.value_out }} {% else %} - {% endif %} {% elif field_is_link %} {{ obj_detail.value_out }} {% else %} {{ obj_detail.value_out }} {% endif %} {% if row.actions %} {% for action in row.actions %}{{ action }}{% endfor %} {% endif %} {% if object_list.allow_edit %} {{ _("Edit") }} {% endif %}
No records found.
{{ object_list.add_label|default:_("Add") }}
{{ _("View All") }}
{% endif %}