Línea 33... |
Línea 33... |
33 |
M.availability_grade.form.getNode = function(json) {
|
33 |
M.availability_grade.form.getNode = function(json) {
|
34 |
// Increment number used for unique ids.
|
34 |
// Increment number used for unique ids.
|
35 |
this.nodesSoFar++;
|
35 |
this.nodesSoFar++;
|
Línea 36... |
Línea 36... |
36 |
|
36 |
|
37 |
// Create HTML structure.
|
37 |
// Create HTML structure.
|
38 |
var html = '<label class="mb-3"><span class="pr-3">' + M.util.get_string('title', 'availability_grade') + '</span> ' +
|
38 |
var html = '<label class="mb-3"><span class="pe-3">' + M.util.get_string('title', 'availability_grade') + '</span> ' +
|
39 |
'<span class="availability-group">' +
|
39 |
'<span class="availability-group">' +
|
40 |
'<select name="id" class="custom-select"><option value="0">' + M.util.get_string('choosedots', 'moodle') + '</option>';
|
40 |
'<select name="id" class="form-select"><option value="0">' + M.util.get_string('choosedots', 'moodle') + '</option>';
|
41 |
for (var i = 0; i < this.grades.length; i++) {
|
41 |
for (var i = 0; i < this.grades.length; i++) {
|
42 |
var grade = this.grades[i];
|
42 |
var grade = this.grades[i];
|
43 |
// String has already been escaped using format_string.
|
43 |
// String has already been escaped using format_string.
|
44 |
html += '<option value="' + grade.id + '">' + grade.name + '</option>';
|
44 |
html += '<option value="' + grade.id + '">' + grade.name + '</option>';
|