3 require_once($CFG->dirroot
.'/lib/formslib.php');
5 class tag_edit_form
extends moodleform
{
7 function definition () {
9 $mform =& $this->_form
;
11 $mform->addElement('header', 'tag', get_string('description','tag'));
13 $mform->addElement('hidden', 'id');
15 $mform->addElement('htmleditor', 'description', get_string('description', 'tag'), array('rows'=>20));
16 $mform->setType('description', PARAM_CLEANHTML
);
18 $mform->addElement('format', 'descriptionformat', get_string('format'));
20 $mform->addElement('html', '<br/><div id="relatedtags-autocomplete-container">');
21 $mform->addElement('textarea', 'relatedtags', get_string('relatedtags','tag'), 'cols="50" rows="3"');
22 $mform->setType('relatedtags', PARAM_MULTILANG
);
23 $mform->addElement('html', '</div>');
24 $mform->addElement('html', '<div id="relatedtags-autocomplete"></div>');
27 $this->add_action_buttons(false, get_string('updatetag', 'tag'));