diff --git a/app/Resources/public/css/base.css b/app/Resources/public/css/base.css index e70870d7ce6..185abbe3db5 100644 --- a/app/Resources/public/css/base.css +++ b/app/Resources/public/css/base.css @@ -6239,6 +6239,18 @@ ul#toolnavbox-two li a.btn{ input[type=checkbox]{ margin: 8px 0 0; } +.lp-accordeon .panel-heading .panel-title{ + width: 100%; + display: inline-block; +} +.lp-accordeon .panel-heading .panel-title a{ + width: 100%; + display: block; +} +.lp-accordeon .panel-heading .tools-actions{ + position: relative; + top: -30px; +} /* CSS NEW TOP ******************************************************************************/ /* CSS Responsive */ @media (min-width: 1025px) and (max-width: 1200px) { diff --git a/main/template/default/learnpath/list.tpl b/main/template/default/learnpath/list.tpl index cfa5872e53d..390c2703078 100644 --- a/main/template/default/learnpath/list.tpl +++ b/main/template/default/learnpath/list.tpl @@ -10,15 +10,20 @@ {{ introduction_section }} +{% set configuration = 'lp_category_accordeon'|api_get_configuration_value %} + {% for lp_data in data %} {% set show_category = true %} {% if filtered_category and filtered_category != lp_data.category.id %} {% set show_category = false %} {% endif %} - + {% if show_category %} + {% if configuration == 0 %} + {% if categories|length > 1 and lp_data.category.id %} + {% if is_allowed_to_edit %} {% endif %} + {% endif %} {% if lp_data.lp_list %} @@ -165,7 +171,167 @@ {% endif %} - {% endif %} + + {% else %} + +
+
+ +
+
+ {% if lp_data.lp_list %} +
+ + + + + {% if is_allowed_to_edit %} + + + + + {% else %} + {% if not is_invitee %} + + {% endif %} + + + {% endif %} + + + + {% for row in lp_data.lp_list %} + + + {% if is_allowed_to_edit %} + + + + {% else %} + {% if not is_invitee %} + + {% endif %} + {% endif %} + + + + {% endfor %} + +
{{ "Title"|get_lang }}{{ "PublicationDate"|get_lang }}{{ "ExpirationDate"|get_lang }}{{ "Progress"|get_lang }}{{ "AuthoringOptions"|get_lang }}{{ "Progress"|get_lang }}{{ "Actions"|get_lang }}
+ {{ row.learnpath_icon }} + + {{ row.title }} + {{ row.session_image }} + {{ row.extra }} + + + {% if row.start_time %} + {{ row.start_time }} + {% endif %} + + {{ row.end_time }} + + {{ row.dsp_progress }} + + {{ 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 }} +
+
+ {% endif %} +
+
+
+
+ + {% endif %} + {% endif %} {% endfor %} {% if is_allowed_to_edit and not lp_is_shown %} @@ -178,4 +344,4 @@ -{% endif %} +{% endif %} \ No newline at end of file