diff --git a/main/template/default/learnpath/list.tpl b/main/template/default/learnpath/list.tpl index 390c270307..154727d5de 100644 --- a/main/template/default/learnpath/list.tpl +++ b/main/template/default/learnpath/list.tpl @@ -11,7 +11,7 @@ {{ introduction_section }} {% set configuration = 'lp_category_accordeon'|api_get_configuration_value %} - +
| {{ "Title"|get_lang }} | + {% if is_allowed_to_edit %} +{{ "PublicationDate"|get_lang }} | +{{ "ExpirationDate"|get_lang }} | +{{ "Progress"|get_lang }} | +{{ "AuthoringOptions"|get_lang }} | + {% else %} + {% if not is_invitee %} +{{ "Progress"|get_lang }} | + {% endif %} - -{{ "Actions"|get_lang }} | + {% endif %} +
|---|---|---|---|---|---|---|
| + {{ row.learnpath_icon }} + + {{ row.title }} + {{ row.session_image }} + {{ row.extra }} + + | + {% if is_allowed_to_edit %} ++ {% if row.start_time %} + {{ row.start_time }} + {% endif %} + | ++ {{ row.end_time }} + | ++ {{ row.dsp_progress }} + | + {% else %} + {% if not is_invitee %} ++ {{ row.dsp_progress }} + | + {% endif %} + {% endif %} - {% if loop.index0 == 1 %} - -+ {{ row.action_build }} + {{ row.action_edit }} + {{ row.action_visible }} + {{ row.action_tracking }} + {{ row.action_publish }} + {{ row.action_subscribe_users }} + {{ row.action_serious_game }} + {{ row.action_reinit }} + {{ row.action_default_view }} + {{ row.action_debug }} + {{ row.action_export }} + {{ row.action_copy }} + {{ row.action_auto_launch }} + {{ row.action_pdf }} + {{ row.action_delete }} + {{ row.action_order }} + | +
| {{ "Title"|get_lang }} | - {% if is_allowed_to_edit %} -{{ "PublicationDate"|get_lang }} | -{{ "ExpirationDate"|get_lang }} | -{{ "Progress"|get_lang }} | -{{ "AuthoringOptions"|get_lang }} | - {% else %} - {% if not is_invitee %} -{{ "Progress"|get_lang }} | - {% endif %} + {% if lp_data.category_visibility == 0 %} + +{{ "Actions"|get_lang }} | - {% endif %} -
|---|---|---|---|---|---|---|
| - {{ row.learnpath_icon }} - - {{ row.title }} - {{ row.session_image }} - {{ row.extra }} - - | - {% if is_allowed_to_edit %} -- {% if row.start_time %} - {{ row.start_time }} - {% endif %} - | -- {{ row.end_time }} - | -- {{ row.dsp_progress }} - | - {% else %} - {% if not is_invitee %} -- {{ row.dsp_progress }} - | - {% endif %} - {% endif %} + {% if lp_data.category_is_published == 0 %} + +- {{ row.action_build }} - {{ row.action_edit }} - {{ row.action_visible }} - {{ row.action_tracking }} - {{ row.action_publish }} - {{ row.action_subscribe_users }} - {{ row.action_serious_game }} - {{ row.action_reinit }} - {{ row.action_default_view }} - {{ row.action_debug }} - {{ row.action_export }} - {{ row.action_copy }} - {{ row.action_auto_launch }} - {{ row.action_pdf }} - {{ row.action_delete }} - {{ row.action_order }} - | -
| {{ "Title"|get_lang }} | + {% if is_allowed_to_edit %} +{{ "PublicationDate"|get_lang }} | +{{ "ExpirationDate"|get_lang }} | +{{ "Progress"|get_lang }} | +{{ "AuthoringOptions"|get_lang }} | + {% else %} + {% if not is_invitee %} +{{ "Progress"|get_lang }} | + {% endif %} + +{{ "Actions"|get_lang }} | + {% endif %} +
|---|---|---|---|---|---|---|
| + {{ row.learnpath_icon }} + + {{ row.title }} + {{ row.session_image }} + {{ row.extra }} + + | + {% if is_allowed_to_edit %} ++ {% if row.start_time %} + {{ row.start_time }} + {% endif %} + | ++ {{ row.end_time }} + | ++ {{ row.dsp_progress }} + | + {% else %} + {% if not is_invitee %} ++ {{ row.dsp_progress }} + | + {% endif %} + {% endif %} + ++ {{ row.action_build }} + {{ row.action_edit }} + {{ row.action_visible }} + {{ row.action_tracking }} + {{ row.action_publish }} + {{ row.action_subscribe_users }} + {{ row.action_serious_game }} + {{ row.action_reinit }} + {{ row.action_default_view }} + {{ row.action_debug }} + {{ row.action_export }} + {{ row.action_copy }} + {{ row.action_auto_launch }} + {{ row.action_pdf }} + {{ row.action_delete }} + {{ row.action_order }} + | +