mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-38301 usability: Fixed wrong icon size
This commit is contained in:
parent
6319737865
commit
982f4bc40e
@ -118,7 +118,8 @@ class enrol_cohort_plugin extends enrol_plugin {
|
||||
|
||||
if (has_capability('enrol/cohort:config', $context)) {
|
||||
$editlink = new moodle_url("/enrol/cohort/edit.php", array('courseid'=>$instance->courseid, 'id'=>$instance->id));
|
||||
$icons[] = $OUTPUT->action_icon($editlink, new pix_icon('i/edit', get_string('edit'), 'core', array('class'=>'icon')));
|
||||
$icons[] = $OUTPUT->action_icon($editlink, new pix_icon('t/edit', get_string('edit'), 'core',
|
||||
array('class' => 'smallicon')));
|
||||
}
|
||||
|
||||
return $icons;
|
||||
|
@ -117,7 +117,8 @@ class enrol_manual_plugin extends enrol_plugin {
|
||||
}
|
||||
if (has_capability('enrol/manual:config', $context)) {
|
||||
$editlink = new moodle_url("/enrol/manual/edit.php", array('courseid'=>$instance->courseid));
|
||||
$icons[] = $OUTPUT->action_icon($editlink, new pix_icon('i/edit', get_string('edit'), 'core', array('class'=>'icon')));
|
||||
$icons[] = $OUTPUT->action_icon($editlink, new pix_icon('t/edit', get_string('edit'), 'core',
|
||||
array('class' => 'iconsmall')));
|
||||
}
|
||||
|
||||
return $icons;
|
||||
|
@ -118,7 +118,8 @@ class enrol_paypal_plugin extends enrol_plugin {
|
||||
|
||||
if (has_capability('enrol/paypal:config', $context)) {
|
||||
$editlink = new moodle_url("/enrol/paypal/edit.php", array('courseid'=>$instance->courseid, 'id'=>$instance->id));
|
||||
$icons[] = $OUTPUT->action_icon($editlink, new pix_icon('i/edit', get_string('edit'), 'core', array('class'=>'icon')));
|
||||
$icons[] = $OUTPUT->action_icon($editlink, new pix_icon('t/edit', get_string('edit'), 'core',
|
||||
array('class' => 'smallicon')));
|
||||
}
|
||||
|
||||
return $icons;
|
||||
|
@ -160,7 +160,8 @@ class enrol_self_plugin extends enrol_plugin {
|
||||
|
||||
if (has_capability('enrol/self:config', $context)) {
|
||||
$editlink = new moodle_url("/enrol/self/edit.php", array('courseid'=>$instance->courseid, 'id'=>$instance->id));
|
||||
$icons[] = $OUTPUT->action_icon($editlink, new pix_icon('i/edit', get_string('edit'), 'core', array('class'=>'icon')));
|
||||
$icons[] = $OUTPUT->action_icon($editlink, new pix_icon('t/edit', get_string('edit'), 'core',
|
||||
array('class' => 'smallicon')));
|
||||
}
|
||||
|
||||
return $icons;
|
||||
|
@ -83,17 +83,20 @@ if ($groupings = $DB->get_records('groupings', array('courseid'=>$course->id), '
|
||||
}
|
||||
$line[2] = $DB->count_records('course_modules', array('course'=>$course->id, 'groupingid'=>$grouping->id));
|
||||
|
||||
$buttons = "<a title=\"$stredit\" href=\"grouping.php?id=$grouping->id\"><img".
|
||||
" src=\"" . $OUTPUT->pix_url('t/edit') . "\" class=\"iconsmall\" alt=\"$stredit\" /></a> ";
|
||||
$url = new moodle_url('/group/grouping.php', array('id' => $grouping->id));
|
||||
$buttons = html_writer::link($url, $OUTPUT->pix_icon('t/edit', $stredit, 'core',
|
||||
array('class' => 'iconsmall')), array('title' => $stredit));
|
||||
if (empty($grouping->idnumber) || $canchangeidnumber) {
|
||||
// It's only possible to delete groups without an idnumber unless the user has the changeidnumber capability
|
||||
$buttons .= "<a title=\"$strdelete\" href=\"grouping.php?id=$grouping->id&delete=1\"><img".
|
||||
" src=\"" . $OUTPUT->pix_url('t/delete') . "\" class=\"iconsmall\" alt=\"$strdelete\" /></a> ";
|
||||
// It's only possible to delete groups without an idnumber unless the user has the changeidnumber capability.
|
||||
$url = new moodle_url('/group/grouping.php', array('id' => $grouping->id, 'delete' => 1));
|
||||
$buttons .= html_writer::link($url, $OUTPUT->pix_icon('t/delete', $strdelete, 'core',
|
||||
array('class' => 'iconsmall')), array('title' => $strdelete));
|
||||
} else {
|
||||
$buttons .= $OUTPUT->spacer();
|
||||
}
|
||||
$buttons .= "<a title=\"$strmanagegrping\" href=\"assign.php?id=$grouping->id\"><img".
|
||||
" src=\"" . $OUTPUT->pix_url('i/group') . "\" class=\"icon\" alt=\"$strmanagegrping\" /></a> ";
|
||||
$url = new moodle_url('/group/assign.php', array('id' => $grouping->id));
|
||||
$buttons .= html_writer::link($url, $OUTPUT->pix_icon('t/groups', $strmanagegrping, 'core',
|
||||
array('class' => 'iconsmall')), array('title' => $strmanagegrping));
|
||||
|
||||
$line[3] = $buttons;
|
||||
$data[] = $line;
|
||||
|
@ -260,7 +260,9 @@ a.skip:active {position: static;display: block;}
|
||||
.dir-rtl .mform .helplink img { margin: 0 .45em 0 0; padding: 0;}
|
||||
.mform legend .helplink img { margin-right: .2em; }
|
||||
.dir-rtl .mform legend .helplink img { margin: 0 .45em 0 .2em; }
|
||||
.urlselect label,
|
||||
.singleselect label { margin-right: .3em; }
|
||||
.dir-rtl .urlselect label,
|
||||
.dir-rtl .singleselect label { margin-left: .3em; margin-right: 0; }
|
||||
|
||||
input#id_externalurl {direction:ltr;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user