Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 113... Línea 113...
113
            $descriptiontdparams['tabindex'] = '0';
113
            $descriptiontdparams['tabindex'] = '0';
114
            // Set label for the criterion cell.
114
            // Set label for the criterion cell.
115
            $descriptiontdparams['aria-label'] = get_string('criterion', 'gradingform_rubric', s($criterion['description']));
115
            $descriptiontdparams['aria-label'] = get_string('criterion', 'gradingform_rubric', s($criterion['description']));
116
        }
116
        }
Línea -... Línea 117...
-
 
117
 
-
 
118
        // Default value for criterion ids.
-
 
119
        // Edge case: submitting empty grade when remark field is disabled.
-
 
120
        // Reason: we need the criteria keys for the clear_attempt to clear the rubric fillings.
-
 
121
        if ($mode == gradingform_rubric_controller::DISPLAY_EVAL) {
-
 
122
            $criteriontemplate .= html_writer::empty_tag('input', [
-
 
123
                'type' => 'hidden',
-
 
124
                'name' => '{NAME}[criteria][{CRITERION-id}][]',
-
 
125
            ]);
-
 
126
        }
117
 
127
 
118
        // Description cell.
128
        // Description cell.
Línea 119... Línea 129...
119
        $criteriontemplate .= html_writer::tag('td', $description, $descriptiontdparams);
129
        $criteriontemplate .= html_writer::tag('td', $description, $descriptiontdparams);
120
 
130
 
Línea 402... Línea 412...
402
        // Rubric table.
412
        // Rubric table.
403
        $rubrictableparams = [
413
        $rubrictableparams = [
404
            'class' => 'criteria',
414
            'class' => 'criteria',
405
            'id' => '{NAME}-criteria',
415
            'id' => '{NAME}-criteria',
406
        ];
416
        ];
407
        $caption = html_writer::tag('caption', get_string('rubric', 'gradingform_rubric'), ['class' => 'sr-only']);
417
        $caption = html_writer::tag('caption', get_string('rubric', 'gradingform_rubric'), ['class' => 'visually-hidden']);
408
        $rubrictable = html_writer::tag('table', $caption . $criteriastr, $rubrictableparams);
418
        $rubrictable = html_writer::tag('table', $caption . $criteriastr, $rubrictableparams);
409
        $rubrictemplate .= $rubrictable;
419
        $rubrictemplate .= $rubrictable;
410
        if ($mode == gradingform_rubric_controller::DISPLAY_EDIT_FULL) {
420
        if ($mode == gradingform_rubric_controller::DISPLAY_EDIT_FULL) {
411
            $value = get_string('addcriterion', 'gradingform_rubric');
421
            $value = get_string('addcriterion', 'gradingform_rubric');
412
            $criteriainputparams = array(
422
            $criteriainputparams = array(