forked from totara/facetoface-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cancelsignup_form.php
26 lines (18 loc) · 1022 Bytes
/
cancelsignup_form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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);
}
}