Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make section headers unique; set initial expanded sections #587

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ public function definition() {
$this->standard_intro_elements();

// Adding the "schedule" fieldset, where all settings relating to date and time are shown.
$mform->addElement('header', 'general', get_string('schedule', 'mod_zoom'));
$mform->addElement('header', 'schedule', get_string('schedule', 'mod_zoom'));
$mform->setExpanded('schedule');

// Add date/time. Validation in validation().
$starttimeoptions = [
Expand Down Expand Up @@ -462,7 +463,8 @@ public function definition() {
$mform->setType('roomsgroups', PARAM_RAW);

// Adding the "security" fieldset, where all settings relating to securing and protecting the meeting are shown.
$mform->addElement('header', 'general', get_string('security', 'mod_zoom'));
$mform->addElement('header', 'security', get_string('security', 'mod_zoom'));
$mform->setExpanded('security');

// Deals with password manager issues.
if (isset($this->current->password)) {
Expand Down Expand Up @@ -600,7 +602,8 @@ public function definition() {
$mform->addHelpButton('show_security', 'showsecurity', 'zoom');

// Adding the "media" fieldset, where all settings relating to media streams in the meeting are shown.
$mform->addElement('header', 'general', get_string('media', 'mod_zoom'));
$mform->addElement('header', 'media', get_string('media', 'mod_zoom'));
$mform->setExpanded('media');

// Add host/participants video options.
$mform->addGroup([
Expand Down Expand Up @@ -692,7 +695,8 @@ public function definition() {
$showalternativehosts = ($config->showalternativehosts != ZOOM_ALTERNATIVEHOSTS_DISABLE);
if ($showschedulingprivilege || $showalternativehosts) {
// Adding the "host" fieldset, where all settings relating to defining the meeting host are shown.
$mform->addElement('header', 'general', get_string('host', 'mod_zoom'));
$mform->addElement('header', 'host', get_string('host', 'mod_zoom'));
$mform->setExpanded('host');

// Supplementary feature: Alternative hosts.
// Only show if the admin did not disable this feature completely.
Expand Down Expand Up @@ -771,7 +775,7 @@ public function definition() {

// Adding option for Recording Visiblity by default.
if (!empty($config->viewrecordings)) {
$mform->addElement('header', 'general', get_string('recording', 'mod_zoom'));
$mform->addElement('header', 'recording', get_string('recording', 'mod_zoom'));
$mform->addElement(
'advcheckbox',
'recordings_visible_default',
Expand Down