{% extends "app_home/base.html" %}
{% load static %}
{% load i18n %}


{% block navbar_app %}
{% include 'app_home/_sidebar.html' %}
{% endblock %}

{% block content %}

{% for page in paginated %}
<h3>{{ page.0 }}</h3>

<div class="row row-cols-2 row-cols-sm-4 row-cols-md-4 row-cols-lg-6 g-12">
{% for schema in page.1 %}
<div class="col py-2">
    <div class="card h-100 shadow-lg">  
      <div class="card-header">
        <div class="text-center"> <i class="fa {{ schema.icon }} fa-2x"></i></div>
      </div>
      <div class="card-body">
        <div class="text-center">
        <a href="{% url 'app_data:instance_list' schema.classname %}" class="stretched-link"> <i>
        {{ schema.displayname|default:schema.classname }}</i></a>
        </div>
      </div>

      <div class="card-footer">
        <small class="text-body-secondary">
          {% translate 'objects' %}: {{ schema.count }}
        </small>
      </div>      

    </div>
  </div>
{% endfor %}
</div>
<hr>
{% endfor %}



{% endblock %}
