MDL-58142 calendar: Add an obvious link to the help docs

Part of MDL-58220
This commit is contained in:
Damyon Wiese 2017-03-10 10:37:29 +08:00
parent 5823a27e7e
commit 1a1a09d8f8
3 changed files with 5 additions and 1 deletions

View File

@ -42,9 +42,11 @@ class core_calendar_export_form extends moodleform {
* @throws coding_exception
*/
public function definition() {
global $CFG;
global $CFG, $OUTPUT;
$mform = $this->_form;
$mform->addElement('html', '<p>' . $OUTPUT->doc_link('calendar/export', get_string('exporthelp', 'calendar'), true) . '</p>');
$export = array();
$export[] = $mform->createElement('radio', 'exportevents', '', get_string('eventsall', 'calendar'), 'all');
$export[] = $mform->createElement('radio', 'exportevents', '', get_string('eventsrelatedtocourses', 'calendar'), 'courses');

View File

@ -169,4 +169,5 @@ if ($action != 'advanced') {
echo $calendarurl;
echo $renderer->complete_layout();
echo $OUTPUT->footer();

View File

@ -117,6 +117,7 @@ $string['eventsubscriptioneditwarning'] = 'This calendar event is part of a subs
$string['expired'] = 'Expired';
$string['explain_site_timeformat'] = 'You can choose to see times in either 12 or 24 hour format for the whole site. If you choose "default", then the format will be automatically chosen according to the language you use in the site. This setting can be overridden by user preferences.';
$string['export'] = 'Export';
$string['exporthelp'] = 'How do I subscribe to this calendar from a calendar application (Google/Outlook/Other)?';
$string['exportbutton'] = 'Export';
$string['exportcalendar'] = 'Export calendar';
$string['forcecalendartype'] = 'Force calendar';