You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
6.1 KiB
107 lines
6.1 KiB
{% for row in session %}
|
|
<div id="session-{{ item.id }}" class="session panel panel-default">
|
|
<div class="panel-heading">
|
|
<img id="session_img_{{ row.id }}" src="{{ "window_list.png"|icon(32) }}" width="32" height="32"
|
|
alt="{{ row.title }}" title="{{ row.title }}"/> {{ row.title }}
|
|
|
|
{% if row.edit_actions != '' %}
|
|
<div class="pull-right">
|
|
<a class="btn btn-default btn-sm" href="{{ row.edit_actions }}">
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<div class="panel-body">
|
|
{% if row.description != '' %}
|
|
{{ row.description }}
|
|
{% endif %}
|
|
<div class="info-session">
|
|
{% if row.coach_name != '' %}
|
|
<span><i class="fa fa-user" aria-hidden="true"></i>
|
|
{{ row.coach_name }}
|
|
</span>
|
|
{% endif %}
|
|
</span>
|
|
<span><i class="fa fa-calendar" aria-hidden="true"></i>
|
|
{{ row.date }}
|
|
</span>
|
|
</div>
|
|
<div class="grid-courses">
|
|
<div class="row">
|
|
{% for item in row.courses %}
|
|
<div class="col-xs-12 col-sm-6 col-md-4">
|
|
<div class="items">
|
|
<div class="image">
|
|
<img src="{{ item.image }}" class="img-responsive">
|
|
{% if item.category != '' %}
|
|
<span class="category">{{ item.category }}</span>
|
|
<div class="cribbon"></div>
|
|
{% endif %}
|
|
<div class="black-shadow">
|
|
<div class="author-card">
|
|
{% for teacher in item.teachers %}
|
|
{% set counter = counter + 1 %}
|
|
{% if counter <= 3 %}
|
|
<a href="{{ teacher.url }}" class="ajax"
|
|
data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
|
|
<img src="{{ teacher.avatar }}"/>
|
|
</a>
|
|
<div class="teachers-details">
|
|
<h5>
|
|
<a href="{{ teacher.url }}" class="ajax"
|
|
data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
|
|
{{ teacher.firstname }} {{ teacher.lastname }}
|
|
</a>
|
|
</h5>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% if item.student_info %}
|
|
<div class="course-student-info">
|
|
<div class="student-info">
|
|
{{ "StudentCourseProgress" | get_lang | format(item.student_info.progress) }}
|
|
{{ "StudentCourseScore" | get_lang | format(item.student_info.score) }}
|
|
{{ "StudentCourseCertificate" | get_lang | format(item.student_info.certificate) }}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
{% if item.edit_actions != '' %}
|
|
<div class="admin-actions">
|
|
{% if item.document == '' %}
|
|
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
|
</a>
|
|
{% else %}
|
|
<div class="btn-group" role="group">
|
|
<a class="btn btn-default btn-sm" href="{{ item.edit_actions }}">
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
|
</a>
|
|
{{ item.document }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<div class="description">
|
|
<h4 class="title">
|
|
{% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %}
|
|
{{ item.title }} {{ item.code_course }}
|
|
{% else %}
|
|
<a href="{{ item.link }}">{{ item.title }} {{ item.code_course }}</a>
|
|
{% endif %}
|
|
</h4>
|
|
<div class="notifications">{{ item.notifications }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
|