Загрузка данных


<!doctype html>
<html lang="ru">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{% block title %}Центр стажировки{% endblock %}</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css" rel="stylesheet">
  <style>
    body { background:#f5f7fa; }
    .navbar-brand { font-weight: 600; }
    .stat-card { border:none; border-radius:14px; box-shadow:0 2px 10px rgba(0,0,0,.05); }
    .calendar-table { table-layout: fixed; }
    .calendar-table td { height: 88px; vertical-align: top; padding: 6px !important; position: relative; }
    .calendar-table td.empty { background:#fafafa; }
    .day-number { font-weight:600; font-size:.85rem; color:#4a5568; }
    .calendar-cell { cursor: pointer; transition: background .15s; }
    .calendar-cell:hover { background:#eef6ff; }
    .calendar-cell.today { box-shadow: inset 0 0 0 2px #0d6efd; }
    .status-badge { font-size:.68rem; }
    .note { font-size:.7rem; color:#6b7280; margin-top:4px; word-break: break-word; }
  </style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
  <div class="container">
    <a class="navbar-brand" href="{{ url_for('main.dashboard') }}">
      <i class="bi bi-mortarboard-fill"></i> Центр стажировки
    </a>
    {% if current_user.is_authenticated %}
      <div class="d-flex align-items-center text-white gap-3 flex-wrap">
        <a class="text-white text-decoration-none" href="{{ url_for('interns.list_interns') }}">
          <i class="bi bi-people"></i> Стажёры
        </a>
        <a class="text-white text-decoration-none" href="{{ url_for('reports.index') }}">
          <i class="bi bi-graph-up"></i> Отчёты
        </a>
        <span class="vr d-none d-lg-inline"></span>
        <span>
          <i class="bi bi-person-circle"></i>
          {{ current_user.full_name }}
          <small class="opacity-75">({{ 'Администратор' if current_user.is_admin else 'Наставник' }})</small>
        </span>
        <a class="btn btn-outline-light btn-sm" href="{{ url_for('auth.logout') }}">Выйти</a>
      </div>
    {% endif %}
  </div>
</nav>

<div class="container py-4">
  {% with messages = get_flashed_messages(with_categories=true) %}
    {% for cat, msg in messages %}
      <div class="alert alert-{{ cat }} alert-dismissible fade show">
        {{ msg }}
        <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
      </div>
    {% endfor %}
  {% endwith %}
  {% block content %}{% endblock %}
</div>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
{% block scripts %}{% endblock %}
</body>
</html>