diff --git a/styles.css b/styles.css index 99b8a09b19bf9ae10cf0af3455a226523acbe755..3bd76f8aabe65aa3f5e1bc94a9e74d69a36c863b 100644 --- a/styles.css +++ b/styles.css @@ -995,6 +995,8 @@ th.group-column-iena{ font-size: medium; font-size: large; font-weight: 900; + position: relative; + top: 2px; } .iena-icon-distance::after{ @@ -1004,6 +1006,8 @@ th.group-column-iena{ font-size: medium; font-size: large; font-weight: 950; + position: relative; + top: 2px; } @@ -1268,6 +1272,11 @@ border-bottom: 1px solid #dee2e6; margin:0!important; } + +#drawermenu > ul.navbar{ + padding:0; +} + #iena-search-tag, #iena-filters-tag{ display: none; vertical-align: middle; @@ -1329,4 +1338,5 @@ border-bottom: 1px solid #dee2e6; } @keyframes l13{ 100%{transform: rotate(1turn)} + } \ No newline at end of file diff --git a/suivi_unit.php b/suivi_unit.php index 74c8d29939f59824f07d8da5a7d7deee2da5455c..6c4b1b8e715590e02737ce7df6f656751423e587 100644 --- a/suivi_unit.php +++ b/suivi_unit.php @@ -479,6 +479,7 @@ $renderer = $PAGE->get_renderer('format_iena'); //Si on cherche les détails d'une activité if (isset($_POST['action']) && $_POST['action'] == "details") { + error_log("on passe par le détail"); require_once($CFG->libdir . '/gradelib.php'); $data = []; $idetu=$_POST['idetudiant']; @@ -535,18 +536,16 @@ if (isset($_POST['action']) && $_POST['action'] == "details") { echo json_encode($data); } else if(isset($_POST['action']) && $_POST['action'] == 'search_student' && isset($_POST['search_input'])){ - $data=[]; $sanitized=filter_var($_POST['search_input'], FILTER_SANITIZE_STRING); $modules = get_activities($completion, $activesectionid); $data["modules"]=$modules; $data["students"]=get_progress_student($sanitized, $completion, $modules); - //$data = set_links($data, $modules, $listoptions); + $data = set_links($data, $modules, $listoptions); echo json_encode($data); } // If a post is sent trought the page --> Si on change les filtres (de groupes), le template est appelé en JS else if (isset($_POST['action']) && !empty($_POST['action'])) { - $groups = groups_get_all_groups($COURSE->id, 0, 0, 'g.*', true); $data = []; $modules = get_activities($completion, $activesectionid); @@ -556,6 +555,7 @@ else if (isset($_POST['action']) && !empty($_POST['action'])) { $data["groups"]=$activegroupsids; $data["courseid"]=$courseid; + $data = set_links($data, $modules, $listoptions); //$data = set_links($data, $modules, $listoptions); echo json_encode($data); @@ -598,6 +598,7 @@ else { } + }