Tomasz
|
52fb67d125
|
dodanie przesuwania nakglowak tabelki
|
2024-10-18 12:15:36 +02:00 |
konradm
|
e2eac05ab5
|
select-roles added
|
2024-10-18 10:30:42 +02:00 |
konradm
|
9faf9bdb96
|
linia
|
2024-10-17 14:39:47 +02:00 |
konradm
|
32449be531
|
first name last name
|
2024-10-17 14:24:08 +02:00 |
konradm
|
e0ba11b0e9
|
commit
|
2024-10-17 14:15:45 +02:00 |
konradm
|
a211321c84
|
commit
// Generuj wiersze dla uczniów
studentsData.forEach(student => {
const row = document.createElement('tr');
// Komórka z imieniem i nazwiskiem
const tdName = document.createElement('td');
tdName.textContent = student.name;
row.appendChild(tdName);
// Upewnij się, że 'behavior' jest zdefiniowany
if (!student.behavior) {
student.behavior = {};
}
// Komórki z checkboxami dla kryteriów
categoryColumns.forEach(column => {
const td = document.createElement('td');
const checkbox = document.createElement('input');
checkbox.type = 'checkbox';
checkbox.id = `${column.id}-${student.name.replace(/ /g, '-')}`;
checkbox.onchange = calculateStats;
// Ustawienie stanu checkboxa na podstawie zapisanych danych
if (student.behavior[`day${currentDay}`] && student.behavior[`day${currentDay}`][column.id]) {
checkbox.checked = student.behavior[`day${currentDay}`][column.id];
} else {
checkbox.checked = false;
}
td.appendChild(checkbox);
row.appendChild(td);
});
tbody.appendChild(row);
});
|
2024-10-17 14:14:38 +02:00 |
bartoszh
|
3d62de7867
|
wszystko zrobione
|
2024-10-17 12:47:01 +02:00 |
bartoszh
|
ab33dc5f75
|
commit
|
2024-10-16 15:44:17 +02:00 |
konradm
|
97d6865fdd
|
select class
|
2024-10-16 12:42:08 +02:00 |
baiobelfer
|
5f2d191788
|
clean index
|
2024-10-16 13:54:55 +02:00 |
baiobelfer
|
9c52664e90
|
added Leader
|
2024-10-16 12:47:23 +02:00 |
email
|
5ae5f7c23c
|
classes
|
2024-10-16 12:18:43 +02:00 |
email
|
534ec00990
|
fetch
|
2024-10-16 11:24:57 +02:00 |
email
|
f4bcf024fe
|
style
|
2024-10-16 11:16:38 +02:00 |
email
|
385b8d5c0d
|
i
|
2024-10-16 11:14:17 +02:00 |
email
|
08742cabb7
|
index
|
2024-10-16 11:11:17 +02:00 |
baiobelfer
|
096623a531
|
init
|
2024-10-16 10:40:14 +02:00 |