calendar/lib: calendar_set_filters() use pre-fetched context and course recs
[moodle-pu.git] / tag / edit_form.php
blobec954fdbbabeff896e7c18137487386851dbb50f
1 <?php // $Id$
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));
17 $mform->addElement('format', 'descriptionformat', get_string('format'));
19 $mform->addElement('html', '<br/><div id="relatedtags-autocomplete-container">');
20 $mform->addElement('textarea', 'relatedtags', get_string('relatedtags','tag'), 'cols="50" rows="3"');
21 $mform->setType('relatedtags', PARAM_TAGLIST);
22 $mform->addElement('html', '</div>');
23 $mform->addElement('html', '<div id="relatedtags-autocomplete"></div>');
26 $this->add_action_buttons(false, get_string('updatetag', 'tag'));