parent
c4962ac1e4
commit
99b68ac1d9
@ -1,196 +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,210 +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 %} |
||||
Loading…
Reference in new issue