mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions
This commit is contained in:
parent
48a67d9f01
commit
4bcc51185c
113 changed files with 442 additions and 970 deletions
|
@ -281,7 +281,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
|
|||
echo "<tr>";
|
||||
echo "<td align=\"right\" colspan=\"2\"><b>";
|
||||
echo '<label for="menubackup_site_files">'.get_string ("sitefilesused").'</label>';
|
||||
echo $OUTPUT->help_icon(moodle_help_icon::make('sitefilesused', get_string('sitefilesused')));
|
||||
echo $OUTPUT->help_icon('sitefilesused', get_string('sitefilesused'));
|
||||
echo "</b></td><td colspan=\"2\">";
|
||||
$course_file_options[0] = get_string("no");
|
||||
$course_file_options[1] = get_string("yes");
|
||||
|
|
|
@ -269,7 +269,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
|
|||
echo '<label for="shortnamefield">'.get_string ('shortname').'</label>';
|
||||
echo "</td>";
|
||||
echo "<td><input type=\"text\" id=\"shortnamefield\" name=\"shortname\" maxlength=\"100\" size=\"20\" value=\"".s($form1->shortname)."\" alt=\"".get_string("shortname")."\" />" ;
|
||||
echo $OUTPUT->help_icon(moodle_help_icon::make("courseshortname", get_string("shortname"))) ;
|
||||
echo $OUTPUT->help_icon("courseshortname", get_string("shortname"));
|
||||
if (isset($err["shortname"])) echo $OUTPUT->error_text($err["shortname"]);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
@ -278,7 +278,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
|
|||
echo '<label for="fullnamefield">'.get_string ('fullname').'</label>';
|
||||
echo "</td>";
|
||||
echo "<td><input type=\"text\" id=\"fullnamefield\" name=\"fullname\" maxlength=\"254\" size=\"50\" value=\"".s($form1->fullname)."\" alt=\" ".get_string("fullname")."\" />" ;
|
||||
echo $OUTPUT->help_icon(moodle_help_icon::make("coursefullname", get_string("fullname"))) ;
|
||||
echo $OUTPUT->help_icon("coursefullname", get_string("fullname"));
|
||||
if (isset($err["fullname"])) echo $OUTPUT->error_text($err["fullname"]);
|
||||
echo"</td></tr>";
|
||||
} else {
|
||||
|
@ -303,7 +303,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
|
|||
$yearselector = html_select::make_time_selector('years', "startyear", $form1->startdate);
|
||||
|
||||
echo $OUTPUT->select($dayselector) . $OUTPUT->select($monthselector) . $OUTPUT->select($yearselector);
|
||||
echo $OUTPUT->help_icon(moodle_help_icon::make("coursestartdate", get_string("startdate")));
|
||||
echo $OUTPUT->help_icon("coursestartdate", get_string("startdate"));
|
||||
} else {
|
||||
print_string('notavailable');
|
||||
echo '<input type="hidden" name="startyear" value="0" />';
|
||||
|
@ -463,7 +463,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
|
|||
//Now print the Groups tr (assume there is no $info->backup_groups)
|
||||
echo "<tr>";
|
||||
echo "<td align=\"right\" colspan=\"2\"><b>";
|
||||
$helplink = $OUTPUT->help_icon(moodle_help_icon::make('grouprestore', get_string('groups')));
|
||||
$helplink = $OUTPUT->help_icon('grouprestore', get_string('groups'));
|
||||
echo '<label for="menurestore_groups">'.get_string ("groups").'</label>'.$helplink;
|
||||
echo "</b></td><td colspan=\"2\">";
|
||||
if (empty($CFG->enablegroupings)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue