WIP Issue #17 - Settings page done, missing forms and other references to warning duration and stop time.

This commit is contained in:
Daniel Thee Roperto
2016-09-08 17:25:28 +10:00
parent 07ee61f4f3
commit 4e46e934d0
9 changed files with 56 additions and 26 deletions

10
new.php
View File

@@ -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();