Actualización
This commit is contained in:
92
main/template/default/gradebook/certificate_report.tpl
Normal file
92
main/template/default/gradebook/certificate_report.tpl
Normal file
@@ -0,0 +1,92 @@
|
||||
<script>
|
||||
$(document).on('ready', function () {
|
||||
$('select#session').on('change', function () {
|
||||
var sessionId = parseInt(this.value, 10),
|
||||
$selectCourse = $('select#course');
|
||||
|
||||
$selectCourse.empty();
|
||||
|
||||
$.get('{{ _p.web_main }}inc/ajax/course.ajax.php', {
|
||||
a: 'display_sessions_courses',
|
||||
session: sessionId
|
||||
}, function (courseList) {
|
||||
$('<option>', {
|
||||
value: 0,
|
||||
text: "{{ 'Select' | get_lang }}"
|
||||
}).appendTo($selectCourse);
|
||||
|
||||
if (courseList.length > 0) {
|
||||
$.each(courseList, function (index, course) {
|
||||
$('<option>', {
|
||||
value: course.id,
|
||||
text: course.name
|
||||
}).appendTo($selectCourse);
|
||||
});
|
||||
}
|
||||
}, 'json');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{{ search_by_session_form }}
|
||||
|
||||
<hr>
|
||||
|
||||
{{ search_form }}
|
||||
|
||||
{% if not certificate_students is empty %}
|
||||
<h2 class="page-header">{{ "GradebookListOfStudentsCertificates" | get_lang }}</h2>
|
||||
{% if not export_all_link is null %}
|
||||
<div class="actions">
|
||||
<a href="#" id="btn-export-all">
|
||||
{{ 'pdf.png'|img(32, 'ExportAllCertificatesToPDF'|get_lang) }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{ export_all_link }}
|
||||
{% endif %}
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'Student' | get_lang }}</th>
|
||||
<th>{{ 'Sesion' | get_lang }}</th>
|
||||
<th>{{ 'Course' | get_lang }}</th>
|
||||
<th>{{ 'Date' | get_lang }}</th>
|
||||
<th>{{ 'Certificate' | get_lang }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ 'Student' | get_lang }}</th>
|
||||
<th>{{ 'Sesion' | get_lang }}</th>
|
||||
<th>{{ 'Course' | get_lang }}</th>
|
||||
<th>{{ 'Date' | get_lang }}</th>
|
||||
<th>{{ 'Certificate' | get_lang }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
{% for student in certificate_students %}
|
||||
<tr>
|
||||
<td>{{ student.fullName }}</td>
|
||||
<td>{{ student.sessionName }}</td>
|
||||
<td>{{ student.courseName }}</td>
|
||||
<td>
|
||||
{% for certificate in student.certificates %}
|
||||
<p>{{ certificate.createdAt }}</p>
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% for certificate in student.certificates %}
|
||||
<a href="{{ _p.web }}certificates/index.php?id={{ certificate.id }}" class="btn btn-default">
|
||||
<em class="fa fa-floppy-o"></em> {{ 'Certificate' | get_lang }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<p class="alert alert-info">{{ 'NoResults' | get_lang }}</p>
|
||||
{% endif %}
|
||||
102
main/template/default/gradebook/custom_certificate.tpl
Normal file
102
main/template/default/gradebook/custom_certificate.tpl
Normal file
@@ -0,0 +1,102 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ 'Certificate' | get_lang }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" bgcolor="#92c647" cellpadding="0" cellspacing="0" align="center" width="80%">
|
||||
<tr>
|
||||
<td bgcolor="#92c647"><img src="{{ _p.web_css_theme }}images/header_top.png" style="display: block;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td bgcolor="#92c647" width=58 height=91>
|
||||
<img src="{{ _p.web_css_theme }}images/lado-b.png" style="display:block;">
|
||||
</td>
|
||||
<td bgcolor="#92c647" width=700 height=91 style="font-family:CourierSans-Light; font-weight: bold; line-height: 47px; color:#FFF; padding-bottom: 10px; font-size: 45px;">
|
||||
{{ 'CertificateHeader' | get_lang }}
|
||||
</td>
|
||||
<td bgcolor="#92c647" width=58 height=91>
|
||||
<img src="{{ _p.web_css_theme }}images/lado-header.png" style="display:block;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="0" width="100%" height=900>
|
||||
<tr>
|
||||
<td bgcolor="#92c647" height=755><img src="{{ _p.web_css_theme }}images/lado-a.png" style="display:block;"></td>
|
||||
<td height=755 style="font-family:CourierSans-Light; line-height: 22px; color:#40ad49; padding: 40px; font-size: 18px;" valign="top">
|
||||
<h3 style="color: #672290; font-size: 24px;">
|
||||
{{ complete_name }}
|
||||
</h3>
|
||||
<p style="font-size: 16px;">
|
||||
{{ 'UserHasParticipateDansDePlatformeXTheContratDateXCertificateDateXTimeX' | get_lang | format(_s.site_name, certificate_generated_date_no_time, terms_validation_date_no_time, time_in_platform_in_hours)}}
|
||||
</p>
|
||||
<br />
|
||||
<p style="font-size: 16px;">{{ 'ThisTrainingHasXHours' | get_lang | format(time_in_platform_in_hours)}}</p><br />
|
||||
<p style="font-size: 16px;">
|
||||
{{ 'TimeSpentInLearningPaths' | get_lang }} : {{ time_spent_in_lps }}
|
||||
</p>
|
||||
<br />
|
||||
<p style="font-size: 16px;">{{ 'TheContentsAreValidated' | get_lang }}:</p>
|
||||
{#{% if sessions %}#}
|
||||
{#<ul style="color: #672290; font-size: 16px;">#}
|
||||
{#{% for session in sessions %}#}
|
||||
{#<li> {{ session.session_name }}</li>#}
|
||||
{#{% endfor %}#}
|
||||
{#</ul>#}
|
||||
{#{% endif %}#}
|
||||
{% if courses %}
|
||||
<ul style="color: #672290; font-size: 16px;">
|
||||
{% for course in courses %}
|
||||
<li>{{ course }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
<br />
|
||||
|
||||
{% if skills %}
|
||||
<h4 style="color: #672290; font-size: 16px;">{{ complete_name }}</h4>
|
||||
<p style="color:#40ad49; font-size: 16px;">{{ 'SkillsValidated' | get_lang }}:</p>
|
||||
<ul style="color: #672290; font-size: 16px;">
|
||||
{% for skill in skills %}
|
||||
<li>{{ skill.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<br />
|
||||
{% endif %}
|
||||
|
||||
<p style="color:#40ad49; font-size: 16px;">Berlin/Paris, {{ 'The' | get_lang }} <span style="font-weight: bold; color: #672290;">{{ certificate_generated_date_no_time }}</span><br />
|
||||
{{ 'ThePlatformTeam' | get_lang }}</p>
|
||||
<br />
|
||||
</td>
|
||||
<td height=755 bgcolor="#92c647">
|
||||
<img src="{{ _p.web_css_theme }}images/lado-b.png" style="display:block;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%" height=91>
|
||||
<tr>
|
||||
<td bgcolor="#92c647" width=58 height=91><img src="{{ _p.web_css_theme }}images/lado-b.png" style="display:block;"></td>
|
||||
<td bgcolor="#92c647" width=500 height=91 style="font-family:CourierSans-Light; line-height: 18px; color:#FFF;">
|
||||
{{ 'CertificateFooter' | get_lang }}
|
||||
</td>
|
||||
<td bgcolor="#92c647" width=245 height=91><img src="{{ _p.web_css_theme }}images/lado-footer.png" style="display:block;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
81
main/template/default/gradebook/my_certificates.tpl
Normal file
81
main/template/default/gradebook/my_certificates.tpl
Normal file
@@ -0,0 +1,81 @@
|
||||
{% if course_list is not empty %}
|
||||
<h2 class="page-header">{{ "Courses"|get_lang }}</h2>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ "Course"|get_lang }}</th>
|
||||
<th class="text-right">{{ "Score"|get_lang }}</th>
|
||||
<th class="text-center">{{ "Date"|get_lang }}</th>
|
||||
<th width="10%" class="text-right"> </th>
|
||||
<th width="10%" class="text-right"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for row in course_list %}
|
||||
<tr>
|
||||
<td>{{ row.course }}</td>
|
||||
<td class="text-right">{{ row.score }}</td>
|
||||
<td class="text-center">{{ row.date }}</td>
|
||||
|
||||
{% if allow_export %}
|
||||
<td class="text-right">
|
||||
<a href="{{ row.pdf }}" target="_blank" class="btn btn-primary btn-block">
|
||||
<i class="fa fa-file-pdf-o" aria-hidden="true"></i>
|
||||
{{ 'DownloadCertificatePdf'|get_lang }}
|
||||
</a>
|
||||
</td>
|
||||
{% endif %}
|
||||
|
||||
<td class="text-right">
|
||||
<a href="{{ row.link }}" target="_blank" class="btn btn-default btn-block">
|
||||
<em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if session_list is not empty %}
|
||||
<h2 class="page-header">{{ "Sessions"|get_lang }}</h2>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ "Session"|get_lang }}</th>
|
||||
<th>{{ "Course"|get_lang }}</th>
|
||||
<th class="text-right">{{ "Score"|get_lang }}</th>
|
||||
<th class="text-center">{{ "Date"|get_lang }}</th>
|
||||
<th width="10%" class="text-right"> </th>
|
||||
<th width="10%" class="text-right"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for row in session_list %}
|
||||
<tr>
|
||||
<td>{{ row.session }}</td>
|
||||
<td>{{ row.course }}</td>
|
||||
<td class="text-right">{{ row.score }}</td>
|
||||
<td class="text-center">{{ row.date }}</td>
|
||||
{% if allow_export %}
|
||||
<td class="text-right">
|
||||
<a href="{{ row.pdf }}" target="_blank" class="btn btn-primary btn-block">
|
||||
<i class="fa fa-file-pdf-o" aria-hidden="true"></i>
|
||||
{{ 'DownloadCertificatePdf'|get_lang }}
|
||||
</a>
|
||||
</td>
|
||||
{% endif %}
|
||||
<td class="text-right">
|
||||
<a href="{{ row.link }}" target="_blank" class="btn btn-default btn-block">
|
||||
<em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
96
main/template/default/gradebook/search.tpl
Normal file
96
main/template/default/gradebook/search.tpl
Normal file
@@ -0,0 +1,96 @@
|
||||
{{ search_form }}
|
||||
|
||||
{% if user_list is not empty %}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ "FirstName"|get_lang }}</th>
|
||||
<th>{{ "LastName"|get_lang }}</th>
|
||||
<th class="text-right"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for user in user_list %}
|
||||
<tr>
|
||||
<td>{{ user.firstname }}</td>
|
||||
<td>{{ user.lastname }}</td>
|
||||
<td class="text-right">
|
||||
<a href="{{ _p.web_main }}gradebook/search.php?id={{ user.id }}" class="btn btn-default">
|
||||
<em class="fa fa-external-link"></em> {{ "Certificates"|get_lang }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if course_list is not empty or session_list is not empty %}
|
||||
<h2>{{ user_info.complete_name }}</h2>
|
||||
|
||||
{% if course_list is not empty %}
|
||||
<h3 class="page-header">{{ "Courses"|get_lang }}</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ "Course"|get_lang }}</th>
|
||||
<th class="text-right">{{ "Score"|get_lang }}</th>
|
||||
<th class="text-center">{{ "Date"|get_lang }}</th>
|
||||
<th class="text-right"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for row in course_list %}
|
||||
<tr>
|
||||
<td>{{ row.course }}</td>
|
||||
<td class="text-right">{{ row.score }}</td>
|
||||
<td class="text-center">{{ row.date }}</td>
|
||||
<td class="text-right">
|
||||
<a href="{{ row.link }}" target="_blank" class="btn btn-default">
|
||||
<em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if session_list is not empty %}
|
||||
<h3 class="page-header">{{ "Sessions"|get_lang }}</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ "Session"|get_lang }}</th>
|
||||
<th>{{ "Course"|get_lang }}</th>
|
||||
<th class="text-right">{{ "Score"|get_lang }}</th>
|
||||
<th class="text-center">{{ "Date"|get_lang }}</th>
|
||||
<th class="text-right"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for row in session_list %}
|
||||
<tr>
|
||||
<td>{{ row.session }}</td>
|
||||
<td>{{ row.course }}</td>
|
||||
<td class="text-right">{{ row.score }}</td>
|
||||
<td class="text-center">{{ row.date }}</td>
|
||||
<td class="text-right">
|
||||
<a href="{{ row.link }}" target="_blank" class="btn btn-default">
|
||||
<em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
69
main/template/default/gradebook/skill_rel_user.tpl
Normal file
69
main/template/default/gradebook/skill_rel_user.tpl
Normal file
@@ -0,0 +1,69 @@
|
||||
<div {{ html_content_extra_class }}>
|
||||
<h3>{{ user.complete_name_with_username }}</h3>
|
||||
<br />
|
||||
<script>
|
||||
$(function() {
|
||||
$(".assign_user_to_skill").on("click", function() {
|
||||
var skillId = $(this).attr('data-skill-id');
|
||||
var link = $(this);
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
async: false,
|
||||
url: "{{ assign_user_url }}&skill_id="+skillId+"&user_id={{ user.id }}&course_id={{ course_id }}&session_id={{ session_id }}",
|
||||
success: function(result) {
|
||||
link.removeClass('btn-danger');
|
||||
link.removeClass('btn-success');
|
||||
if (result == 'danger') {
|
||||
link.addClass('btn-danger');
|
||||
link.html('{{ 'NotYetAchieved' | get_lang }}');
|
||||
} else {
|
||||
link.addClass('btn-success');
|
||||
link.html('{{ 'Achieved' | get_lang }}');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<th>{{ 'Skill' | get_lang }}</th>
|
||||
<th>{{ 'Occurrences' | get_lang }}</th>
|
||||
<th>{{ 'Conclusion' | get_lang }}</th>
|
||||
</tr>
|
||||
|
||||
{% for skill in skills %}
|
||||
<tr>
|
||||
<td>{{ skill.name }}</td>
|
||||
<td>
|
||||
{% for item in items[skill.id] %}
|
||||
{% set status = 'danger' %}
|
||||
{% if item.info.status %}
|
||||
{% set status = 'success' %}
|
||||
{% endif %}
|
||||
<span class="label label-{{ status }}">
|
||||
<a href="{{ item.info.url_activity }}" target="_blank">
|
||||
{{ item.info.name }}
|
||||
</a>
|
||||
</span>
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% set class = 'danger' %}
|
||||
{% set text = 'NotYetAchieved' %}
|
||||
|
||||
{% if conclusion_list[skill.id] %}
|
||||
{% set class = 'success' %}
|
||||
{% set text = 'Achieved' %}
|
||||
{% endif %}
|
||||
|
||||
<a data-skill-id="{{ skill.id }}" href="javascript:void(0);" class="assign_user_to_skill btn btn-{{ class }}">
|
||||
{{ text | get_lang }}
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user