mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
WIP Issue #17 - Settings page done, missing forms and other references to warning duration and stop time.
This commit is contained in:
10
new.php
10
new.php
@@ -43,6 +43,16 @@ if ($mform->is_cancelled()) {
|
||||
redirect('/auth/outage/manage.php#auth_outage_id_' . $id);
|
||||
}
|
||||
|
||||
$config = get_config('auth_outage');
|
||||
$defaults = [
|
||||
'starttime' => time(),
|
||||
'outageduration' => ($config->default_duration * 60),
|
||||
'warningduration' => ($config->warning_duration * 60),
|
||||
'title' => $config->warning_title,
|
||||
'description' => ['text' => $config->warning_description, 'format' => '1']
|
||||
];
|
||||
$mform->set_data($defaults);
|
||||
|
||||
$PAGE->navbar->add(get_string('outagecreate', 'auth_outage'));
|
||||
echo $OUTPUT->header();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user