feat: complete KS-2 foundation and regression coverage
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}КС-2 проекта {{ project.name }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container mt-4">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2>КС-2 проекта {{ project.name }}</h2>
|
||||
<a href="/projects/{{ project.id }}/ks2/new" class="btn btn-primary mb-3">Создать новый КС-2</a>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Номер</th>
|
||||
<th>Дата</th>
|
||||
<th>Статус</th>
|
||||
<th>Количество позиций</th>
|
||||
<th>Сумма</th>
|
||||
<th>Действия</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
<tr>
|
||||
<td>{{ row.document.number }}</td>
|
||||
<td>{{ row.document.date.strftime('%d.%m.%Y') }}</td>
|
||||
<td>
|
||||
<span class="badge bg-{{ 'success' if row.document.status == 'issued' else 'secondary' }}">
|
||||
{{ 'Проведён' if row.document.status == 'issued' else 'Черновик' }}
|
||||
</span>
|
||||
</td>
|
||||
<td>{{ row.item_count }}</td>
|
||||
<td>{{ row.amount | money }}</td>
|
||||
<td>
|
||||
<a href="/projects/{{ project.id }}/ks2/{{ row.document.id }}" class="btn btn-sm btn-outline-primary">Просмотр</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user