MDL-33850: Assignment: Change text to "Add submission" before anything has been submitted
AMOS BEGIN CPY [addsubmission,mod_assignment],[addsubmission,mod_assign] AMOS END
This commit is contained in:
committed by
Dan Poltawski
parent
088511ded6
commit
caff10a0b0
@@ -22,6 +22,7 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['addsubmission'] = 'Add submission';
|
||||
$string['allowsubmissions'] = 'Allow the user to continue making submissions to this assignment.';
|
||||
$string['allowsubmissionsshort'] = 'Allow submission changes';
|
||||
$string['allowsubmissionsfromdate'] = 'Allow submissions from';
|
||||
|
||||
@@ -467,8 +467,13 @@ class mod_assign_renderer extends plugin_renderer_base {
|
||||
|
||||
// links
|
||||
if ($status->canedit) {
|
||||
$o .= $this->output->single_button(new moodle_url('/mod/assign/view.php',
|
||||
array('id' => $status->coursemoduleid, 'action' => 'editsubmission')), get_string('editsubmission', 'assign'), 'get');
|
||||
if (!$status->submission) {
|
||||
$o .= $this->output->single_button(new moodle_url('/mod/assign/view.php',
|
||||
array('id' => $status->coursemoduleid, 'action' => 'editsubmission')), get_string('addsubmission', 'assign'), 'get');
|
||||
} else {
|
||||
$o .= $this->output->single_button(new moodle_url('/mod/assign/view.php',
|
||||
array('id' => $status->coursemoduleid, 'action' => 'editsubmission')), get_string('editsubmission', 'assign'), 'get');
|
||||
}
|
||||
}
|
||||
|
||||
if ($status->cansubmit) {
|
||||
|
||||
Reference in New Issue
Block a user