mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'MDL-38254' of git://github.com/rwijaya/moodle
This commit is contained in:
commit
e870c16077
@ -165,6 +165,12 @@ class assignment_base {
|
||||
|
||||
$this->view_dates();
|
||||
|
||||
if ($this->isopen() && $this->assignment->timedue > 0 && $this->assignment->timedue < time()) {
|
||||
echo $OUTPUT->heading(get_string('closedassignment','assignment'), 3);
|
||||
} else if ($this->assignment->timeavailable > time()) {
|
||||
echo $OUTPUT->heading(get_string('futureaassignment','assignment'), 3);
|
||||
}
|
||||
|
||||
$this->view_feedback();
|
||||
|
||||
$this->view_footer();
|
||||
|
@ -127,7 +127,9 @@ class assignment_online extends assignment_base {
|
||||
$button->render();
|
||||
}
|
||||
} else if ($this->isopen()){ //fix for #4206
|
||||
echo '<div style="text-align:center">'.get_string('emptysubmission', 'assignment').'</div>';
|
||||
echo $OUTPUT->heading(get_string('emptysubmission','assignment'), 3);
|
||||
} else if ($this->assignment->timeavailable > time()) {
|
||||
echo $OUTPUT->heading(get_string('futureaassignment','assignment'), 3);
|
||||
}
|
||||
}
|
||||
echo $OUTPUT->box_end();
|
||||
|
@ -85,8 +85,12 @@ class assignment_uploadsingle extends assignment_base {
|
||||
}
|
||||
}
|
||||
|
||||
if (is_enrolled($this->context, $USER, 'mod/assignment:submit') && $this->isopen() && (!$filecount || $this->assignment->resubmit || !$submission->timemarked)) {
|
||||
$this->view_upload_form();
|
||||
if (is_enrolled($this->context, $USER, 'mod/assignment:submit') && (!$filecount || $this->assignment->resubmit || !$submission->timemarked)) {
|
||||
if ($this->isopen()) {
|
||||
$this->view_upload_form();
|
||||
} else if ($this->assignment->timeavailable > time()) {
|
||||
echo $OUTPUT->heading(get_string('futureaassignment','assignment'), 3);
|
||||
}
|
||||
}
|
||||
|
||||
$this->view_footer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user