moodle/mod/feedback/use_templ_form.php
moodler c70ad9f736 MDL-14493 First checkin of Feedback module into HEAD.
I made a number of small tidy-ups to the contrib version before adding this here:

  - fixed some language string names
  - renamed a capability from deletecompleteds to deletesubmissions (can we use "submissions" everywhere?)
  - got rid of language packs (moved english to correct location)
  - deleted 'pics' type (it needs to be rewritten to use user files in moodledata)
  - moved changelog into README.txt
  - moved captcha font out of subdir
  - bumped version to today

Thanks very much to Andreas Grabs for all your work on this module so far, and congratulations!   :-)
2008-04-23 09:33:54 +00:00

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();
}
}
?>