25 lines
1.6 KiB
HTML
25 lines
1.6 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.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>
|