|
|
|
@ -38,12 +38,12 @@ |
|
|
|
|
|
|
|
|
|
{% macro tree(item) %} |
|
|
|
|
{% import _self as self %} |
|
|
|
|
<div id="item_{{ item.id }}" |
|
|
|
|
<div id="toc_{{ item.id }}" |
|
|
|
|
class="panel panel-default |
|
|
|
|
{{ item.parent_id ? 'child_item':'root_item' }} |
|
|
|
|
lp_item_type_{{ item.type|replace({' ': '_'}) }} |
|
|
|
|
{{ item.status_css_class_name }} |
|
|
|
|
{{ item.is_current ? 'current_item' : '' }} |
|
|
|
|
{{ item.is_current ? 'current_item scorm_highlight' : '' }} |
|
|
|
|
{{ item.is_parent_of_current ? 'parent_of_current_item' : '' }} |
|
|
|
|
{{ item.is_chapter ? 'chapter' : '' }} |
|
|
|
|
" |
|
|
|
@ -55,7 +55,7 @@ |
|
|
|
|
<a class="item-header" role="button" |
|
|
|
|
data-toggle="collapse" data-parent="#toc_{{ item.parent_id }}" |
|
|
|
|
href="#toc_{{ item.id }}" |
|
|
|
|
aria-expanded="true" aria-controls="toc_{{ item.id }}"> |
|
|
|
|
aria-expanded="true" aria-controls="tocchildren_{{ item.id }}"> |
|
|
|
|
{{ item.title }} |
|
|
|
|
</a> |
|
|
|
|
{% else %} |
|
|
|
@ -68,7 +68,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{% if item.children|length %} |
|
|
|
|
<div id="toc_{{ item.id }}" |
|
|
|
|
<div id="tocchildren_{{ item.id }}" |
|
|
|
|
class="panel-collapse collapse {{ item.is_parent_of_current ? 'in' : '' }}" |
|
|
|
|
role="tabpanel" |
|
|
|
|
aria-labelledby="heading_item_{{item.id}}"> |
|
|
|
@ -83,7 +83,7 @@ |
|
|
|
|
{% endmacro %} |
|
|
|
|
|
|
|
|
|
{% from _self import tree %} |
|
|
|
|
<div id="toc_" class="panel-group" role="tablist" aria-multiselectable="true"> |
|
|
|
|
<div id="tocchildren_" class="panel-group" role="tablist" aria-multiselectable="true"> |
|
|
|
|
{% for item in data_panel %} |
|
|
|
|
{{ tree(item) }} |
|
|
|
|
{% endfor %} |
|
|
|
|