mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-19519 , MDL-1728 Adding database question_calculated_options
final strings text will be added later after users comments
This commit is contained in:
parent
e593233a22
commit
f79a4158ad
1 changed files with 8 additions and 0 deletions
|
@ -96,6 +96,14 @@ class question_dataset_dependent_definitions_form extends moodleform {
|
|||
$key++;
|
||||
}
|
||||
}
|
||||
$mform->addElement('header', 'synchronizehdr', get_string("Synchronize the data from shared datasets with other questions in a quiz", $stringfile));
|
||||
$mform->addElement('checkbox', "synchronize", '', "For each question in a quiz using a given wild card {x..} from a <strong>shared </strong> dataset, wild card {x..}will be substituted by the same numerical value.");
|
||||
if (isset($this->question->options)&& isset($this->question->options->synchronize) ){
|
||||
$mform->setDefault("synchronize", $this->question->options->synchronize);
|
||||
} else {
|
||||
$mform->setDefault("synchronize", 0 );
|
||||
}
|
||||
|
||||
$this->add_action_buttons(false, get_string('nextpage', 'qtype_calculated'));
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue