Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (18 sloc) 1022 Bytes
<?php
require_once "$CFG->dirroot/lib/formslib.php";
class mod_facetoface_cancelsignup_form extends moodleform {
function definition()
{
$mform =& $this->_form;
$mform->addElement('header', 'general', get_string('cancelbooking', 'facetoface'));
$mform->addElement('hidden', 's', $this->_customdata['s']);
$mform->addElement('hidden', 'backtoallsessions', $this->_customdata['backtoallsessions']);
$mform->addElement('html', get_string('cancellationconfirm', 'facetoface')); // instructions
$mform->addElement('text', 'cancelreason', get_string('cancelreason', 'facetoface'), 'size="60" maxlength="255"');
$mform->setType('cancelreason', PARAM_TEXT);
$buttonarray=array();
$buttonarray[] = &$mform->createElement('submit', 'submitbutton', get_string('yes'));
$buttonarray[] = &$mform->createElement('cancel', 'cancelbutton', get_string('no'));
$mform->addGroup($buttonarray, 'buttonar', '', array(' '), false);
}
}