diff --git a/main/template/default/learnpath/impress.html.twig b/main/template/default/learnpath/impress.html.twig index 8dcd49e6f9..24428f1d5e 100644 --- a/main/template/default/learnpath/impress.html.twig +++ b/main/template/default/learnpath/impress.html.twig @@ -11,14 +11,14 @@
Use a spacebar or arrow keys to navigate
- \ No newline at end of file diff --git a/main/template/default/learnpath/list.html.twig b/main/template/default/learnpath/list.html.twig index 673bcf5587..9ce5801951 100644 --- a/main/template/default/learnpath/list.html.twig +++ b/main/template/default/learnpath/list.html.twig @@ -7,410 +7,483 @@ } } - -{{ introduction_section }} - {% set configuration = 'lp_category_accordion'|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 %} + {% if lp_data.lp_list %} +
---|
{{ "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 %} - -{{ "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 }} + | |||||||
+ {{ 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.end_time }} - | -- {{ row.dsp_progress }} - | - {% else %} - {% if not is_invitee %}- {{ row.dsp_progress }} + {{ 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 }} + {{ row.action_update_scorm }} + {{ row.action_export_to_course_build }} | - {% 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 }} - | -
{{ "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 %} +
---|
{{ "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 %} +{{ "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 }} - | -
{{ "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 == 1 %} + {% if lp_data.category_is_published == 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 not _c.session_id %} + +- {{ 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 }} + {{ row.action_update_scorm }} + | +
{{ 'FirstName'|get_lang }} | -{{ 'LastName'|get_lang }} | - {% if show_email %} -{{ 'Email'|get_lang }} | - {% endif %} -{{ 'ScormTime'|get_lang }} | -{{ 'Progress'|get_lang }} | -{{ 'ScormScore'|get_lang }} | -{{ 'LastConnection'|get_lang }} | - {% if not export %} +|
---|---|---|---|---|---|---|---|
{{ 'FirstName'|get_lang }} | +{{ 'LastName'|get_lang }} | + {% if show_email %} +{{ 'Email'|get_lang }} | + {% endif %} +{{ 'ScormTime'|get_lang }} | +{{ 'Progress'|get_lang }} | +{{ 'ScormScore'|get_lang }} | +{{ 'LastConnection'|get_lang }} | + {% if not export %}{{ 'Actions'|get_lang }} | - {% endif %} -
{{ user.first_name }} | -{{ user.last_name }} | - {% if show_email %} -{{ user.email }} | - {% endif %} -{{ user.lp_time }} | -{{ user.lp_progress }} | -{{ user.lp_score }} | -{{ user.lp_last_connection }} | - {% if not export %} + {% for user in user_list %} +|
{{ user.first_name }} | +{{ user.last_name }} | + {% if show_email %} +{{ user.email }} | + {% endif %} +{{ user.lp_time }} | +{{ user.lp_progress }} | +{{ user.lp_score }} | +{{ user.lp_last_connection }} | + {% if not export %}- {% endif %} - |