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

fix details popup, now works for non graded items

parent e9611b3c
No related branches found
No related tags found
No related merge requests found
...@@ -1216,4 +1216,13 @@ border-bottom: 1px solid #dee2e6; ...@@ -1216,4 +1216,13 @@ border-bottom: 1px solid #dee2e6;
#iena-group-dropdown optgroup{ #iena-group-dropdown optgroup{
margin-left: 8px; margin-left: 8px;
}
#details-modal{
}
#details-modal .modal-dialog{
margin-top: 13vw;
width: 80vw;
} }
\ No newline at end of file
...@@ -408,8 +408,7 @@ if (isset($_POST['action']) && $_POST['action'] == "details") { ...@@ -408,8 +408,7 @@ if (isset($_POST['action']) && $_POST['action'] == "details") {
} }
$lastgrade=array(); $lastgrade=array();
if(!empty($gradesobject) && !empty($gradesobject->items)){
if(!empty($gradesobject)){
$lastgradeobject=end($gradesobject->items[0]->grades); $lastgradeobject=end($gradesobject->items[0]->grades);
if($lastgradeobject){ if($lastgradeobject){
...@@ -426,7 +425,6 @@ if (isset($_POST['action']) && $_POST['action'] == "details") { ...@@ -426,7 +425,6 @@ if (isset($_POST['action']) && $_POST['action'] == "details") {
} }
/*$lastgrade["passgrade"]=$gradesobject->items[0]->gradepass ? number_format($gradesobject->items[0]->gradepass, 2, ',', '') : null;*/ /*$lastgrade["passgrade"]=$gradesobject->items[0]->gradepass ? number_format($gradesobject->items[0]->gradepass, 2, ',', '') : null;*/
error_log(print_r($data["grades"], true));
} }
//en cas d'achèvement manuel on créé les petites pastilles vertes ou grises (terminé ou à faire) //en cas d'achèvement manuel on créé les petites pastilles vertes ou grises (terminé ou à faire)
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div><b>Etudiant : </b>{{student}}</div> <div><b>Etudiant : </b>{{student}}</div>
<div><b>Activité : </b>{{activityname}}</div> <div><b>Activité : </b>{{activityname}}</div>
<label><b>Modalités d'achèvements :</b></label> <label><b>Progression de l'étudiant dans les modalités d'achèvement :</b></label>
<div id="modal-completion-infos">{{{completioninfos}}} <div id="modal-completion-infos">{{{completioninfos}}}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment