123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- {% import '@ChamiloTheme/Macros/box.html.twig' as display %}
- {% autoescape false %}
- {% if title %}
- <h2 class="details-title"><img src="{{ 'course.png'|icon(32) }}"> {{ title }}</h2>
- {% endif %}
- <div class="page-header">
- <h3>{{ user.complete_name }}</h3>
- </div>
- <!-- NO DETAILS -->
- {% if details != true %}
- <div class="no-details">
- {% set user_content %}
- <div class="row">
- <div class="col-md-4">
- <div class="user text-center">
- <div class="avatar">
- <img width="128px" src="{{ user.avatar }}" class="img-responsive">
- </div>
- <div class="name">
- <h3>{{ user.complete_name_link }}</h3>
- <p class="email">{{ user.email }}</p>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- {{ display.reporting_user_details(user) }}
- </div>
- <div class="col-md-4">
- {{ display.card_widget('FirstLoginInPlatform'|get_lang, user.first_connection, 'calendar') }}
- {{ display.card_widget('LatestLoginInPlatform'|get_lang, user.last_connection, 'calendar') }}
- {% if user.legal %}
- {{ display.card_widget('LegalAccepted'|get_lang, user.legal.datetime, 'gavel', user.legal.icon) }}
- {% endif %}
- </div>
- </div>
- {% endset %}
- {{ display.panel('', user_content) }}
- </div>
- <!-- DETAILS -->
- {% else %}
- <div class="details">
- <div class="row">
- <div class="col-md-4">
- {{ display.panel('', display.reporting_user_box(user), '') }}
- </div>
- <div class="col-md-8">
- <div class="row">
- <div class="col-md-8">
- <div class="row">
- <div class="col-md-6">
- <div class="easy-donut">
- <div id="easypiechart-blue" title="{{ 'Progress'|get_lang }}" class="easypiechart"
- data-percent="{{ user.student_progress }}">
- <span class="percent">{{ user.student_progress }}%</span>
- </div>
- <div class="easypiechart-legend">
- {{ 'ScormAndLPProgressTotalAverage'|get_lang }}
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <div class="easy-donut">
- <div id="easypiechart-red" title="{{ 'Score'|get_lang }}" class="easypiechart"
- data-percent="{{ user.student_score }}">
- <span class="percent">{{ user.student_score }} </span>
- </div>
- <div class="easypiechart-legend">
- {{ 'ScormAndLPTestTotalAverage'|get_lang }}
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <div class="card box-widget">
- <div class="card-body">
- <div class="stat-widget-five">
- <i class="fa fa-globe" aria-hidden="true"></i>
- {{ user.tools.links }}
- <div class="box-name">
- {{ 'LinksDetails'|get_lang }}
- </div>
- </div>
- </div>
- </div>
- <div class="card box-widget">
- <div class="card-body">
- <div class="stat-widget-five">
- <i class="fa fa-download" aria-hidden="true"></i>
- {{ user.tools.documents }}
- <div class="box-name">
- {{ 'DocumentsDetails'|get_lang }}
- </div>
- </div>
- </div>
- </div>
- <div class="card box-widget">
- <div class="card-body">
- <div class="stat-widget-five">
- <i class="fa fa-pencil" aria-hidden="true"></i>
- {{ user.tools.tasks }}
- <div class="box-name">
- {{ 'Student_publication'|get_lang }}
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <div class="card box-widget">
- <div class="card-body">
- <div class="stat-widget-five">
- <i class="fa fa-comments-o" aria-hidden="true"></i>
- {{ user.tools.messages }}
- <div class="box-name">
- {{ 'NumberOfPostsForThisUser'|get_lang }}
- </div>
- </div>
- </div>
- </div>
- <div class="card box-widget">
- <div class="card-body">
- <div class="stat-widget-five">
- <i class="fa fa-paper-plane" aria-hidden="true"></i>
- {{ user.tools.upload_documents }}
- <div class="box-name">
- {{ 'UploadedDocuments'|get_lang }}
- </div>
- </div>
- </div>
- </div>
- <div class="card box-widget">
- <div class="card-body">
- <div class="stat-widget-five">
- <i class="fa fa-plug" aria-hidden="true"></i>
- <span class="date" title="{{ user.tools.chat_connection }}">
- {% if user.tools.chat_connection != '' %}
- {{ user.tools.chat_connection }}
- {% else %}
- {{ 'NotRegistered'|get_lang }}
- {% endif %}
- </span>
- <div class="box-name">
- {{ 'ChatLastConnection'|get_lang }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- {{ display.card_widget('FirstLoginInPlatform'|get_lang, user.first_connection, 'calendar') }}
- {{ display.card_widget('LatestLoginInPlatform'|get_lang, user.last_connection, 'calendar') }}
- {% if(user.time_spent_course) %}
- {{ display.card_widget('TimeSpentInTheCourse'|get_lang, user.time_spent_course, 'clock-o') }}
- {% endif %}
- {% if user.legal %}
- {{ display.card_widget('LegalAccepted'|get_lang, user.legal.datetime, 'gavel', user.legal.icon) }}
- {% endif %}
- </div>
- </div>
- </div>
- </div>
- </div>
- {% endif %}
- <script>
- $(function () {
- $('#easypiechart-blue').easyPieChart({
- scaleColor: false,
- barColor: '#30a5ff',
- lineWidth: 8,
- trackColor: '#f2f2f2'
- });
- $('#easypiechart-red').easyPieChart({
- scaleColor: false,
- barColor: '#f9243f',
- lineWidth: 8,
- trackColor: '#f2f2f2'
- });
- });
- </script>
- {% endautoescape %}
|