Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Verified Commit 9596a2d0 authored by David Beniamine's avatar David Beniamine
Browse files

Show number of started reports in description

parent 14852059
...@@ -67,3 +67,4 @@ $string['external_reports_descr'] = "Acccess to the students' reports, with the ...@@ -67,3 +67,4 @@ $string['external_reports_descr'] = "Acccess to the students' reports, with the
// view as student // view as student
$string['gotoreport'] = "Access to the report"; $string['gotoreport'] = "Access to the report";
$string['error_duplicate_teaming'] = "This mission is already attributed to this class. If you've just removed a similar activity, please wait a few minutes then retry"; $string['error_duplicate_teaming'] = "This mission is already attributed to this class. If you've just removed a similar activity, please wait a few minutes then retry";
$string['reports_started'] = "Started students reports";
...@@ -67,3 +67,4 @@ $string['external_reports_descr'] = "Accéder aux rapports produits par les étu ...@@ -67,3 +67,4 @@ $string['external_reports_descr'] = "Accéder aux rapports produits par les étu
// view as student // view as student
$string['gotoreport'] = "Accéder au rapport"; $string['gotoreport'] = "Accéder au rapport";
$string['error_duplicate_teaming'] = "Cette mission est déjà attribuée à cette classe. Si vous venez de supprimer une activité identique, veuillez patienter quelques minutes et recommencer"; $string['error_duplicate_teaming'] = "Cette mission est déjà attribuée à cette classe. Si vous venez de supprimer une activité identique, veuillez patienter quelques minutes et recommencer";
$string['reports_started'] = "Rapports étudiants commencés";
<section> <section>
<h2>{{title}}</h2> <h2>{{title}}</h2>
<div>{{{ description }}}</div> <div>{{{ description }}}</div>
<div> <strong>{{started_reports}} </strong></div>
<ul> <ul>
<li> <li>
<a href="{{redirecturl}}?token={{token_teaming}}" target="_blank">{{#str}}external_teaming, mod_labnbook{{/str}}</a> <a href="{{redirecturl}}?token={{token_teaming}}" target="_blank">{{#str}}external_teaming, mod_labnbook{{/str}}</a>
......
...@@ -74,6 +74,8 @@ if ($isTeacher) { ...@@ -74,6 +74,8 @@ if ($isTeacher) {
$templateName = 'view_teacher'; $templateName = 'view_teacher';
$templateData['token_teaming'] = $fetcher->getTeamingTokenForRedirect($moduleinstance->labnbook_teamconfigid); $templateData['token_teaming'] = $fetcher->getTeamingTokenForRedirect($moduleinstance->labnbook_teamconfigid);
$templateData['token_reports'] = $fetcher->getReportsTokenForRedirect($moduleinstance->labnbook_teamconfigid); $templateData['token_reports'] = $fetcher->getReportsTokenForRedirect($moduleinstance->labnbook_teamconfigid);
$nStarted = $fetcher->getNumStartedReports($moduleinstance->labnbook_teamconfigid);
$templateData['started_reports'] = $nStarted." ".get_string('reports_started', 'labnbook');
} else { } else {
// student view // student view
$templateName = 'view_student'; $templateName = 'view_student';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment