mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Basic form validation for create/edit outage. Checks if starttime is in past, stoptime is after starttime, warningduration is not zero and title size. Issue #7.
This commit is contained in:
@@ -39,8 +39,8 @@ class auth_outage_renderer extends plugin_renderer_base
|
||||
}
|
||||
|
||||
public function renderdeleteconfirmation(outage $outage) {
|
||||
return $this->rendersubtitle('removeoutage')
|
||||
. html_writer::tag('p', get_string('removeoutagewarning', 'auth_outage'))
|
||||
return $this->rendersubtitle('outageremove')
|
||||
. html_writer::tag('p', get_string('outageremovewarning', 'auth_outage'))
|
||||
. $this->renderoutage($outage, false);
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ class auth_outage_renderer extends plugin_renderer_base
|
||||
$html .= html_writer::empty_tag('br')
|
||||
. html_writer::link(
|
||||
$url,
|
||||
$img . ' ' . get_string('createoutage', 'auth_outage'),
|
||||
$img . ' ' . get_string('outagecreate', 'auth_outage'),
|
||||
['title' => get_string('remove')])
|
||||
. html_writer::empty_tag('br');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user