mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 21:45:37 +02:00
Merge branch 'MDL-39435-master-int' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
8a414a7950
@ -34,7 +34,7 @@ class feedback_edit_add_question_form extends moodleform {
|
||||
$mform = $this->_form;
|
||||
|
||||
//headline
|
||||
$mform->addElement('header', 'general', get_string('add_items', 'feedback'));
|
||||
$mform->addElement('header', 'general', get_string('content'));
|
||||
// visible elements
|
||||
$feedback_names_options = feedback_load_feedback_items_options();
|
||||
|
||||
|
@ -51,11 +51,12 @@ abstract class feedback_item_form extends moodleform {
|
||||
array('size'=>FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE, 'maxlength'=>255));
|
||||
} else {
|
||||
$mform->addElement('hidden', 'dependitem', 0);
|
||||
$mform->setType('dependitem', PARAM_INT);
|
||||
$mform->addElement('hidden', 'dependvalue', '');
|
||||
$mform->setType('dependitem', PARAM_ALPHA);
|
||||
}
|
||||
|
||||
$mform->setType('dependitem', PARAM_INT);
|
||||
$mform->setType('dependvalue', PARAM_RAW);
|
||||
|
||||
$position_select = $mform->addElement('select',
|
||||
'position',
|
||||
get_string('position', 'feedback').' ',
|
||||
|
@ -44,11 +44,13 @@ class feedback_numeric_form extends feedback_item_form {
|
||||
'rangefrom',
|
||||
get_string('numeric_range_from', 'feedback'),
|
||||
array('size'=>10, 'maxlength'=>10));
|
||||
$mform->setType('rangefrom', PARAM_INT);
|
||||
|
||||
$mform->addElement('text',
|
||||
'rangeto',
|
||||
get_string('numeric_range_to', 'feedback'),
|
||||
array('size'=>10, 'maxlength'=>10));
|
||||
$mform->setType('rangeto', PARAM_INT);
|
||||
|
||||
parent::definition();
|
||||
$this->set_data($item);
|
||||
|
@ -23,7 +23,6 @@
|
||||
*/
|
||||
|
||||
$string['add_item'] = 'Add question to activity';
|
||||
$string['add_items'] = 'Add question to activity';
|
||||
$string['add_pagebreak'] = 'Add a page break';
|
||||
$string['adjustment'] = 'Adjustment';
|
||||
$string['after_submit'] = 'After submission';
|
||||
|
@ -108,9 +108,10 @@ class mod_feedback_mod_form extends moodleform_mod {
|
||||
array('size'=>'4',
|
||||
'disabled'=>'disabled',
|
||||
'value'=>$multiple_submit_value));
|
||||
$mform->setType('multiple_submit_static', PARAM_RAW);
|
||||
|
||||
$mform->addElement('hidden', 'multiple_submit', '');
|
||||
$mform->setType('', PARAM_INT);
|
||||
$mform->setType('multiple_submit', PARAM_INT);
|
||||
$mform->addHelpButton('multiple_submit_static', 'multiplesubmit', 'feedback');
|
||||
} else {
|
||||
$mform->addElement('selectyesno',
|
||||
|
Loading…
x
Reference in New Issue
Block a user