| Línea 47... |
Línea 47... |
| 47 |
$mform->setExpanded('attemptoptionsheader', false);
|
47 |
$mform->setExpanded('attemptoptionsheader', false);
|
| 48 |
// Add html element with class to display long text in single line.
|
48 |
// Add html element with class to display long text in single line.
|
| 49 |
$mform->addElement('html', \html_writer::div(get_string('theoptionsyouselectonlyaffectthepreview',
|
49 |
$mform->addElement('html', \html_writer::div(get_string('theoptionsyouselectonlyaffectthepreview',
|
| 50 |
'qbank_previewquestion'), "col-md-12 row d-flex col-form-label mb-3"));
|
50 |
'qbank_previewquestion'), "col-md-12 row d-flex col-form-label mb-3"));
|
| 51 |
$versions = $this->_customdata['versions'];
|
51 |
$versions = $this->_customdata['versions'];
|
| 52 |
$versions[question_preview_options::ALWAYS_LATEST] = get_string('alwayslatest', 'qbank_previewquestion');
|
- |
|
| 53 |
$currentversion = $this->_customdata['restartversion'];
|
52 |
$currentversion = $this->_customdata['restartversion'];
|
| 54 |
$select = $mform->addElement('select', 'restartversion', get_string('questionversion', 'qbank_previewquestion'), $versions);
|
53 |
$select = $mform->addElement('select', 'restartversion', get_string('questionversion', 'qbank_previewquestion'), $versions);
|
| 55 |
$select->setSelected($currentversion);
|
54 |
$select->setSelected($currentversion);
|
| 56 |
$behaviours = question_engine::get_behaviour_options(
|
55 |
$behaviours = question_engine::get_behaviour_options(
|
| 57 |
$this->_customdata['quba']->get_preferred_behaviour());
|
56 |
$this->_customdata['quba']->get_preferred_behaviour());
|