mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
partially fixed - assignment intro always avaible even setting available date MDL-6131
This commit is contained in:
parent
cc08091300
commit
29889a2a45
2 changed files with 12 additions and 1 deletions
|
@ -84,6 +84,7 @@ $string['noattempts'] = 'No attempts have been made on this assignment';
|
|||
$string['nofilesyet'] = 'No files submitted yet';
|
||||
$string['nofiles'] = 'No files were submitted';
|
||||
$string['notes'] = 'Notes';
|
||||
$string['notavailableyet'] = 'Sorry, this assignment is not yet available.<br />Assignment instructions will be displayed here on the date given bellow.';
|
||||
$string['notesempty'] = 'No entry';
|
||||
$string['notesupdateerror'] = 'Error when updating notes';
|
||||
$string['notgradedyet'] = 'Not graded yet';
|
||||
|
|
|
@ -21,7 +21,17 @@ class assignment_upload extends assignment_base {
|
|||
add_to_log($this->course->id, 'assignment', 'view', "view.php?id={$this->cm->id}", $this->assignment->id, $this->cm->id);
|
||||
|
||||
$this->view_header();
|
||||
|
||||
if ($this->assignment->timeavailable > time()
|
||||
and !has_capability('mod/assignment:grade', $this->context)) {
|
||||
//not open yet === no instructions
|
||||
print_simple_box_start('center', '', '', '', 'generalbox', 'intro');
|
||||
print_string('notavailableyet', 'assignment');
|
||||
print_simple_box_end();
|
||||
} else {
|
||||
$this->view_intro();
|
||||
}
|
||||
|
||||
$this->view_dates();
|
||||
|
||||
if (has_capability('mod/assignment:submit', $this->context)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue