Issue #28 - Added hints for the edit outage form.

This commit is contained in:
Daniel Thee Roperto
2016-09-12 18:22:50 +10:00
parent cbbb861fd8
commit b8c08192d1
2 changed files with 11 additions and 1 deletions

View File

@@ -46,10 +46,13 @@ class edit extends \moodleform {
$mform->setType('id', PARAM_INT);
$mform->addElement('duration', 'warningduration', get_string('warningduration', 'auth_outage'));
$mform->addHelpButton('warningduration', 'warningduration', 'auth_outage');
$mform->addElement('date_time_selector', 'starttime', get_string('starttime', 'auth_outage'));
$mform->addHelpButton('starttime', 'starttime', 'auth_outage');
$mform->addElement('duration', 'outageduration', get_string('outageduration', 'auth_outage'));
$mform->addHelpButton('outageduration', 'outageduration', 'auth_outage');
$mform->addElement(
'text',
@@ -58,8 +61,10 @@ class edit extends \moodleform {
'maxlength="' . self::TITLE_MAX_CHARS . '" size="60"'
);
$mform->setType('title', PARAM_TEXT);
$mform->addHelpButton('title', 'title', 'auth_outage');
$mform->addElement('editor', 'description', get_string('description', 'auth_outage'));
$mform->addHelpButton('description', 'description', 'auth_outage');
$mform->addElement('static', 'usagehints', '', get_string('textplaceholdershint', 'auth_outage'));