feat: add KS-2 UI, reporting period, and table layout fixes
- 004: KS-2 UI (list, create, edit, view, issue) with integration tests - 005: navigation buttons, financial column alignment, button layout - 006: reporting_period_from/to fields with migration, validation, display - 007: fixed table layout with colgroup, quantity2 filter, stable column widths
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="container mt-4">
|
||||
<nav class="mb-3">
|
||||
<a href="/projects/{{ project.id }}" class="btn btn-outline-secondary btn-sm">← К проекту</a>
|
||||
</nav>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2>КС-2 проекта {{ project.name }}</h2>
|
||||
@@ -17,7 +21,7 @@
|
||||
<th>Дата</th>
|
||||
<th>Статус</th>
|
||||
<th>Количество позиций</th>
|
||||
<th>Сумма</th>
|
||||
<th class="text-end text-nowrap">Сумма</th>
|
||||
<th>Действия</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -25,14 +29,14 @@
|
||||
{% for row in rows %}
|
||||
<tr>
|
||||
<td>{{ row.document.number }}</td>
|
||||
<td>{{ row.document.date.strftime('%d.%m.%Y') }}</td>
|
||||
<td>{{ row.document.date.strftime('%d.%m.%Y') }}{% if row.document.reporting_period_from and row.document.reporting_period_to %}<br><small class="text-muted">{{ row.document.reporting_period_from.strftime('%d.%m.%Y') }} — {{ row.document.reporting_period_to.strftime('%d.%m.%Y') }}</small>{% endif %}</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 class="text-end text-nowrap">{{ row.amount | money }}</td>
|
||||
<td>
|
||||
<a href="/projects/{{ project.id }}/ks2/{{ row.document.id }}" class="btn btn-sm btn-outline-primary">Просмотр</a>
|
||||
</td>
|
||||
@@ -44,4 +48,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user