Skip to content

Commit

Permalink
to squash
Browse files Browse the repository at this point in the history
  • Loading branch information
PM84 committed Mar 10, 2024
1 parent 640cd4f commit 8fc601b
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions classes/form/archive_quiz_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function definition() {

// Options
$mform->addElement('header', 'header_settings', get_string('settings'));
$mform->setExpanded('header_settings', false);
$mform->setExpanded('header_settings', true);

// Options: Test
$mform->addElement('static', 'quiz_name', get_string('modulename', 'mod_quiz'), $this->quiz_name);
Expand Down Expand Up @@ -129,34 +129,6 @@ public function definition() {
$config->job_preset_export_course_backup_locked ? 'disabled' : null
);
$mform->addHelpButton('export_course_backup', 'export_course_backup', 'quiz_archiver');
$mform->setDefault('export_course_backup', $config->job_preset_export_course_backup);

// PDF cover sheet.
$mform->addElement('header', 'header_pdfcoversheet_settings', get_string('pdfcoversheet_settings', 'quiz_archiver'));
$mform->setExpanded('header_pdfcoversheet_settings', true);

$mform->addElement(
'advcheckbox',
'enable_pdf_coversheet',
' ',
get_string('enable_pdf_coversheet', 'quiz_archiver'),
$config->{'job_preset_export_report_section_' . $section . '_locked'} ? 'disabled' : null
);
$mform->addHelpButton('enable_pdf_coversheet', 'enable_pdf_coversheet', 'quiz_archiver');

$mform->addElement(
'filepicker',
'pdf_coversheet_background',
get_string('pdf_coversheet_backgroundimage', 'quiz_archiver'),
null,
[
'accepted_types' => 'png, jpg',
]
);
$mform->addHelpButton('pdf_coversheet_background', 'pdf_coversheet_backgroundimage', 'quiz_archiver');

$mform->addElement('textarea', 'pdf_coversheet_html_area', get_string("pdf_coversheet_html_area", "quiz_archiver"), 'wrap="virtual" rows="20" cols="50"');
$mform->addHelpButton('pdf_coversheet_html_area', 'pdf_coversheet_html_area', 'quiz_archiver');

// Advanced options
$mform->addElement('header', 'header_advanced_settings', get_string('advancedsettings'));
Expand Down

0 comments on commit 8fc601b

Please sign in to comment.