Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 42... Línea 42...
42
        $mform->addElement('text',
42
        $mform->addElement('text',
43
            'templatename',
43
            'templatename',
44
            get_string('name', 'feedback'),
44
            get_string('name', 'feedback'),
45
            ['maxlength' => '200', 'size' => '50']);
45
            ['maxlength' => '200', 'size' => '50']);
46
        $mform->setType('templatename', PARAM_TEXT);
46
        $mform->setType('templatename', PARAM_TEXT);
-
 
47
        $mform->addRule('templatename', null, 'required', null, 'client');
Línea 47... Línea 48...
47
 
48
 
48
        if (has_capability('mod/feedback:createpublictemplate', context_system::instance())) {
49
        if (has_capability('mod/feedback:createpublictemplate', context_system::instance())) {
49
            $mform->addElement('checkbox',
50
            $mform->addElement('checkbox',
50
                'ispublic', '',
51
                'ispublic', '',
51
                get_string('public', 'feedback'));
52
                get_string('availableforallcourses', 'feedback'));
52
        }
53
        }
Línea 53... Línea 54...
53
    }
54
    }
54
 
55