MDL-72045 calendar: change export doc link by help text

This commit is contained in:
Simey Lameze 2021-07-23 13:56:41 +08:00
parent 8453fe0ddb
commit f3176e8ec5
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -143,7 +143,8 @@ $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['exporthelp'] = '<p>The calendar URL provides a dynamic link for importing events into other calendars. Any new, changed or deleted events in the source calendar <strong>will</strong> be reflected in the other calendars.</p>
<p>The calendar export allows you to create a backup copy of events, which may be imported into other calendars. Updates made in the source calendar <strong>will not</strong> be reflected in the other calendars.</p>';
$string['exportbutton'] = 'Export';
$string['exportcalendar'] = 'Export calendar';
$string['forcecalendartype'] = 'Force calendar';