Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 60... Línea 60...
60
        }
60
        }
Línea 61... Línea 61...
61
 
61
 
62
        $mform->addElement('selectyesno', 'enabled', get_string('enabled', 'quizaccess_seb'));
62
        $mform->addElement('selectyesno', 'enabled', get_string('enabled', 'quizaccess_seb'));
Línea 63... Línea -...
63
        $mform->setType('enabled', PARAM_INT);
-
 
64
 
-
 
65
        $this->add_action_buttons();
63
        $mform->setType('enabled', PARAM_INT);
66
 
64
 
67
        if (!empty($this->get_persistent()) && !$this->get_persistent()->can_delete()) {
-
 
68
            $mform->hardFreezeAllVisibleExcept([]);
65
        if ($this->get_persistent()->get('id')) {
-
 
66
            $mform->hardFreezeAllVisibleExcept(['enabled']);
-
 
67
        }
69
            $mform->addElement('cancel');
68
 
Línea 70... Línea 69...
70
        }
69
        $this->add_action_buttons();
71
    }
70
    }
72
 
71