Skip to content
Snippets Groups Projects
Commit 89559870 authored by DELARUELLE Myriam's avatar DELARUELLE Myriam
Browse files

fix options

parent cc2f33e8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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 {
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment