Files
Flagman/templates/student/student_schedule.html
Dmitriy 60b4e0e839 init
2025-06-23 01:24:34 +03:00

70 lines
3.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends 'base.html' %}
{% load static %}
{% block title %}Расписание {{ student.user.get_full_name }} | Автошкола{% endblock %}
{% block content %}
<div class="container">
<div class="row mb-4">
<div class="col">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{% url 'student:list' %}">Студенты</a></li>
<li class="breadcrumb-item"><a href="{% url 'student:detail' student.pk %}">{{ student.user.get_full_name }}</a></li>
<li class="breadcrumb-item active">Расписание</li>
</ol>
</nav>
</div>
</div>
<div class="row">
<div class="col">
<div class="card shadow">
<div class="card-header bg-success text-white">
<h4 class="mb-0">
<i class="fas fa-calendar-alt me-2"></i>Расписание занятий
</h4>
</div>
<div class="card-body">
{% if enrolled_lessons %}
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>Дата</th>
<th>Время</th>
<th>Курс</th>
<th>Инструктор</th>
<th>Место</th>
<th>Действия</th>
</tr>
</thead>
<tbody>
{% for lesson in enrolled_lessons %}
<tr>
<td>{{ lesson.date|date:"d.m.Y" }}</td>
<td>{{ lesson.start_time|time:"H:i" }} - {{ lesson.end_time|time:"H:i" }}</td>
<td>{{ lesson.course.title }}</td>
<td>{{ lesson.instructor.user.get_full_name }}</td>
<td>{{ lesson.location }}</td>
<td>
<a href="{% url 'schedule:detail' lesson.pk %}" class="btn btn-sm btn-primary">
<i class="fas fa-info-circle"></i>
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<div class="alert alert-info">
<i class="fas fa-info-circle me-2"></i>Студент еще не записан ни на одно занятие.
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}