[system] / trunk / wwmoodle / wwquestion / moodle / question / type / webwork / edit_webwork_form.php Repository:
ViewVC logotype

Diff of /trunk/wwmoodle/wwquestion/moodle/question/type/webwork/edit_webwork_form.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5502 Revision 5503
23 23
24 function definition_inner(&$mform) { 24 function definition_inner(&$mform) {
25 25
26 //CODE HEADER 26 //CODE HEADER
27 $mform->addElement('header', 'codeheader', get_string("edit_codeheader", 'qtype_webwork')); 27 $mform->addElement('header', 'codeheader', get_string("edit_codeheader", 'qtype_webwork'));
28 $mform->setHelpButton('codeheader',array('codeheader', get_string('edit_codeheader','qtype_webwork'),'webwork'));
29 28
30 //CODE 29 //CODE
31 $mform->addElement('textarea', 'code', get_string('edit_code', 'qtype_webwork'), 30 $mform->addElement('textarea', 'code', get_string('edit_code', 'qtype_webwork'),
32 array('rows' => 10,'cols' => 60)); 31 array('rows' => 10,'cols' => 60));
33 $mform->setType('code', PARAM_RAW); 32 $mform->setType('code', PARAM_RAW);
64 63
65 //SEED 64 //SEED
66 $mform->addElement('text', 'seed', get_string('edit_seed','qtype_webwork'), 65 $mform->addElement('text', 'seed', get_string('edit_seed','qtype_webwork'),
67 array('size' => 3)); 66 array('size' => 3));
68 $mform->setType('seed', PARAM_INT); 67 $mform->setType('seed', PARAM_INT);
69 $mform->setHelpButton('seed', array('webwork', get_string('edit_seed', 'qtype_webwork'), 'webwork')); 68 $mform->setHelpButton('seed', array('seed', get_string('edit_seed', 'qtype_webwork'), 'webwork'));
70 $mform->setDefault('seed', 0); 69 $mform->setDefault('seed', 0);
71 $mform->addRule('seed', null, 'required', null, 'client'); 70 $mform->addRule('seed', null, 'required', null, 'client');
72 71
73 //TRIALS 72 //TRIALS
74 $mform->addElement('text', 'trials', get_string('edit_trials','qtype_webwork'), 73 $mform->addElement('text', 'trials', get_string('edit_trials','qtype_webwork'),
75 array('size' => 3)); 74 array('size' => 3));
76 $mform->setType('trials', PARAM_INT); 75 $mform->setType('trials', PARAM_INT);
77 $mform->setHelpButton('trials', array('webwork', get_string('edit_trials', 'qtype_webwork'), 'webwork')); 76 $mform->setHelpButton('trials', array('trials', get_string('edit_trials', 'qtype_webwork'), 'webwork'));
78 $mform->setDefault('trials', 10); 77 $mform->setDefault('trials', 10);
79 $mform->addRule('trials', null, 'required', null, 'client'); 78 $mform->addRule('trials', null, 'required', null, 'client');
80 } 79 }
81 80
82 function set_data($question) { 81 function set_data($question) {

Legend:
Removed from v.5502  
changed lines
  Added in v.5503

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9