* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace tool_langimport\output;
-defined('MOODLE_INTERNAL') || die();
+use core_collator;
use moodle_url;
use renderable;
use renderer_base;
if (!empty($this->availablelanguages)) {
$data->toinstalloptions = [];
+
+ core_collator::asort($this->availablelanguages);
foreach ($this->availablelanguages as $code => $language) {
$option = new stdClass();
$option->value = $code;
// The call to get_all_content_items() should return the same items as for the course,
// given the user in an editing teacher and can add manual lti instances.
- $this->assertEquals(array_column($allcontentitems, 'name'), array_column($coursecontentitems, 'name'));
+ $this->assertContains('lti', array_column($coursecontentitems, 'name'));
+ $this->assertContains('lti', array_column($allcontentitems, 'name'));
// Now removing the cap 'mod/lti:addinstance'. This will restrict those items returned by the course-specific method.
$teacherrole = $DB->get_record('role', array('shortname' => 'editingteacher'));
| Ratings > Grade to pass | 90 |
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on
- And I click on "Edit forum Rating grade for Test Forum 1" "link"
+ And I click on "Edit forum Test Forum 1 rating" "link"
And I expand all fieldsets
Then the field "Grade to pass" matches value "90"
And I set the field "Grade to pass" to "80"
$string['divertallemails'] = 'Email diverting';
$string['divertallemailsdetail'] = 'Used as a safeguard in development environments when testing emails and should not be used in production.';
$string['divertallemailsexcept'] = 'Email diversion exceptions';
-$string['divertallemailsexcept_desc'] = 'A list of email exception rules separated by either commas or new lines. Each rule is interpreted as a regular expression, eg<pre>simone@acme.com
+$string['divertallemailsexcept_desc'] = 'A list of email exception rules separated by either commas or new lines. Each rule is interpreted as a regular expression e.g. <pre>simone@acme.com
.*@acme.com
fred(\\+.*)?@acme.com
</pre>';
$string['backpacksettings'] = 'Backpack settings';
$string['backpackapiurl'] = 'Backpack API URL';
$string['backpackweburl'] = 'Backpack URL';
-$string['backpackprovider'] = 'Backpack Provider';
+$string['backpackprovider'] = 'Backpack provider';
$string['badges'] = 'Badges';
$string['badgedetails'] = 'Badge details';
$string['badgeimage'] = 'Image';
$string['coursesiamteaching'] = 'Courses I am teaching';
$string['coursescales'] = 'Course scales';
$string['coursesettings'] = 'Course settings';
-$string['coursesettingsexplanation'] = 'Course settings determine how the gradebook appears for all participants in the course.';
+$string['coursesettingsexplanation'] = 'Course grade settings determine how the gradebook appears for all participants in the course.';
$string['coursetotal'] = 'Course total';
$string['createcategory'] = 'Create category';
$string['createcategoryerror'] = 'Could not create a new category';
$string['accountidnumber'] = 'ID number';
$string['accountidnumber_help'] = 'The ID number is only used when matching the account against external systems and is not displayed anywhere on the site. If the account has an official code name it may be entered, otherwise the field can be left blank.';
$string['accountname'] = 'Account name';
-$string['accountname_help'] = 'How this account will be identified for teachers or managers who set up payments (for example in the course enrolment plugin)';
+$string['accountname_help'] = 'How this account will be identified for teachers or managers who set up payments (for example in the course enrolment plugin).';
$string['accountnotavailable'] = 'Not available';
-$string['paymentaccountsexplained'] = 'Create one or multiple payment accounts for this site. Each account includes configuration for available payment gateways. The person who configures payments on the site (for example, payment for the course enrolment) will be able to chose from the available accounts.';
+$string['paymentaccountsexplained'] = 'Create one or multiple payment accounts for this site. Each account includes configuration for available payment gateways. The person who configures payments on the site (for example, payment for the course enrolment) will be able to choose from the available accounts.';
$string['createaccount'] = 'Create payment account';
$string['deleteorarchive'] = 'Delete or archive';
$string['eventaccountcreated'] = 'Payment account created';
this.bodyJS = null;
this.footerJS = null;
this.modalCount = modalCounter++;
+ this.attachmentPoint = document.createElement('div');
+ document.body.append(this.attachmentPoint);
if (!this.root.is(SELECTORS.CONTAINER)) {
Notification.exception({message: 'Element is not a modal container'});
* @returns {jQuery}
*/
Modal.prototype.getAttachmentPoint = function() {
- return $(Fullscreen.getElement() || document.body);
+ return $(Fullscreen.getElement() || this.attachmentPoint);
};
/**
this.hide();
this.root.remove();
this.root.trigger(ModalEvents.destroyed, this);
+ this.attachmentPoint.remove();
};
/**
}
if (e.keyCode == KeyCodes.escape) {
- this.hide();
+ if (this.removeOnClose) {
+ this.destroy();
+ } else {
+ this.hide();
+ }
}
}.bind(this));
var ModalBackdrop = function(root) {
this.root = $(root);
this.isAttached = false;
+ this.attachmentPoint = document.createElement('div');
+ document.body.append(this.attachmentPoint);
if (!this.root.is(SELECTORS.ROOT)) {
Notification.exception({message: 'Element is not a modal backdrop'});
* @returns {jQuery}
*/
ModalBackdrop.prototype.getAttachmentPoint = function() {
- return $(Fullscreen.getElement() || document.body);
+ return $(Fullscreen.getElement() || this.attachmentPoint);
};
/**
*/
ModalBackdrop.prototype.destroy = function() {
this.root.remove();
+ this.attachmentPoint.remove();
};
return ModalBackdrop;
}
if ($user->skype && !isset($hiddenfields['skypeid'])) {
- $imurl = 'skype:'.urlencode($user->skype).'?call';
- $iconurl = new moodle_url('http://mystatus.skype.com/smallicon/'.urlencode($user->skype));
- if (is_https()) {
- // Bad luck, skype devs are lazy to set up SSL on their servers - see MDL-37233.
- $statusicon = '';
- } else {
- $statusicon = html_writer::empty_tag('img',
- array('src' => $iconurl, 'class' => 'icon icon-post', 'alt' => get_string('status')));
- }
-
+ $imurl = 'skype:' . urlencode($user->skype) . '?call';
$node = new core_user\output\myprofile\node('contact', 'skypeid', get_string('skypeid'), null, null,
- html_writer::link($imurl, s($user->skype) . $statusicon));
+ html_writer::link($imurl, s($user->skype)));
$tree->add_node($node);
}
if ($user->yahoo && !isset($hiddenfields['yahooid'])) {
- $imurl = new moodle_url('https://edit.yahoo.com/config/send_webmesg', array('.target' => $user->yahoo, '.src' => 'pg'));
- $iconurl = new moodle_url('http://opi.yahoo.com/online', array('u' => $user->yahoo, 'm' => 'g', 't' => '0'));
- $statusicon = html_writer::tag('img', '',
- array('src' => $iconurl, 'class' => 'iconsmall icon-post', 'alt' => get_string('status')));
-
$node = new core_user\output\myprofile\node('contact', 'yahooid', get_string('yahooid'), null, null,
- html_writer::link($imurl, s($user->yahoo) . $statusicon));
+ s($user->yahoo));
$tree->add_node($node);
}
if ($user->aim && !isset($hiddenfields['aimid'])) {
- $imurl = 'aim:goim?screenname='.urlencode($user->aim);
$node = new core_user\output\myprofile\node('contact', 'aimid', get_string('aimid'), null, null,
- html_writer::link($imurl, s($user->aim)));
+ s($user->aim));
$tree->add_node($node);
}
if ($user->msn && !isset($hiddenfields['msnid'])) {
$string['assign:releasegrades'] = 'Release grades';
$string['assign:revealidentities'] = 'Reveal student identities';
$string['assign:reviewgrades'] = 'Review grades';
-$string['assign:viewblinddetails'] = 'View student identities when blind marking is enabled';
+$string['assign:viewblinddetails'] = 'View student identities when anonymous submissions are enabled';
$string['assign:viewgrades'] = 'View grades';
$string['assign:showhiddengrader'] = 'See the identity of a hidden grader';
$string['assign:submit'] = 'Submit assignment';
$string['batchoperationreverttodraft'] = 'revert submissions to draft';
$string['batchsetallocatedmarker'] = 'Set allocated marker for {$a} selected user(s).';
$string['batchsetmarkingworkflowstateforusers'] = 'Set marking workflow state for {$a} selected user(s).';
-$string['blindmarking'] = 'Blind marking';
-$string['blindmarkingenabledwarning'] = 'Blind marking is enabled for this activity.';
-$string['blindmarking_help'] = 'Blind marking hides the identity of students from markers. Blind marking settings will be locked once a submission or grade has been made in relation to this assignment.';
+$string['blindmarking'] = 'Anonymous submissions';
+$string['blindmarkingenabledwarning'] = 'Anonymous submissions are enabled for this activity.';
+$string['blindmarking_help'] = 'Anonymous submissions hide the identity of students from markers. Anonymous submission settings will be locked once a submission or grade has been made in relation to this assignment.';
$string['calendardue'] = '{$a} is due';
$string['calendargradingdue'] = '{$a} is due to be graded';
$string['changeuser'] = 'Change user';
$string['preventsubmissionsshort'] = 'Prevent submission changes';
$string['previous'] = 'Previous';
$string['privacy:attemptpath'] = 'attempt {$a}';
-$string['privacy:blindmarkingidentifier'] = 'The identifier used for blind marking';
+$string['privacy:blindmarkingidentifier'] = 'The identifier used for anonymous submissions';
$string['privacy:gradepath'] = 'grade';
$string['privacy:metadata:assigndownloadasfolders'] = 'A user preference for whether multiple file submissions should be downloaded into folders';
$string['privacy:metadata:assignfeedbackpluginsummary'] = 'Feedback data for the assignment.';
$string['privacy:metadata:assignsubmissiondetail'] = 'Stores user submission information';
$string['privacy:metadata:assignsubmissionpluginsummary'] = 'Submission data for the assignment.';
$string['privacy:metadata:assignuserflags'] = 'Stores user meta data such as extension dates';
-$string['privacy:metadata:assignusermapping'] = 'The mapping for blind marking';
+$string['privacy:metadata:assignusermapping'] = 'The mapping for anonymous submissions';
$string['privacy:metadata:assignworkflowfilter'] = 'Filter by the different workflow stages.';
$string['privacy:metadata:grade'] = 'The numerical grade for this assignment submission. Can be determined by scales/advancedgradingforms etc but will always be converted back to a floating point number.';
$string['privacy:metadata:grader'] = 'The user ID of the person grading.';
$string['relativedatessubmissionduedatebefore'] = '{$a->datediffstr} before course start';
$string['removeallgroupoverrides'] = 'Delete all group overrides';
$string['removealluseroverrides'] = 'Delete all user overrides';
-$string['reopenuntilpassincompatiblewithblindmarking'] = 'Reopen until pass option is incompatible with blind marking, because the grades are not released to the gradebook until the student identities are revealed.';
+$string['reopenuntilpassincompatiblewithblindmarking'] = 'Reopen until pass option is incompatible with anonymous submissions, because the grades are not released to the gradebook until the student identities are revealed.';
$string['requiresubmissionstatement'] = 'Require that students accept the submission statement';
$string['requiresubmissionstatement_help'] = 'Require that students accept the submission statement for all submissions to this assignment.';
$string['requireallteammemberssubmit'] = 'Require all group members submit';
| Online text | 1 |
| File submissions | 0 |
| Use marking workflow | Yes |
- | Blind marking | Yes |
+ | Anonymous submissions | Yes |
And I log out
# Add a submission.
And I log in as "student1"
$string['grading'] = 'Grading';
$string['gradingstatus'] = 'Grade status:';
$string['gradeforwholeforumhidden'] = 'Grade for forum hidden';
-$string['gradeitemnameforwholeforum'] = 'Whole forum grade for {$a->name}';
-$string['gradeitemnameforrating'] = 'Rating grade for {$a->name}';
+$string['gradeitemnameforwholeforum'] = '{$a->name} whole forum';
+$string['gradeitemnameforrating'] = '{$a->name} rating';
$string['grades:gradesavedfor'] = 'Grade saved for {$a->fullname}';
$string['grades:gradesavefailed'] = 'Unable to save grade for {$a->fullname}: {$a->error}';
$string['notgraded'] = 'Not graded';
And I turn editing mode on
# There shouldn't be any Ratings grade item.
- Then I should see "Whole forum grade"
- But I should not see "Rating grade"
+ Then I should see "Test Forum 1 whole forum"
+ But I should not see "Test Forum 1 rating"
# The values saved should be reflected here.
- Given I click on "Edit forum Whole forum grade for Test Forum 1" "link"
+ Given I click on "Edit forum Test Forum 1 whole forum" "link"
When I expand all fieldsets
Then the field "Maximum grade" matches value "10"
Then the field "Grade to pass" matches value "4"
And I turn editing mode on
# There shouldn't be any Whole forum grade gradeitem.
- Then I should see "Rating grade"
- But I should not see "Whole forum grade"
+ Then I should see "Test Forum 1 rating"
+ But I should not see "Test Forum 1 whole forum"
# The values saved should be reflected here.
- Given I click on "Edit forum Rating grade for Test Forum 1" "link"
+ Given I click on "Edit forum Test Forum 1 rating" "link"
When I expand all fieldsets
Then the field "Maximum grade" matches value "10"
Then the field "Grade to pass" matches value "4"
And I turn editing mode on
# There shouldn't be any Whole forum grade gradeitem.
- Then I should see "Rating grade"
- And I should see "Whole forum grade"
+ Then I should see "Test Forum 1 rating"
+ And I should see "Test Forum 1 whole forum"
# The values saved should be reflected here.
- Given I click on "Edit forum Rating grade for Test Forum 1" "link"
+ Given I click on "Edit forum Test Forum 1 rating" "link"
When I expand all fieldsets
Then the field "Maximum grade" matches value "100"
Then the field "Grade to pass" matches value "40"
And I should see "Peers" in the "Parent category" "fieldset"
And I press "cancel"
- Given I click on "Edit forum Whole forum grade for Test Forum 1" "link"
+ Given I click on "Edit forum Test Forum 1 whole forum" "link"
When I expand all fieldsets
Then the field "Maximum grade" matches value "10"
Then the field "Grade to pass" matches value "4"
$string['commentorgrade'] = 'Make comment or override grade';
$string['comments'] = 'Comments';
$string['completedon'] = 'Completed on';
-$string['completionminattempts'] = 'Student must send attempts:';
+$string['completionminattempts'] = 'Minimum number of attempts:';
$string['completionminattemptsgroup'] = 'Require attempts';
$string['completionminattemptserror'] = 'Minimum number of attempts must be lower or equal to attempts allowed.';
$string['completionpass'] = 'Require passing grade';
$string['paymentnotcleared'] = 'payment not cleared by PayPal.';
$string['pluginname'] = 'PayPal';
$string['pluginname_desc'] = 'The PayPal plugin allows you to receive payments via PayPal.';
-$string['privacy:metadata'] = 'The Analytic models plugin does not store any personal data.';
+$string['privacy:metadata'] = 'The PayPal plugin does not store any personal data.';
$string['repeatedorder'] = 'This order has already been processed earlier.';
$string['sandbox'] = 'Sandbox';
$string['secret'] = 'Secret';
-$string['secret_help'] = 'The secret thatPayPal generated for your application.';
+$string['secret_help'] = 'The secret that PayPal generated for your application.';