mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 20:36:42 +01:00
38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
|
<?php // $Id$
|
||
|
/**
|
||
|
* prints the form to confirm use template
|
||
|
*
|
||
|
* @version $Id$
|
||
|
* @author Andreas Grabs
|
||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||
|
* @package feedback
|
||
|
*/
|
||
|
|
||
|
require_once $CFG->libdir.'/formslib.php';
|
||
|
|
||
|
class mod_feedback_use_templ_form extends moodleform {
|
||
|
function definition() {
|
||
|
$mform =& $this->_form;
|
||
|
|
||
|
//headline
|
||
|
$mform->addElement('header', 'general', '');
|
||
|
|
||
|
// visible elements
|
||
|
$mform->addElement('radio', 'deleteolditems', get_string('delete_old_items', 'feedback'), '', 1);
|
||
|
$mform->addElement('radio', 'deleteolditems', get_string('append_new_items', 'feedback'), '', 0);
|
||
|
$mform->setType('deleteolditems', PARAM_INT);
|
||
|
|
||
|
// hidden elements
|
||
|
$mform->addElement('hidden', 'id');
|
||
|
$mform->addElement('hidden', 'templateid');
|
||
|
$mform->addElement('hidden', 'do_show');
|
||
|
$mform->addElement('hidden', 'confirmadd');
|
||
|
|
||
|
//-------------------------------------------------------------------------------
|
||
|
// buttons
|
||
|
$this->add_action_buttons();
|
||
|
|
||
|
}
|
||
|
}
|
||
|
?>
|