Files
2026-09-25 20:33:07 +03:00

25 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>Daily Reports — {{ project.name }}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
<main class="container py-4">
<nav class="mb-3"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="/projects/">Проекты</a></li><li class="breadcrumb-item"><a href="/projects/{{ project.id }}">{{ project.name }}</a></li><li class="breadcrumb-item active">Daily Reports</li></ol></nav>
<div class="d-flex justify-content-between align-items-center mb-4"><div><h1>Daily Reports</h1><div class="text-muted">{{ project.name }}</div></div><a href="/projects/{{ project.id }}/daily-reports/new" class="btn btn-primary">Создать отчёт</a></div>
{% if reports %}
<div class="list-group shadow-sm">
{% for report in reports %}
<a href="/projects/{{ project.id }}/daily-reports/{{ report.id }}" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
<span><strong>{{ report.report_date.strftime('%d.%m.%Y') }}</strong> — {{ report.system.name if report.system else '&#1055;&#1088;&#1086;&#1077;&#1082;&#1090;&#1085;&#1099;&#1077; &#1087;&#1086;&#1079;&#1080;&#1094;&#1080;&#1080; &#1073;&#1077;&#1079; &#1089;&#1080;&#1089;&#1090;&#1077;&#1084;&#1099;' }}{% if report.notes %}<br><small class="text-muted">{{ report.notes }}</small>{% endif %}</span>
<span class="badge text-bg-primary rounded-pill">{{ report.items|length }} поз.</span>
</a>
{% endfor %}
</div>
{% else %}<div class="alert alert-info">Отчётов пока нет. Создайте первый Daily Report.</div>{% endif %}
</main>
</body>
</html>