fixed crud list

fixed payments
upload -a
This commit is contained in:
2025-07-23 11:08:25 +03:00
parent a4a91e0053
commit 4603953458
53 changed files with 1512 additions and 1078 deletions
+7 -7
View File
@@ -2,7 +2,7 @@
{% load static %}
{% block filter %}
<div class="filter-form">
{#<div class="filter-form">#}
<form method="GET">
<span style="display: flex; align-items: center; width: 100%;">
<label for="date" style="margin-right: 8px;">Date:</label>
@@ -17,11 +17,11 @@
</option>
{% endfor %}
</select>
<button type="submit">Search</button>
</span>
</form>
</div>
{#</div>#}
{% endblock %}
{% block selection %}
@@ -59,18 +59,18 @@
document.getElementById('createPaymentBtn').addEventListener('click', function() {
const selectedIds = Array.from(document.querySelectorAll('.selected-row'))
.map(row => row.dataset.id);
const dateInput = document.getElementById('date').value;
const companySelect = document.getElementById('company').value;
if (selectedIds.length > 0) {
const params = new URLSearchParams({
containers: selectedIds.join(','),
date: dateInput,
company: companySelect
});
window.location.href = '{% url "payments_create" %}?' + params.toString();
}
});