From 8cc8fa051f17336d62878ae7b45f035a93c35ef4 Mon Sep 17 00:00:00 2001 From: Alex Aragon Date: Wed, 15 Jul 2015 15:43:36 -0500 Subject: [PATCH] fix tpl structure my progress student - refs BT#10092 #TMI --- app/Resources/public/css/base.css | 62 ++++++++++++++-- main/inc/lib/tracking.lib.php | 7 +- .../default/gamification/my_progress.tpl | 73 +++++++++++++------ main/template/default/layout/page_body.tpl | 6 +- 4 files changed, 118 insertions(+), 30 deletions(-) diff --git a/app/Resources/public/css/base.css b/app/Resources/public/css/base.css index 16a6dc1135..d130984c17 100644 --- a/app/Resources/public/css/base.css +++ b/app/Resources/public/css/base.css @@ -9,9 +9,7 @@ pre { margin-top:50px !important; } -html,body{ - height: 100%; -} + #page-wrap{ margin: auto; height: auto; @@ -59,7 +57,10 @@ select { padding-top: 10px; margin-top: 5px; } - +.section-page .page-header h3{ + font-size:22px; + margin-top:5px; +} #announcements-slider .left, #announcements-slider .right{ position: absolute; top: 50%; @@ -6204,7 +6205,58 @@ div#chat-remote-video video { margin-left: 5%; text-align: center; } - +.my-progress .profile-user{ + padding:10px; +} +.my-progress .avatar-profile .img-responsive{ + margin:auto; +} +.my-progress .username{ + font-size:20px; + text-align:center; +} +.my-progress .star-progress{ + font-size:22px; +} +.my-progress .star-progress .fa-star{ + color: #e4c200; +} +.my-progress .star-progress .fa-star.in{ + color: #c2c2c2; +} +.my-progress .list-course{ + padding:0; + margin:0; +} +.my-progress .list-course li{ + display:block; + padding-top:5px; + padding-bottom:5px; +} +.my-progress .list-course li a{ + color:#666; +} +.my-progress .list-course li a.active{ + color:#00829C; +} +.my-progress .embed-container { + position: relative; + padding-bottom: 56.25%; + height: 0; + overflow: hidden; +} +.my-progress .embed-container iframe { + position: absolute; + top:0; + left: 0; + width: 100%; + height: 100%; + border:none; +} +.section-status .page-header h2{ + font-size:22px; + margin-top:5px; +} p.bg-primary, p.bg-success, p.bg-info, diff --git a/main/inc/lib/tracking.lib.php b/main/inc/lib/tracking.lib.php index 7182f7055b..c874c71bd1 100755 --- a/main/inc/lib/tracking.lib.php +++ b/main/inc/lib/tracking.lib.php @@ -153,15 +153,17 @@ class Tracking } if ($origin != 'tracking') { + $output .= '
'; $output .= Display::page_header(get_lang('ScormMystatus')); + $output .= '
'; } $actionColumn = null; if ($type == 'classic') { $actionColumn = ' ' . get_lang('Actions') . ''; } - - $output .= ' + $output .= '
'; + $output .= '
'; $output .= "
' . $extend_all_link . ' @@ -1068,6 +1070,7 @@ class Tracking
"; + $output .= ''; if (!empty($export_csv)) { $temp = array( diff --git a/main/template/default/gamification/my_progress.tpl b/main/template/default/gamification/my_progress.tpl index 5a045b9731..21f427e328 100644 --- a/main/template/default/gamification/my_progress.tpl +++ b/main/template/default/gamification/my_progress.tpl @@ -1,30 +1,57 @@ -
+
-
- {{ user_avatar }} -

{{ user.getCompleteName() }}

-

{{ 'Stars'|get_lang ~ ' ' ~ gamification_stars }}

-

{{ 'XPoints'|get_lang|format(gamification_points) }}

-

{{ 'GamificationProgress'|get_lang ~ ' ' ~ gamification_progress }}

-
+
+
+
+ {{ user_avatar }} +
{{ user.getCompleteName() }}
+
{{ 'Stars'|get_lang ~ ' ' ~ gamification_stars }}
+
+ + + + + +
+ + +
+
+ {{ gamification_progress }} Complete (success) +
+
-

{{ 'ShowProgress'|get_lang }}

-
- {% for session in sessions %} - {{ session.getName }} - {% endfor %} +
{{ 'GamificationProgress'|get_lang ~ ' ' ~ gamification_progress }} %
+
+
+
+
+
+ {{ 'ShowProgress'|get_lang }} +
+
+ +
{% if current_session %} - - - {% for course_id, course in session_data %} -

{{ course.title }}

-
- {% for stats_url in course.stats %} +
+
{{ current_session.getName() }}
+
+ {% for course_id, course in session_data %} +

{{ course.title }}

+
+ {% for stats_url in course.stats %} {% set panel_id = course_id ~ '-' ~ loop.index %}
-
+
+ {% endfor %} +
{% endfor %}
- {% endfor %} +
+ + {% endif %}
diff --git a/main/template/default/layout/page_body.tpl b/main/template/default/layout/page_body.tpl index 1fb3a4e1c5..ce5a28f3ca 100755 --- a/main/template/default/layout/page_body.tpl +++ b/main/template/default/layout/page_body.tpl @@ -9,8 +9,10 @@ {# Page header #} {% if header != '' %} -