Source

Test / templates / detail.html

Full commit
{% extends "base.html" %}
{% load admredir %}
{% block content %}

<h1>{{ group.name }}</h1>

{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
<table>
<tr>
    <td><p>Имя:</p></td> <td><p>Дата</p></td><td><p>№ Билета</p></td>
</tr>
{% for student in group.student_set.all %}
    
    <tr>
        <td><a href={{student.id}}/>{{ student.full_name }}</a></td> <td>{{ student.birthday }}</td> <td>{{ student.id_card }}</td> 
    <tr>
    
{% endfor %}
</table>
<p><a href="edit/">Редактировать группу</a><p>

{% endblock %}