{% extends 'base.html' %}

{% load static %}
{% load stud_tags %}

{% block title %} 
  {{ block.super }} {{title}}
{% endblock title %} 

{% block content %}

    <h2 class="text-center">{{t_title}}</h2>
    <div class="table-responsive">
      <table class="table table-striped table-sm table-hover table-bordered">
        <thead class="text-center table-secondary">
          <tr>
            <th scope="col" class="text-end">№</th>
            <th scope="col">Наименование</th>
            <th scope="col">Дата выпуска</th>
            <th scope="col">Обучающиеся</th>
          </tr>
        </thead>
        <tbody class="text-center">
          {% for item in objects %}
          <tr class="align-middle">
            <td class="text-end align-item-bottom">{{ forloop.counter }}.</td>
            <td><a href=" {{item.get_absolute_url}} ">{{ item.title}}</td>
            <td>{{item.graduation_date}}</td>
            <td>{% show_students_by_group item.id %} </td>
          </tr>
          {% endfor %}
        </tbody>
      </table>
    </div>

{% endblock content %}


