|
|
|
|
@ -11,140 +11,160 @@ |
|
|
|
|
{{ introduction_section }} |
|
|
|
|
|
|
|
|
|
{% for lp_data in data %} |
|
|
|
|
{% if categories|length > 1 and lp_data.category.id %} |
|
|
|
|
{% if is_allowed_to_edit %} |
|
|
|
|
<h3 class="page-header"> |
|
|
|
|
{{ lp_data.category.getName() }} |
|
|
|
|
{% set show_category = true %} |
|
|
|
|
|
|
|
|
|
{% if lp_data.category.getId() > 0 %} |
|
|
|
|
{% if not _c.session_id %} |
|
|
|
|
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Edit"|get_lang }}"> |
|
|
|
|
<img src="{{ "edit.png"|icon }}" alt="{{ "Edit"|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% if filtered_category and filtered_category != lp_data.category.id %} |
|
|
|
|
{% set show_category = false %} |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_users_to_category&id=' ~ lp_data.category.getId() }}" title="{{ "AddUser"|get_lang }}"> |
|
|
|
|
<img src="{{ "user.png"|icon }}" alt="{{ "AddUser"|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% if show_category %} |
|
|
|
|
{% if categories|length > 1 and lp_data.category.id %} |
|
|
|
|
{% if is_allowed_to_edit %} |
|
|
|
|
<h3 class="page-header"> |
|
|
|
|
{{ lp_data.category.getName() }} |
|
|
|
|
|
|
|
|
|
{% if loop.index0 == 1 %} |
|
|
|
|
<a href="#"> |
|
|
|
|
<img src="{{ "up_na.png"|icon }}" alt="{{ "Move"|get_lang }}"> |
|
|
|
|
{% if lp_data.category.getId() > 0 %} |
|
|
|
|
{% if not _c.session_id %} |
|
|
|
|
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Edit"|get_lang }}"> |
|
|
|
|
<img src="{{ "edit.png"|icon }}" alt="{{ "Edit"|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% else %} |
|
|
|
|
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=move_up_category&id=' ~ lp_data.category.getId() }}" title="{{ "Move"|get_lang }}"> |
|
|
|
|
<img src="{{ "up.png"|icon }}" alt="{{ "Move"|get_lang }}"> |
|
|
|
|
|
|
|
|
|
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_users_to_category&id=' ~ lp_data.category.getId() }}" title="{{ "AddUser"|get_lang }}"> |
|
|
|
|
<img src="{{ "user.png"|icon }}" alt="{{ "AddUser"|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
{% if loop.index0 == 1 %} |
|
|
|
|
<a href="#"> |
|
|
|
|
<img src="{{ "up_na.png"|icon }}" alt="{{ "Move"|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% else %} |
|
|
|
|
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=move_up_category&id=' ~ lp_data.category.getId() }}" title="{{ "Move"|get_lang }}"> |
|
|
|
|
<img src="{{ "up.png"|icon }}" alt="{{ "Move"|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if (data|length - 1) == loop.index0 %} |
|
|
|
|
<a href="#"> |
|
|
|
|
<img src="{{ "down_na.png"|icon }}" alt="{{ "Move"|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% else %} |
|
|
|
|
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=move_down_category&id=' ~ lp_data.category.getId() }}" title="{{ "Move"|get_lang }}"> |
|
|
|
|
<img src="{{ "down.png"|icon }}" alt="{{ "Move"|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if (data|length - 1) == loop.index0 %} |
|
|
|
|
<a href="#"> |
|
|
|
|
<img src="{{ "down_na.png"|icon }}" alt="{{ "Move"|get_lang }}"> |
|
|
|
|
{% if lp_data.category_visibility == 0 %} |
|
|
|
|
<a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.id, 'new_status':1}|url_encode }}" |
|
|
|
|
title="{{ 'Show'|get_lang }}"> |
|
|
|
|
<img src="{{ 'invisible.png'|icon }}" alt="{{ 'Show'|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% else %} |
|
|
|
|
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=move_down_category&id=' ~ lp_data.category.getId() }}" title="{{ "Move"|get_lang }}"> |
|
|
|
|
<img src="{{ "down.png"|icon }}" alt="{{ "Move"|get_lang }}"> |
|
|
|
|
<a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.id, 'new_status':0}|url_encode }}" |
|
|
|
|
title="{{ 'Hide'|get_lang }}"> |
|
|
|
|
<img src="{{ 'visible.png'|icon }}" alt="{{ 'Hide'|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if lp_data.category_visibility == 0 %} |
|
|
|
|
<a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.id, 'new_status':1}|url_encode }}" |
|
|
|
|
title="{{ 'Show'|get_lang }}"> |
|
|
|
|
<img src="{{ 'invisible.png'|icon }}" alt="{{ 'Show'|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% else %} |
|
|
|
|
<a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.id, 'new_status':0}|url_encode }}" |
|
|
|
|
title="{{ 'Hide'|get_lang }}"> |
|
|
|
|
<img src="{{ 'visible.png'|icon }}" alt="{{ 'Hide'|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% endif %} |
|
|
|
|
{% if lp_data.category_is_published == 0 %} |
|
|
|
|
<a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_publish', 'id':lp_data.category.id, 'new_status':1}|url_encode }}" |
|
|
|
|
title="{{ 'LearnpathPublish'|get_lang }}"> |
|
|
|
|
<img src="{{ 'lp_publish_na.png'|icon }}" alt="{{ 'LearnpathPublish'|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% else %} |
|
|
|
|
<a href="lp_controller.php?{{ _p.web_cid_query ~ '&' ~ {'action':'toggle_category_publish', 'id':lp_data.category.id, 'new_status':0}|url_encode }}" |
|
|
|
|
title="{{ 'LearnpathDoNotPublish'|get_lang }}"> |
|
|
|
|
<img src="{{ 'lp_publish.png'|icon }}" alt="{{ 'Hide'|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if not _c.session_id %} |
|
|
|
|
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=delete_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Delete"|get_lang }}"> |
|
|
|
|
<img src="{{ "delete.png"|icon }}" alt="{{ "Delete"|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% if not _c.session_id %} |
|
|
|
|
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=delete_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Delete"|get_lang }}"> |
|
|
|
|
<img src="{{ "delete.png"|icon }}" alt="{{ "Delete"|get_lang }}"> |
|
|
|
|
</a> |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
</h3> |
|
|
|
|
{% elseif lp_data.lp_list is not empty %} |
|
|
|
|
<h3 class="page-header">{{ lp_data.category.getName() }}</h3> |
|
|
|
|
</h3> |
|
|
|
|
{% elseif lp_data.lp_list is not empty %} |
|
|
|
|
<h3 class="page-header">{{ lp_data.category.getName() }}</h3> |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if lp_data.lp_list %} |
|
|
|
|
<div class="table-responsive"> |
|
|
|
|
<table class="table table-hover table-striped"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th>{{ "Title"|get_lang }}</th> |
|
|
|
|
{% if is_allowed_to_edit %} |
|
|
|
|
<th>{{ "PublicationDate"|get_lang }}</th> |
|
|
|
|
<th>{{ "ExpirationDate"|get_lang }}</th> |
|
|
|
|
<th>{{ "Progress"|get_lang }}</th> |
|
|
|
|
<th>{{ "AuthoringOptions"|get_lang }}</th> |
|
|
|
|
{% else %} |
|
|
|
|
{% if not is_invitee %} |
|
|
|
|
<th>{{ "Progress"|get_lang }}</th> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<th>{{ "Actions"|get_lang }}</th> |
|
|
|
|
{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
{% for row in lp_data.lp_list %} |
|
|
|
|
{% if lp_data.lp_list %} |
|
|
|
|
<div class="table-responsive"> |
|
|
|
|
<table class="table table-hover table-striped"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
{{ row.learnpath_icon }} |
|
|
|
|
<a href="{{ row.url_start }}"> |
|
|
|
|
{{ row.title }} |
|
|
|
|
{{ row.session_image }} |
|
|
|
|
{{ row.extra }} |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
<th>{{ "Title"|get_lang }}</th> |
|
|
|
|
{% if is_allowed_to_edit %} |
|
|
|
|
<td> |
|
|
|
|
{% if row.start_time %} |
|
|
|
|
<span class="small">{{ row.start_time }}</span> |
|
|
|
|
{% endif %} |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
<span class="small">{{ row.end_time }}</span> |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
{{ row.dsp_progress }} |
|
|
|
|
</td> |
|
|
|
|
<th>{{ "PublicationDate"|get_lang }}</th> |
|
|
|
|
<th>{{ "ExpirationDate"|get_lang }}</th> |
|
|
|
|
<th>{{ "Progress"|get_lang }}</th> |
|
|
|
|
<th>{{ "AuthoringOptions"|get_lang }}</th> |
|
|
|
|
{% else %} |
|
|
|
|
{% if not is_invitee %} |
|
|
|
|
<th>{{ "Progress"|get_lang }}</th> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<th>{{ "Actions"|get_lang }}</th> |
|
|
|
|
{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
{% for row in lp_data.lp_list %} |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
{{ row.learnpath_icon }} |
|
|
|
|
<a href="{{ row.url_start }}"> |
|
|
|
|
{{ row.title }} |
|
|
|
|
{{ row.session_image }} |
|
|
|
|
{{ row.extra }} |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
{% if is_allowed_to_edit %} |
|
|
|
|
<td> |
|
|
|
|
{% if row.start_time %} |
|
|
|
|
<span class="small">{{ row.start_time }}</span> |
|
|
|
|
{% endif %} |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
<span class="small">{{ row.end_time }}</span> |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
{{ row.dsp_progress }} |
|
|
|
|
</td> |
|
|
|
|
{% else %} |
|
|
|
|
{% if not is_invitee %} |
|
|
|
|
<td> |
|
|
|
|
{{ row.dsp_progress }} |
|
|
|
|
</td> |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
{{ row.action_build }} |
|
|
|
|
{{ row.action_edit }} |
|
|
|
|
{{ row.action_visible }} |
|
|
|
|
{{ row.action_tracking }} |
|
|
|
|
{{ row.action_publish }} |
|
|
|
|
{{ row.action_subscribe_users }} |
|
|
|
|
{{ row.action_serious_game }} |
|
|
|
|
{{ row.action_reinit }} |
|
|
|
|
{{ row.action_default_view }} |
|
|
|
|
{{ row.action_debug }} |
|
|
|
|
{{ row.action_export }} |
|
|
|
|
{{ row.action_copy }} |
|
|
|
|
{{ row.action_auto_launch }} |
|
|
|
|
{{ row.action_pdf }} |
|
|
|
|
{{ row.action_delete }} |
|
|
|
|
{{ row.action_order }} |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
{% endfor %} |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
<td> |
|
|
|
|
{{ row.action_build }} |
|
|
|
|
{{ row.action_edit }} |
|
|
|
|
{{ row.action_visible }} |
|
|
|
|
{{ row.action_tracking }} |
|
|
|
|
{{ row.action_publish }} |
|
|
|
|
{{ row.action_subscribe_users }} |
|
|
|
|
{{ row.action_serious_game }} |
|
|
|
|
{{ row.action_reinit }} |
|
|
|
|
{{ row.action_default_view }} |
|
|
|
|
{{ row.action_debug }} |
|
|
|
|
{{ row.action_export }} |
|
|
|
|
{{ row.action_copy }} |
|
|
|
|
{{ row.action_auto_launch }} |
|
|
|
|
{{ row.action_pdf }} |
|
|
|
|
{{ row.action_delete }} |
|
|
|
|
{{ row.action_order }} |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
{% endfor %} |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
|