Issue #390: Changed outage auto-start default parameter from checkbox to dropdown with option to fully disable.

This commit is contained in:
abhinavgandham
2026-01-14 12:00:01 +10:00
parent 0105891b2e
commit a96035be92
2 changed files with 10 additions and 2 deletions

View File

@@ -43,11 +43,16 @@ if ($hassiteconfig) {
get_string('settingssectiondefaultsdescription', 'auth_outage') . $description
));
$settings->add(new admin_setting_configcheckbox(
$settings->add(new admin_setting_configselect(
'auth_outage/default_autostart',
get_string('defaultoutageautostart', 'auth_outage'),
get_string('defaultoutageautostartdescription', 'auth_outage'),
$defaults['default_autostart']
'off',
[
'0' => get_string('autostartoff', 'auth_outage'),
'1' => get_string('autostarton', 'auth_outage'),
'2' => get_string('forceoff', 'auth_outage'),
]
));
$settings->add(new admin_setting_configduration(