przebudowa systemu

This commit is contained in:
Mateusz Gruszczyński
2025-08-28 10:27:06 +02:00
parent d71d33cfe0
commit e9db945bb4
36 changed files with 2307 additions and 809 deletions

21
static/js/dodaj_wplate.js Normal file
View File

@@ -0,0 +1,21 @@
(function () {
const kwota = document.getElementById('kwota');
const opis = document.getElementById('opis');
const opisCount = document.getElementById('opisCount');
document.querySelectorAll('.btn-kwota').forEach(btn => {
btn.addEventListener('click', () => {
const val = btn.getAttribute('data-amount');
if (val && kwota) {
kwota.value = Number(val).toFixed(2);
kwota.focus();
}
});
});
if (opis && opisCount) {
const updateCount = () => opisCount.textContent = opis.value.length.toString();
opis.addEventListener('input', updateCount);
updateCount();
}
})();