mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-40241 completion: Default roles unable to manually complete course
Thanks to Jon Sharp for authoring the original patch!
This commit is contained in:
parent
ca0e301c7b
commit
37ee40f3e0
6 changed files with 83 additions and 7 deletions
|
@ -672,8 +672,8 @@ foreach ($progress as $user) {
|
|||
)
|
||||
);
|
||||
|
||||
print '<a href="'.$toggleurl->out().'"><img src="'.$OUTPUT->pix_url('i/completion-manual-'.($is_complete ? 'y' : 'n')).
|
||||
'" alt="'.$describe.'" class="icon" title="'.get_string('markcomplete', 'completion').'" /></a></td>';
|
||||
print '<a href="'.$toggleurl->out().'" title="'.get_string('clicktomarkusercomplete', 'report_completion').'"><img src="'.$OUTPUT->pix_url('i/completion-manual-'.($is_complete ? 'y' : 'n')).
|
||||
'" alt="'.$describe.'" class="icon" /></a></td>';
|
||||
} else {
|
||||
print '<img src="'.$OUTPUT->pix_url('i/'.$completionicon).'" alt="'.$describe.'" class="icon" title="'.$fulldescribe.'" /></td>';
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['clicktomarkusercomplete'] = 'Click to mark user complete';
|
||||
$string['completion:view'] = 'View course completion report';
|
||||
$string['completiondate'] = 'Completion date';
|
||||
$string['id'] = 'ID';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue