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
        $mform->addElement('duration', 'graceperiod', get_string('graceperiod', 'quiz'),
113
        $mform->addElement('duration', 'graceperiod', get_string('graceperiod', 'quiz'),
114
                ['optional' => true]);
114
                ['optional' => true]);
115
        $mform->addHelpButton('graceperiod', 'graceperiod', 'quiz');
115
        $mform->addHelpButton('graceperiod', 'graceperiod', 'quiz');
116
        $mform->hideIf('graceperiod', 'overduehandling', 'neq', 'graceperiod');
116
        $mform->hideIf('graceperiod', 'overduehandling', 'neq', 'graceperiod');
Línea -... Línea 117...
-
 
117
 
-
 
118
        // Pre-create attempts.
-
 
119
        // This is only shown if "Pre-create period" as been set at site level, and the quiz open time is enabled.
-
 
120
        $precreateperiod = get_config('quiz', 'precreateperiod');
-
 
121
        if (!empty($precreateperiod)) {
-
 
122
            $yesoption = get_string('precreateyes', 'quiz', $precreateperiod / HOURSECS);
-
 
123
            $precreateoptions = [
-
 
124
                1 => $yesoption,
-
 
125
                0 => get_string('no'),
-
 
126
            ];
-
 
127
            $mform->addElement(
-
 
128
                'select',
-
 
129
                'precreateattempts',
-
 
130
                get_string('precreateattempts', 'quiz'),
-
 
131
                $precreateoptions
-
 
132
            );
-
 
133
            $mform->hideIf('precreateattempts', 'timeopen[enabled]');
-
 
134
            $mform->addHelpButton('precreateattempts', 'precreateattempts', 'quiz');
-
 
135
        }
117
 
136
 
118
        // -------------------------------------------------------------------------------
137
        // -------------------------------------------------------------------------------
119
        // Grade settings.
138
        // Grade settings.
Línea 120... Línea 139...
120
        $this->standard_grading_coursemodule_elements();
139
        $this->standard_grading_coursemodule_elements();
Línea 648... Línea 667...
648
        $mform->addElement(
667
        $mform->addElement(
649
            'advcheckbox',
668
            'advcheckbox',
650
            $completionattemptsexhaustedel,
669
            $completionattemptsexhaustedel,
651
            null,
670
            null,
652
            get_string('completionattemptsexhausted', 'quiz'),
671
            get_string('completionattemptsexhausted', 'quiz'),
653
            ['group' => 'cattempts', 'parentclass' => 'ml-4']
672
            ['group' => 'cattempts', 'parentclass' => 'ms-4']
654
        );
673
        );
655
        $completionpassgradeel = 'completionpassgrade' . $suffix;
674
        $completionpassgradeel = 'completionpassgrade' . $suffix;
656
        $mform->hideIf($completionattemptsexhaustedel, $completionpassgradeel, 'notchecked');
675
        $mform->hideIf($completionattemptsexhaustedel, $completionpassgradeel, 'notchecked');
657
        $mform->hideIf($completionattemptsexhaustedel, $completionpassgradeel, 'notchecked');
676
        $mform->hideIf($completionattemptsexhaustedel, $completionpassgradeel, 'notchecked');