diff --git a/static/index.js b/static/index.js index ff05fc0..c7a7615 100644 --- a/static/index.js +++ b/static/index.js @@ -70,10 +70,14 @@ function load_classes(id) { } function make_teacher_table(id, teacher) { + document.getElementById("table-title").innerText = + `Orario del docente ${teacher}`; make_table(`/api/professore?id=${id}&professore=${teacher}`); } function make_student_table(id, student_class) { + document.getElementById("table-title").innerText = + `Orario della classe ${student_class}`; make_table(`/api/classe?id=${id}&classe=${student_class}`); } diff --git a/templates/index.html b/templates/index.html index 720c1b7..1ce7e0f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -32,6 +32,10 @@ content: counter(column) " ora: "; } } + + #table-title { + text-align: center; + } @@ -97,6 +101,7 @@