diff --git a/app/Resources/public/css/base.css b/app/Resources/public/css/base.css index 09012f2c44..88c7487569 100644 --- a/app/Resources/public/css/base.css +++ b/app/Resources/public/css/base.css @@ -4138,6 +4138,27 @@ ul.holder li.bit-box{ #thematic .arrow.collapsed{ background: url("../../main/img/icons/22/arrow-down-collapse.png") no-repeat 99% center; } +.thematic .toolbar-actions{ + height: 30px; + display: block; +} +.thematic .thematic-advance{ + margin-top: 10px; + display: inline-block; +} +.thematic .score-progress{ + background-color: #0099FF; + border: 1px solid #0099FF; + color: #FFF; + padding: 12px; + text-transform: uppercase; + margin-bottom: 10px; + border-radius: 5px; +} +.thematic .score-progress h3{ + margin: 0; + padding: 0; +} .question_options .exercise-unique-answer-image .radio{ padding-left: 10px; margin-left: 0px; diff --git a/main/course_progress/index.php b/main/course_progress/index.php index 1899bb52d9..7c933a0d88 100755 --- a/main/course_progress/index.php +++ b/main/course_progress/index.php @@ -81,6 +81,7 @@ if (!empty($thematic_id)) { $thematic_data = $thematic->get_thematic_list($thematic_id); } + // get default thematic plan title $default_thematic_plan_title = $thematic->get_default_thematic_plan_title(); diff --git a/main/course_progress/thematic.php b/main/course_progress/thematic.php index 635984e6f1..f37b706177 100755 --- a/main/course_progress/thematic.php +++ b/main/course_progress/thematic.php @@ -16,34 +16,37 @@ $url_token = "&sec_token=".$token; $user_info = api_get_user_info(); $params = '&'.api_get_cidreq(); -if (api_is_allowed_to_edit(null, true)) { - echo '
'.get_lang('Thematic').' | '.get_lang('ThematicPlan').' | '.get_lang('ThematicAdvance').' | |||
---|---|---|---|---|---|
';
- //if (api_is_allowed_to_edit(null, true) && api_get_session_id() == $thematic['session_id']) {
- if (api_is_allowed_to_edit(null, true)) {
- echo ' '; - } - if (empty($thematic_plan_div[$thematic['id']])) { - echo Display::div('', array('id' => "thematic_plan_".$thematic['id'])); + $list['thematic_plan'] = null; } else { - echo $thematic_plan_div[$thematic['id']]; + $list['thematic_plan'] = $thematic_plan_div[$thematic['id']]; } - echo ' | ';
-
- // Display 3rd column - thematic advance data
- echo '';
-
- //if (api_is_allowed_to_edit(null, true) && api_get_session_id() == $thematic['session_id']) {
- if (api_is_allowed_to_edit(null, true)) {
- echo '';
- }
-
- //if (api_is_allowed_to_edit(null, true) && api_get_session_id() == $thematic['session_id']) {
- if (!empty($thematic_advance_data[$thematic['id']])) {
- echo '
'.get_lang('ThereIsNoAThematicAdvance').' ';
- }
- echo ' | ';
- echo '
{{ 'Thematic' | get_lang }} | +{{ 'ThematicPlan' | get_lang }} | +{{ 'ThematicAdvance' | get_lang }} | +||
---|---|---|---|---|
+ {% if session_star is empty %}
+ {{ item.title }}+ {% else %} +{{ item.title }} {{ session_star }}+ {% endif %} + {{ item.content }} +
+ {{ item.toolbar }}
+
+ |
+
+ {% if tutor %}
+
+
+
+
+
+ {% endif %}
+
+ {% if item.thematic_plan is empty %}
+
+ {{ 'StillDoNotHaveAThematicPlan' | get_lang }} + {% else %} + {% for subitem in item.thematic_plan %} +{{ subitem.title }}+{{ subitem.description }} + {% endfor %} + {% endif %} + |
+
+ {% if tutor %}
+
+
+
+
+
+ {% endif %}
+
+
+
|
+