diff --git a/app/Resources/public/css/base.css b/app/Resources/public/css/base.css index e70870d7ce..8afd5e7610 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-accordion .panel-heading .panel-title{ + width: 100%; + display: inline-block; +} +.lp-accordion .panel-heading .panel-title a{ + width: 100%; + display: block; +} +.lp-accordion .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/install/configuration.dist.php b/main/install/configuration.dist.php index 214605bc9b..711e66b5c2 100755 --- a/main/install/configuration.dist.php +++ b/main/install/configuration.dist.php @@ -394,7 +394,8 @@ $_configuration['agenda_legend'] = [ //$_configuration['tracking_skip_generic_data'] = false; // Show question feedback (requires DB change: "ALTER TABLE c_quiz_question ADD COLUMN feedback text;") //$_configuration['allow_quiz_question_feedback'] = false; - +// Show view accordion lp_category +//$_configuration['lp_category_accordion'] = false; // HTTP headers security // This section relates to options to increase the security of your Chamilo // portal against attacks specifically focused on HTTP headers vulnerabilities diff --git a/main/template/default/learnpath/list.tpl b/main/template/default/learnpath/list.tpl index cfa5872e53..d17fcbcb8d 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_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 %} +{{ "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 }} + | +
| {{ "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 }} + | +