feat: add payment stornation with history-preserving allocations and card layout fixes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user