feat: add payment stornation with history-preserving allocations and card layout fixes

This commit is contained in:
Арсентьев Александр
2026-09-27 20:58:19 +03:00
parent 94571f9684
commit ea183854f8
13 changed files with 1365 additions and 34 deletions
+4
View File
@@ -62,10 +62,14 @@
<td class="text-nowrap payments-actions">
<span class="d-inline-flex gap-1 align-items-center">
<a href="/projects/{{ project.id }}/payments/{{ row.payment.id }}" class="btn btn-sm btn-outline-primary">Просмотр</a>
{% if row.payment.status != 'cancelled' %}
<a href="/projects/{{ project.id }}/payments/{{ row.payment.id }}/edit" class="btn btn-sm btn-outline-secondary">Редактировать</a>
<form method="post" action="/projects/{{ project.id }}/payments/{{ row.payment.id }}/delete" class="d-inline m-0">
<button type="submit" class="btn btn-sm btn-outline-danger" onclick="return confirm('Удалить платёж?')">Удалить</button>
</form>
{% else %}
<span class="text-muted small">Действия недоступны</span>
{% endif %}
</span>
</td>
</tr>