Don't show options to modify/sort/delete learnpath categories in course session - refs BT#12756

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent 503aadd8d9
commit 2be4112d03
  1. 12
      main/lp/lp_list.php
  2. 2
      main/template/default/learnpath/list.tpl

@ -84,10 +84,14 @@ if ($is_allowed_to_edit) {
}
}
$actionLeft = null;
$actionLeft .= Display::url(
Display::return_icon('new_folder.png', get_lang('AddCategory'), array(), ICON_SIZE_MEDIUM),
api_get_self().'?'.api_get_cidreq().'&action=add_lp_category'
);
if (!$current_session) {
$actionLeft .= Display::url(
Display::return_icon('new_folder.png', get_lang('AddCategory'), array(), ICON_SIZE_MEDIUM),
api_get_self().'?'.api_get_cidreq().'&action=add_lp_category'
);
}
$actionLeft .= Display::url(
Display::return_icon('new_learnpath.png', get_lang('LearnpathAddLearnpath'), '', ICON_SIZE_MEDIUM),
api_get_self().'?'.api_get_cidreq().'&action=add_lp'

@ -16,7 +16,7 @@
<h3 class="page-header">
{{ lp_data.category.getName() }}
{% if lp_data.category.getId() > 0 %}
{% if lp_data.category.getId() > 0 and not _c.session_id %}
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Edit"|get_lang }}">
<img src="{{ "edit.png"|icon }}" alt="{{ "Edit"|get_lang }}">
</a>

Loading…
Cancel
Save