|
@@ 275-280 (lines=6) @@
|
| 272 |
|
ICON_SIZE_SMALL |
| 273 |
|
) . '</a>'; |
| 274 |
|
|
| 275 |
|
if ($cat->is_locked() && !api_is_platform_admin()) { |
| 276 |
|
$modify_icons .= Display::return_icon('delete_na.png', get_lang('DeleteAll'), '', ICON_SIZE_SMALL); |
| 277 |
|
} else { |
| 278 |
|
$modify_icons .= ' <a href="' . api_get_self() . '?deletecat=' . $cat->get_id() . '&selectcat=' . $selectcat . '&cidReq=' . $cat->get_course_code() . '&id_session='.$cat->get_session_id(). '" onclick="return confirmation();">' . |
| 279 |
|
Display::return_icon('delete.png', get_lang('DeleteAll'), '', ICON_SIZE_SMALL) . '</a>'; |
| 280 |
|
} |
| 281 |
|
} |
| 282 |
|
|
| 283 |
|
return $modify_icons; |
|
@@ 317-321 (lines=5) @@
|
| 314 |
|
Display::return_icon('history.png', get_lang('GradebookQualifyLog'), '', ICON_SIZE_SMALL) . '</a>'; |
| 315 |
|
} |
| 316 |
|
|
| 317 |
|
if ($is_locked && !api_is_platform_admin()) { |
| 318 |
|
$modify_icons .= ' ' . Display::return_icon('delete_na.png', get_lang('Delete'), '', ICON_SIZE_SMALL); |
| 319 |
|
} else { |
| 320 |
|
$modify_icons .= ' <a href="' . api_get_self() . '?deleteeval=' . $eval->get_id() . '&selectcat=' . $selectcat . ' &cidReq=' . $eval->get_course_code() . '&id_session='.$eval->getSessionId(). '" onclick="return confirmation();">' . Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL) . '</a>'; |
| 321 |
|
} |
| 322 |
|
return $modify_icons; |
| 323 |
|
} |
| 324 |
|
} |
|
@@ 360-365 (lines=6) @@
|
| 357 |
|
|
| 358 |
|
//If a work is added in a gradebook you can only delete the link in the work tool |
| 359 |
|
|
| 360 |
|
if ($is_locked && !api_is_platform_admin()) { |
| 361 |
|
$modify_icons .= ' ' . Display::return_icon('delete_na.png', get_lang('Delete'), '', ICON_SIZE_SMALL); |
| 362 |
|
} else { |
| 363 |
|
$modify_icons .= ' <a href="' . api_get_self() . '?deletelink=' . $link->get_id() . '&selectcat=' . $selectcat . ' &cidReq=' . $link->get_course_code() . '&id_session='.$link->get_session_id(). '" onclick="return confirmation();">' . |
| 364 |
|
Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL) . '</a>'; |
| 365 |
|
} |
| 366 |
|
return $modify_icons; |
| 367 |
|
} |
| 368 |
|
} |