MDL-64954 tool_analytics: More help for analytics api elements
authorDavid Monllaó <davidm@moodle.com>
Fri, 5 Apr 2019 21:19:21 +0000 (23:19 +0200)
committerDavid Monllaó <davidm@moodle.com>
Fri, 5 Apr 2019 21:59:20 +0000 (23:59 +0200)
admin/tool/analytics/classes/output/form/edit_model.php
admin/tool/analytics/lang/en/tool_analytics.php
lang/en/analytics.php

index 2c0be86..31d0f57 100644 (file)
@@ -74,6 +74,7 @@ class edit_model extends \moodleform {
         );
         $mform->addElement('autocomplete', 'indicators', get_string('indicators', 'tool_analytics'), $indicators, $options);
         $mform->setType('indicators', PARAM_ALPHANUMEXT);
+        $mform->addHelpButton('indicators', 'indicators', 'tool_analytics');
 
         $timesplittings = array('' => '');
         foreach ($this->_customdata['timesplittings'] as $classname => $timesplitting) {
index dc0c5c9..b3a8ba4 100644 (file)
@@ -78,6 +78,8 @@ $string['getpredictions'] = 'Get predictions';
 $string['goodmodel'] = 'This is a good model for using to obtain predictions. Enable it to start obtaining predictions.';
 $string['importmodel'] = 'Import model';
 $string['indicators'] = 'Indicators';
+$string['indicators_help'] = 'The indicators are what you think will lead to an accurate prediction of the target.';
+$string['indicators_link'] = 'Indicators';
 $string['info'] = 'Info';
 $string['ignoreversionmismatches'] = 'Ignore version mismatches';
 $string['ignoreversionmismatchescheckbox'] = 'Ignore the differences between this site version and the original site version.';
@@ -111,6 +113,7 @@ $string['samestartdate'] = 'Current start date is good';
 $string['sameenddate'] = 'Current end date is good';
 $string['target'] = 'Target';
 $string['target_help'] = 'The target is what the model will predict.';
+$string['target_link'] = 'Targets';
 $string['timesplittingnotdefined'] = 'Time splitting is not defined.';
 $string['timesplittingnotdefined_help'] = 'You need to select a time-splitting method before enabling the model.';
 $string['trainandpredictmodel'] = 'Training model and calculating predictions';
index a25a3cd..f43a0f9 100644 (file)
@@ -122,5 +122,6 @@ $string['privacy:metadata:analytics:predictionactions:timecreated'] = 'When the
 $string['processingsitecontents'] = 'Processing site contents';
 $string['successfullyanalysed'] = 'Successfully analysed';
 $string['timesplittingmethod'] = 'Time-splitting method';
-$string['timesplittingmethod_help'] = 'The time-splitting method is what defines when the system will calculate predictions and the portion of activity logs that will be considered for those predictions. E.g. They can divide the course duration in parts and generate a prediction at the end of these parts.';
+$string['timesplittingmethod_help'] = 'The time-splitting method is what defines when the system will calculate predictions and the portion of activity logs that will be considered for those predictions. E.g. they can divide the course duration in parts and generate a prediction at the end of these parts.';
+$string['timesplittingmethod_link'] = 'Time_splitting_methods';
 $string['viewprediction'] = 'View prediction details';