Skip to content
Snippets Groups Projects
Commit 5e5a1ddc authored by Myriam Delaruelle's avatar Myriam Delaruelle
Browse files

fix student access to assessment modal+title

parent 77cfb3dd
Branches
No related tags found
No related merge requests found
...@@ -28,7 +28,6 @@ if (!has_capability('moodle/course:update', $context = context_course::instance( ...@@ -28,7 +28,6 @@ if (!has_capability('moodle/course:update', $context = context_course::instance(
//Si on a fait une évaluation //Si on a fait une évaluation
var_dump($_POST);
if(isset($_POST) && !empty($_POST)){ if(isset($_POST) && !empty($_POST)){
$courseid = required_param('courseid', PARAM_INT); $courseid = required_param('courseid', PARAM_INT);
$studentid = required_param('studentid', PARAM_INT); $studentid = required_param('studentid', PARAM_INT);
... ...
......
...@@ -47,8 +47,9 @@ ...@@ -47,8 +47,9 @@
<div><small class='review-badge'>Évaluation demandée</small></div> <div><small class='review-badge'>Évaluation demandée</small></div>
{{/review_asked}} {{/review_asked}}
<div class="user-competency-actions"> <div class="user-competency-actions">
<a href="#" data-toggle='modal' data-target='#modal-assess-{{id}}' class="action-icon" title="Evaluer" aria-label="Evaluation"><i class="icon fa fa-file-text-o fa-fw " aria-hidden="true"></i></a> {{#is_not_student}}<a href="#" data-toggle='modal' data-target='#modal-assess-{{id}}' class="action-icon" title="Evaluer" aria-label="Evaluation"><i class="icon fa fa-file-text-o fa-fw " aria-hidden="true"></i></a>
<a href="{{link}}" class="action-icon" title="Détails" aria-label="Evaluation"><i class="icon fa fa-search-plus fa-fw " aria-hidden="true"></i></a> {{/is_not_student}}
<a href="{{link}}" class="action-icon" title="Détails" aria-label="{{#str}} eval, block_competency_iena {{/str}}"><i class="icon fa fa-search-plus fa-fw " aria-hidden="true"></i></a>
</div> </div>
</div> </div>
...@@ -62,7 +63,7 @@ ...@@ -62,7 +63,7 @@
<div class='modal-dialog modal-dialog-scrollable modal-dialog-centered' role='document'> <div class='modal-dialog modal-dialog-scrollable modal-dialog-centered' role='document'>
<div class='modal-content'> <div class='modal-content'>
<div class='modal-header'> <div class='modal-header'>
<h5 class='modal-title'>{{#str}} eval {{/str}}</h5> <h5 class='modal-title'>{{#str}} eval, block_competency_iena {{/str}}</h5>
<button type='button' class='close' data-dismiss='modal' aria-label='Close'><span aria-hidden='true'>&times;</span></button> <button type='button' class='close' data-dismiss='modal' aria-label='Close'><span aria-hidden='true'>&times;</span></button>
</div> </div>
<div class='modal-body'> <div class='modal-body'>
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment