First checkin of tag system from GSOC student Luiz Cruz
[moodle.git] / tag / edit_form.php
CommitLineData
c933a060 1<?php // $Id$
2
3require_once($CFG->dirroot.'/lib/formslib.php');
4
5class tag_edit_form extends moodleform {
6
7function definition () {
8
9 $mform =& $this->_form;
10
11 $mform->addElement('header', 'tag', get_string('description','tag'));
12
13 $mform->addElement('hidden', 'id');
14
15 $mform->addElement('htmleditor', 'description', get_string('description', 'tag'), array('rows'=>20));
16 $mform->setType('description', PARAM_CLEANHTML);
17
18 $mform->addElement('format', 'descriptionformat', get_string('format'));
19
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>');
25
26
27 $this->add_action_buttons(false, get_string('updatetag', 'tag'));
28
29 }
30
31}
32
33?>