MDL-53877 competency: Help and better validation text for evidence URL

This commit is contained in:
Serge Gauthier 2016-04-29 11:32:07 -04:00 committed by Jun Pataleta
parent 3219a4535f
commit 3cd9461e77
3 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,7 @@ class user_evidence extends persistent {
$mform->addElement('url', 'url', get_string('userevidenceurl', 'tool_lp'), array(), array('usefilepicker' => false));
$mform->setType('url', PARAM_RAW_TRIMMED); // Can not use PARAM_URL, it silently converts bad URLs to ''.
$mform->addHelpButton('url', 'userevidenceurl', 'tool_lp');
$mform->addElement('filemanager', 'files', get_string('userevidencefiles', 'tool_lp'), array(),
$this->_customdata['fileareaoptions']);

View File

@ -277,6 +277,7 @@ $string['userevidencename'] = 'Name';
$string['userevidencesummary'] = 'Summary';
$string['userevidenceupdated'] = 'Evidence of prior learning updated';
$string['userevidenceurl'] = 'URL';
$string['userevidenceurl_help'] = 'The URL must start with \'http://\' or \'https://\'.';
$string['viewdetails'] = 'View details';
$string['visible'] = 'Visible';
$string['visible_help'] = 'A competency framework can be hidden from teachers. This could be useful if a framework is still in the process of being developed.';

View File

@ -106,7 +106,7 @@ $string['invalidgrade'] = 'Invalid rating';
$string['invalidpersistent'] = 'Invalid persistent';
$string['invalidplan'] = 'Invalid learning plan';
$string['invalidtaxonomy'] = 'Invalid taxonomy: {$a}';
$string['invalidurl'] = 'The URL is not valid.';
$string['invalidurl'] = 'The URL is not valid. Make sure it starts with \'http://\' or \'https://\'.';
$string['planstatusactive'] = 'Active';
$string['planstatuscomplete'] = 'Complete';
$string['planstatusdraft'] = 'Draft';