chore: baseline before agreements
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ document_title }} — {{ project.name }}</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<main class="container my-4">
|
||||
<nav aria-label="Навигация" 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"><a href="/boq/{{ project.id }}">Ведомости</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Ведомость</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<div class="d-flex justify-content-between align-items-start mb-4">
|
||||
<div>
|
||||
<h1>{{ document_title }}</h1>
|
||||
<p class="text-muted mb-0">{{ project.name }}{% if document.source_file %} · {{ document.source_file }}{% endif %}</p>
|
||||
</div>
|
||||
<a class="btn btn-outline-secondary" href="/projects/{{ project.id }}">К проекту</a>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-sm align-middle">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>№</th><th>Наименование</th><th>Модель / артикул</th><th>Производитель</th>
|
||||
<th>Ед. изм.</th><th class="text-end">Кол-во</th><th class="text-end">Цена за ед.</th><th class="text-end">Сумма</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for system_node in systems %}
|
||||
<tr class="table-primary">
|
||||
<th colspan="7">Система: {{ system_node.system.name }}</th>
|
||||
<th class="text-end">{{ system_node.total|money(project.currency) }}</th>
|
||||
</tr>
|
||||
{% for section_node in system_node.sections %}
|
||||
<tr class="table-success">
|
||||
<th colspan="7">Раздел: {{ section_node.section.name }}</th>
|
||||
<th class="text-end">{{ section_node.total|money(project.currency) }}</th>
|
||||
</tr>
|
||||
{% for item in section_node["items"] %}
|
||||
<tr>
|
||||
<td>{{ item.source_number or '' }}</td>
|
||||
<td>{{ item.name }}</td>
|
||||
<td>{{ item.model or '' }}</td>
|
||||
<td>{{ item.manufacturer or '' }}</td>
|
||||
<td>{{ item.unit or '' }}</td>
|
||||
<td class="text-end">{{ item.quantity if item.quantity is not none else '' }}</td>
|
||||
<td class="text-end">{{ item.unit_price|money(project.currency) if item.unit_price is not none else '' }}</td>
|
||||
<td class="text-end">{{ item.amount|money(project.currency) if item.amount is not none else '' }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<tr><td colspan="8" class="text-center text-muted py-4">В документе нет рабочих позиций.</td></tr>
|
||||
{% endfor %}
|
||||
<tr class="table-dark fw-bold">
|
||||
<td colspan="7">Итого по ведомости</td>
|
||||
<td class="text-end">{{ total|money(project.currency) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% if unassigned_items %}
|
||||
<div class="alert alert-warning mt-3">В документе есть {{ unassigned_items|length }} позиций без полной привязки к системе и разделу.</div>
|
||||
{% endif %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user