init
This commit is contained in:
70
templates/student/student_schedule.html
Normal file
70
templates/student/student_schedule.html
Normal file
@ -0,0 +1,70 @@
|
||||
{% 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 %}
|
Reference in New Issue
Block a user