mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
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:
parent
088511ded6
commit
caff10a0b0
2 changed files with 8 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue