fixed crud list
fixed payments upload -a
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user