commit
36cee54ba4
@ -1,193 +0,0 @@ |
||||
<!-- view classic list special course --> |
||||
<div class="classic-courses"> |
||||
{% for item in special_courses %} |
||||
<div class="panel panel-default"> |
||||
<div class="panel-body"> |
||||
<div class="row"> |
||||
<div class="col-md-2"> |
||||
<a class="thumbnail"> |
||||
{% if item.thumbnails != '' %} |
||||
<img src="{{ item.thumbnails }}" title="{{ item.title }}" alt="{{ item.title }}"/> |
||||
{% else %} |
||||
{{ 'blackboard.png' | img(48, item.title ) }} |
||||
{% endif %} |
||||
</a> |
||||
</div> |
||||
<div class="col-md-10"> |
||||
{% if item.edit_actions != '' %} |
||||
<div class="pull-right"> |
||||
{% 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 %} |
||||
<h4 class="course-items-title"> |
||||
{% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %} |
||||
{{ item.title }} {{ item.code_course }} |
||||
{% else %} |
||||
<a href="{{ item.link }}"> |
||||
{{ item.title }} {{ item.code_course }} |
||||
</a> |
||||
{{ item.notifications }} |
||||
{{ 'klipper.png' | img(22, 'CourseAutoRegister'|get_lang ) }} |
||||
{% endif %} |
||||
</h4> |
||||
<div class="course-items-session"> |
||||
{{ 'teacher.png' | img(16, 'Professor'|get_lang ) }} |
||||
<ul class="teachers"> |
||||
{% for teacher in item.teachers %} |
||||
<li> |
||||
{% set counter = counter + 1 %} |
||||
{% if counter > 1 %} | {% endif %} |
||||
<a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}"> |
||||
{{ teacher.firstname }} {{ teacher.lastname }} |
||||
</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
<!-- view classic list course --> |
||||
<div class="classic-courses"> |
||||
<!-- courses in category --> |
||||
{% for category in courses.in_category %} |
||||
<div class="panel panel-default"> |
||||
<div id="category-{{ category.id_category }}" class="panel-heading"> |
||||
{{ category.title_category }} |
||||
</div> |
||||
<div class="panel-body"> |
||||
{% for item in category.courses %} |
||||
<div class="row"> |
||||
<div class="col-md-2"> |
||||
<a class="thumbnail"> |
||||
{% if item.thumbnails != '' %} |
||||
<img src="{{ item.thumbnails }}" title="{{ item.title }}" alt="{{ item.title }}"/> |
||||
{% else %} |
||||
{{ 'blackboard.png' | img(48, item.title ) }} |
||||
{% endif %} |
||||
</a> |
||||
</div> |
||||
<div class="col-md-10"> |
||||
{% if item.edit_actions != '' %} |
||||
<div class="pull-right"> |
||||
{% 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 %} |
||||
<h4 class="course-items-title"> |
||||
{% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %} |
||||
{{ item.title }} {{ item.code_course }} |
||||
{% else %} |
||||
<a href="{{ item.link }}"> |
||||
{{ item.title }} {{ item.code_course }} |
||||
</a> |
||||
{{ item.notifications }} |
||||
{% endif %} |
||||
</h4> |
||||
<div class="course-items-session"> |
||||
{{ 'teacher.png' | img(16, 'Professor'|get_lang ) }} |
||||
<ul class="teachers"> |
||||
{% for teacher in item.teachers %} |
||||
<li> |
||||
{% set counter = counter + 1 %} |
||||
{% if counter > 1 %} | {% endif %} |
||||
<a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}"> |
||||
{{ teacher.firstname }} {{ teacher.lastname }} |
||||
</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
<!-- end courses in category --> |
||||
<!-- courses with out categories --> |
||||
{% for item in courses.not_category %} |
||||
<div class="panel panel-default"> |
||||
<div class="panel-body"> |
||||
<div class="row"> |
||||
<div class="col-md-2"> |
||||
<a class="thumbnail"> |
||||
{% if item.thumbnails != '' %} |
||||
<img src="{{ item.thumbnails }}" title="{{ item.title }}" alt="{{ item.title }}"/> |
||||
{% else %} |
||||
{{ 'blackboard.png' | img(48, item.title ) }} |
||||
{% endif %} |
||||
</a> |
||||
</div> |
||||
<div class="col-md-10"> |
||||
{% if item.edit_actions != '' %} |
||||
<div class="pull-right"> |
||||
{% 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 %} |
||||
<h4 class="course-items-title"> |
||||
{% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %} |
||||
{{ item.title }} {{ item.code_course }} |
||||
{% else %} |
||||
<a href="{{ item.link }}"> |
||||
{{ item.title }} {{ item.code_course }} |
||||
</a> |
||||
{{ item.notifications }} |
||||
{% endif %} |
||||
</h4> |
||||
<div class="course-items-session"> |
||||
{{ 'teacher.png' | img(16, 'Professor'|get_lang ) }} |
||||
<ul class="teachers"> |
||||
{% for teacher in item.teachers %} |
||||
<li> |
||||
{% set counter = counter + 1 %} |
||||
{% if counter > 1 %} | {% endif %} |
||||
<a href="{{ teacher.url }}" class="ajax" data-title="{{ teacher.firstname }} {{ teacher.lastname }}"> |
||||
{{ teacher.firstname }} {{ teacher.lastname }} |
||||
</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
<!-- end courses with out categories --> |
||||
</div> |
||||
@ -0,0 +1,71 @@ |
||||
{% if not categories is empty %} |
||||
<div class="classic-courses"> |
||||
{% for category in categories %} |
||||
<div class="panel panel-default"> |
||||
<div id="category-{{ category.id_category }}" class="panel-heading"> |
||||
{{ category.title_category }} |
||||
</div> |
||||
<div class="panel-body"> |
||||
{% for item in category.courses %} |
||||
<div class="row"> |
||||
<div class="col-md-2"> |
||||
<a class="thumbnail"> |
||||
{% if item.thumbnails != '' %} |
||||
<img src="{{ item.thumbnails }}" title="{{ item.title }}" |
||||
alt="{{ item.title }}"/> |
||||
{% else %} |
||||
{{ 'blackboard.png' | img(48, item.title ) }} |
||||
{% endif %} |
||||
</a> |
||||
</div> |
||||
<div class="col-md-10"> |
||||
{% if item.edit_actions != '' %} |
||||
<div class="pull-right"> |
||||
{% 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 %} |
||||
<h4 class="course-items-title"> |
||||
{% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %} |
||||
{{ item.title }} {{ item.code_course }} |
||||
{% else %} |
||||
<a href="{{ item.link }}"> |
||||
{{ item.title }} {{ item.code_course }} |
||||
</a> |
||||
{{ item.notifications }} |
||||
{% endif %} |
||||
</h4> |
||||
<div class="course-items-session"> |
||||
{{ 'teacher.png' | img(16, 'Professor'|get_lang ) }} |
||||
<ul class="teachers"> |
||||
{% for teacher in item.teachers %} |
||||
<li> |
||||
{% set counter = counter + 1 %} |
||||
{% if counter > 1 %} | {% endif %} |
||||
<a href="{{ teacher.url }}" class="ajax" |
||||
data-title="{{ teacher.firstname }} {{ teacher.lastname }}"> |
||||
{{ teacher.firstname }} {{ teacher.lastname }} |
||||
</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
{% endif %} |
||||
|
||||
@ -0,0 +1,68 @@ |
||||
{% if not courses is empty %} |
||||
<div class="classic-courses"> |
||||
{% for item in courses %} |
||||
<div class="panel panel-default"> |
||||
<div class="panel-body"> |
||||
<div class="row"> |
||||
<div class="col-md-2"> |
||||
<a class="thumbnail"> |
||||
{% if item.thumbnails != '' %} |
||||
<img src="{{ item.thumbnails }}" title="{{ item.title }}" alt="{{ item.title }}"/> |
||||
{% else %} |
||||
{{ 'blackboard.png' | img(48, item.title ) }} |
||||
{% endif %} |
||||
</a> |
||||
</div> |
||||
<div class="col-md-10"> |
||||
{% if item.edit_actions != '' %} |
||||
<div class="pull-right"> |
||||
{% 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 %} |
||||
<h4 class="course-items-title"> |
||||
{% if item.visibility == constant('COURSE_VISIBILITY_CLOSED') %} |
||||
{{ item.title }} {{ item.code_course }} |
||||
{% else %} |
||||
<a href="{{ item.link }}"> |
||||
{{ item.title }} {{ item.code_course }} |
||||
</a> |
||||
{{ item.notifications }} |
||||
|
||||
{% if item.is_special_course %} |
||||
{{ 'klipper.png' | img(22, 'CourseAutoRegister'|get_lang ) }} |
||||
{% endif %} |
||||
{% endif %} |
||||
</h4> |
||||
<div class="course-items-session"> |
||||
{{ 'teacher.png' | img(16, 'Professor'|get_lang ) }} |
||||
<ul class="teachers"> |
||||
{% for teacher in item.teachers %} |
||||
<li> |
||||
{% set counter = counter + 1 %} |
||||
{% if counter > 1 %} | {% endif %} |
||||
<a href="{{ teacher.url }}" class="ajax" |
||||
data-title="{{ teacher.firstname }} {{ teacher.lastname }}"> |
||||
{{ teacher.firstname }} {{ teacher.lastname }} |
||||
</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
{% endif %} |
||||
@ -1,119 +1,126 @@ |
||||
{% for row in session %} |
||||
<div class="panel panel-default"> |
||||
{% if not row.show_simple_session_info %} |
||||
{% set collapsable = '' %} |
||||
<div class="panel-heading"> |
||||
{% if row.course_list_session_style == 1 %} |
||||
{# Classic #} |
||||
<a href="{{ _p.web_main ~ 'session/index.php?session_id=' ~ row.id }}"> |
||||
<img id="session_img_{{ row.id }}" src="{{ "window_list.png"|icon(32) }}" width="32" height="32" alt="{{ row.title }}" title="{{ row.title }}" /> |
||||
<div class="panel panel-default"> |
||||
{% if not row.show_simple_session_info %} |
||||
{% set collapsable = '' %} |
||||
<div class="panel-heading"> |
||||
{% if row.course_list_session_style == 1 %} |
||||
{# Classic #} |
||||
<a href="{{ _p.web_main ~ 'session/index.php?session_id=' ~ row.id }}"> |
||||
<img id="session_img_{{ row.id }}" src="{{ "window_list.png"|icon(32) }}" width="32" height="32" |
||||
alt="{{ row.title }}" title="{{ row.title }}"/> |
||||
{{ row.title }} |
||||
</a> |
||||
{% elseif row.course_list_session_style == 2 %} |
||||
{# No link #} |
||||
<img id="session_img_{{ row.id }}" src="{{ "window_list.png"|icon(32) }}" width="32" height="32" |
||||
alt="{{ row.title }}" title="{{ row.title }}"/> |
||||
{{ row.title }} |
||||
</a> |
||||
{% elseif row.course_list_session_style == 2 %} |
||||
{# No link #} |
||||
<img id="session_img_{{ row.id }}" src="{{ "window_list.png"|icon(32) }}" width="32" height="32" alt="{{ row.title }}" title="{{ row.title }}" /> |
||||
{{ row.title }} |
||||
{% elseif row.course_list_session_style == 3 %} |
||||
{# Foldable #} |
||||
<a role="button" data-toggle="collapse" data-parent="#page-content" href="#collapse_{{ row.id }}" aria-expanded="false" > |
||||
<img id="session_img_{{ row.id }}" src="{{ "window_list.png"|icon(32) }}" width="32" height="32" alt="{{ row.title }}" title="{{ row.title }}" /> |
||||
{{ row.title }} |
||||
</a> |
||||
{% set collapsable = 'collapse' %} |
||||
{% endif %} |
||||
|
||||
{% if row.show_actions %} |
||||
<div class="pull-right"> |
||||
<a href="{{ _p.web_main ~ "session/resume_session.php?id_session=" ~ row.id }}"> |
||||
<img src="{{ "edit.png"|icon(22) }}" width="22" height="22" alt="{{ "Edit"|get_lang }}" title="{{ "Edit"|get_lang }}" /> |
||||
{% elseif row.course_list_session_style == 3 %} |
||||
{# Foldable #} |
||||
<a role="button" data-toggle="collapse" data-parent="#page-content" href="#collapse_{{ row.id }}" |
||||
aria-expanded="false"> |
||||
<img id="session_img_{{ row.id }}" src="{{ "window_list.png"|icon(32) }}" width="32" height="32" |
||||
alt="{{ row.title }}" title="{{ row.title }}"/> |
||||
{{ row.title }} |
||||
</a> |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
{% endif %} |
||||
{% set collapsable = 'collapse' %} |
||||
{% endif %} |
||||
|
||||
<div class="session panel-body {{ collapsable }}" id="collapse_{{ row.id }}"> |
||||
{% if row.show_simple_session_info %} |
||||
<div class="row"> |
||||
<div class="col-md-7"> |
||||
{% if row.description != '' %} |
||||
{{ row.description }} |
||||
{% if row.show_actions %} |
||||
<div class="pull-right"> |
||||
<a href="{{ _p.web_main ~ "session/resume_session.php?id_session=" ~ row.id }}"> |
||||
<img src="{{ "edit.png"|icon(22) }}" width="22" height="22" alt="{{ "Edit"|get_lang }}" |
||||
title="{{ "Edit"|get_lang }}"/> |
||||
</a> |
||||
</div> |
||||
{% endif %} |
||||
<div class="info-session"> |
||||
{% if row.coach_name != '' %} |
||||
<span><i class="fa fa-user" aria-hidden="true"></i> |
||||
{{ row.coach_name }} |
||||
</div> |
||||
{% endif %} |
||||
|
||||
<div class="session panel-body {{ collapsable }}" id="collapse_{{ row.id }}"> |
||||
{% if row.show_simple_session_info %} |
||||
<div class="row"> |
||||
<div class="col-md-7"> |
||||
{% 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><i class="fa fa-calendar" aria-hidden="true"></i> |
||||
{{ row.date }} |
||||
{% endif %} |
||||
<span><i class="fa fa-calendar" aria-hidden="true"></i> |
||||
{{ row.date }} |
||||
</span> |
||||
</div> |
||||
</div> |
||||
|
||||
{% if row.coaches %} |
||||
<h5 class="teacher-name">{{ "teacher.png"|icon(16) ~ row.coaches }}</h5> |
||||
{% endif %} |
||||
</div> |
||||
{% if row.coaches %} |
||||
<h5 class="teacher-name">{{ "teacher.png"|icon(16) ~ row.coaches }}</h5> |
||||
{% endif %} |
||||
</div> |
||||
|
||||
{% if row.show_actions %} |
||||
<div class="col-md-5 text-right"> |
||||
<a href="{{ _p.web_main ~ "session/resume_session.php?id_session=" ~ row.id }}"> |
||||
<img src="{{ "edit.png"|icon(22) }}" width="22" height="22" alt="{{ "Edit"|get_lang }}" title="{{ "Edit"|get_lang }}"> |
||||
</a> |
||||
{% if row.show_actions %} |
||||
<div class="col-md-5 text-right"> |
||||
<a href="{{ _p.web_main ~ "session/resume_session.php?id_session=" ~ row.id }}"> |
||||
<img src="{{ "edit.png"|icon(22) }}" width="22" height="22" alt="{{ "Edit"|get_lang }}" |
||||
title="{{ "Edit"|get_lang }}"> |
||||
</a> |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
{% else %} |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
{% 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 }} |
||||
{% else %} |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
{% 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><i class="fa fa-calendar" aria-hidden="true"></i> |
||||
{{ row.date }} |
||||
{% endif %} |
||||
<span><i class="fa fa-calendar" aria-hidden="true"></i> |
||||
{{ row.date }} |
||||
</span> |
||||
</div> |
||||
<div class="sessions-items"> |
||||
{% for item in row.courses %} |
||||
<div class="courses"> |
||||
<div class="row"> |
||||
<div class="col-md-2"> |
||||
{% if item.link %} |
||||
<a href="{{ item.link }}" class="thumbnail"> |
||||
<img class="img-responsive" src="{{ item.icon }}"> |
||||
</a> |
||||
{% else %} |
||||
{{ 'blackboard.png' | img(48, item.title ) }} |
||||
{% endif %} |
||||
</div> |
||||
<div class="col-md-10"> |
||||
<h4>{{ item.title }}</h4> |
||||
<div class="teachers"> |
||||
{% if item.teachers|length > 0 %} |
||||
<img src="{{ 'teacher.png'|icon(16) }}" width="16" height="16"> |
||||
{% for coach in item.teachers %} |
||||
{{ loop.index > 1 ? ' | ' }} |
||||
<a href="{{ _p.web_ajax ~ 'user_manager.ajax.php?' ~ {'a': 'get_user_popup', 'user_id': coach.user_id}|url_encode() }}" data-title="{{ coach.full_name }}" class="ajax"> |
||||
{{ coach.firstname }}, |
||||
{{ coach.lastname }} |
||||
</a> |
||||
{% endfor %} |
||||
{% endif %} |
||||
</div> |
||||
<div class="sessions-items"> |
||||
{% for item in row.courses %} |
||||
<div class="courses"> |
||||
<div class="row"> |
||||
<div class="col-md-2"> |
||||
{% if item.link %} |
||||
<a href="{{ item.link }}" class="thumbnail"> |
||||
<img class="img-responsive" src="{{ item.icon }}"> |
||||
</a> |
||||
{% else %} |
||||
{{ 'blackboard.png' | img(48, item.title ) }} |
||||
{% endif %} |
||||
</div> |
||||
<div class="col-md-10"> |
||||
<h4>{{ item.title }}</h4> |
||||
<div class="teachers"> |
||||
{% if item.teachers|length > 0 %} |
||||
<img src="{{ 'teacher.png'|icon(16) }}" width="16" height="16"> |
||||
{% for coach in item.teachers %} |
||||
{{ loop.index > 1 ? ' | ' }} |
||||
<a href="{{ _p.web_ajax ~ 'user_manager.ajax.php?' ~ {'a': 'get_user_popup', 'user_id': coach.user_id}|url_encode() }}" |
||||
data-title="{{ coach.full_name }}" class="ajax"> |
||||
{{ coach.firstname }}, |
||||
{{ coach.lastname }} |
||||
</a> |
||||
{% endfor %} |
||||
{% endif %} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
@ -1,204 +0,0 @@ |
||||
<!-- new view course special --> |
||||
<div class="grid-courses"> |
||||
<div class="row"> |
||||
{% for item in special_courses %} |
||||
<div class="col-xs-12 col-sm-6 col-md-4"> |
||||
<div class="items"> |
||||
<div class="image"> |
||||
<div class="pin">{{ item.icon }}</div> |
||||
<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> |
||||
</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> |
||||
<!-- new view course list --> |
||||
<div class="grid-courses"> |
||||
<!-- courses in category --> |
||||
{% for category in courses.in_category %} |
||||
{% set nameCategory = category.title_category %} |
||||
{% set idCategory = category.id_category %} |
||||
<div id="category_{{ idCategory }}" class="panel panel-default"> |
||||
<div class="panel-heading"> |
||||
{{ nameCategory }} |
||||
</div> |
||||
<div class="panel-body"> |
||||
<div class="row"> |
||||
{% for item in category.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> |
||||
</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> |
||||
{% endfor %} |
||||
<!-- end courses in category --> |
||||
<div class="row"> |
||||
{% for item in courses.not_category %} |
||||
<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> |
||||
</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> |
||||
|
||||
@ -0,0 +1,76 @@ |
||||
<div class="grid-courses"> |
||||
{% for category in courses.in_category %} |
||||
{% set nameCategory = category.title_category %} |
||||
{% set idCategory = category.id_category %} |
||||
<div id="category_{{ idCategory }}" class="panel panel-default"> |
||||
<div class="panel-heading"> |
||||
{{ nameCategory }} |
||||
</div> |
||||
<div class="panel-body"> |
||||
<div class="row"> |
||||
{% for item in category.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> |
||||
</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> |
||||
{% endfor %} |
||||
</div> |
||||
@ -0,0 +1,71 @@ |
||||
{% if not courses is empty %} |
||||
<div class="grid-courses"> |
||||
<div class="row"> |
||||
{% for item in courses %} |
||||
<div class="col-xs-12 col-sm-6 col-md-4"> |
||||
<div class="items"> |
||||
<div class="image"> |
||||
{% if item.is_special_course %} |
||||
<div class="pin">{{ item.icon }}</div> |
||||
{% endif %} |
||||
|
||||
<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> |
||||
</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> |
||||
{% endif %} |
||||
@ -1,94 +1,97 @@ |
||||
{% 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 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> |
||||
{% 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> |
||||
<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> |
||||
<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> |
||||
<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> |
||||
</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> |
||||
{% 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> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
|
||||
Loading…
Reference in new issue