$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';
add_to_log($this->course->id, 'assignment', 'view', "view.php?id={$this->cm->id}", $this->assignment->id, $this->cm->id);
$this->view_header();
- $this->view_intro();
+
+ 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)) {