After Width: | Height: | Size: 862 B |
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 992 B |
After Width: | Height: | Size: 639 B |
After Width: | Height: | Size: 601 B |
After Width: | Height: | Size: 726 B |
After Width: | Height: | Size: 648 B |
After Width: | Height: | Size: 594 B |
@ -1,13 +1,105 @@ |
|||||||
{% extends template ~ "/layout/layout_1_col.tpl" %} |
{% extends template ~ "/layout/layout_1_col.tpl" %} |
||||||
|
|
||||||
{% block content %} |
{% block content %} |
||||||
{{ data | var_dump }} |
{% set tutor = false | isAllowedToEdit(true) %} |
||||||
<div id="course-progress" class="thematic"> |
<div id="course-progress" class="thematic"> |
||||||
<div class="row"> |
<div class="row"> |
||||||
<div class="col-md-12"> |
<div class="col-md-12"> |
||||||
<div class="score-progress"> |
<div class="score-progress"> |
||||||
<h2>{{ 'Progress' | get_lang }}: <span id="div_result">{{ score_progress }}</span> %</h2> |
<h2>{{ 'Progress' | get_lang }}: <span id="div_result">{{ score_progress }}</span> %</h2> |
||||||
</div> |
</div> |
||||||
|
<div class="table-responsive"> |
||||||
|
<table width="100%" class="table"> |
||||||
|
<tr> |
||||||
|
<th style="width: 25%">{{ 'Thematic' | get_lang }}</th> |
||||||
|
<th style="width: 40%">{{ 'ThematicPlan' | get_lang }}</th> |
||||||
|
<th style="width: 35%">{{ 'ThematicAdvance' | get_lang }}</th> |
||||||
|
</tr> |
||||||
|
|
||||||
|
{% for item in data %} |
||||||
|
<tr> |
||||||
|
<td id="id-thematic-{{ item.id }}"> |
||||||
|
{% if session_star is empty %} |
||||||
|
<h3>{{ item.title }}</h3> |
||||||
|
{% else %} |
||||||
|
<h3>{{ item.title }} {{ session_star }}</h3> |
||||||
|
{% endif %} |
||||||
|
{{ item.content }} |
||||||
|
<div class="btn-group btn-group-sm"> |
||||||
|
{{ item.toolbar }} |
||||||
|
</div> |
||||||
|
</td> |
||||||
|
<td> |
||||||
|
{% if tutor %} |
||||||
|
<div class="pull-right"> |
||||||
|
<a title="{{ 'EditThematicPlan' | get_lang }}" href="index.php?{{ _p.web_cid_query }}&origin=thematic_details&action=thematic_plan_list&thematic_id={{ item.id }}&width=700&height=500'" class="btn btn-default"> |
||||||
|
<i class="fa fa-pencil" aria-hidden="true"></i> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
{% endif %} |
||||||
|
<div class="thematic_plan_{{ item.id }}"> |
||||||
|
{% if item.thematic_plan is empty %} |
||||||
|
<p>{{ 'StillDoNotHaveAThematicPlan' | get_lang }}</p> |
||||||
|
{% else %} |
||||||
|
{% for subitem in item.thematic_plan %} |
||||||
|
<h4>{{ subitem.title }}</h4> |
||||||
|
<p>{{ subitem.description }}</p> |
||||||
|
{% endfor %} |
||||||
|
{% endif %} |
||||||
|
</div> |
||||||
|
</td> |
||||||
|
<td> |
||||||
|
{% if tutor %} |
||||||
|
<div class="pull-right"> |
||||||
|
<a title="{{ 'NewThematicAdvance' | get_lang }}" href="index.php?{{ _p.web_cid_query }}&action=thematic_advance_add&thematic_id={{ item.id }}" class="btn btn-default"> |
||||||
|
<i class="fa fa-plus-circle" aria-hidden="true"></i> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
{% endif %} |
||||||
|
<table width="100%" class="table"> |
||||||
|
{% for advance in item.thematic_advance %} |
||||||
|
<tr> |
||||||
|
<td style="width: 90%" class="thematic_advance_content" id="thematic_advance_content_id_{{ advance.id }}"> |
||||||
|
<div id="thematic_advance_{{ advance.id }}"> |
||||||
|
<strong>{{ advance.start_date | format_date }}</strong> |
||||||
|
{{ advance.content }} |
||||||
|
</div> |
||||||
|
{% if tutor %} |
||||||
|
<div class="toolbar_actions" id="thematic_advance_tools_{{ advance.id }}"> |
||||||
|
<div class="btn-group btn-group-sm"> |
||||||
|
<a class="btn btn-default btn-sm" href="index.php?{{ _p.web_cid_query }}&action=thematic_advance_edit&thematic_id={{ item.id }}&thematic_advance_id={{ advance.id }}" title="{{ 'Edit' |get_lang }}"> |
||||||
|
<i class="fa fa-pencil" aria-hidden="true"></i> |
||||||
|
</a> |
||||||
|
|
||||||
|
<a class="btn btn-default btn-sm" onclick="javascript:if(!confirm('{{ 'AreYouSureToDelete' | get_lang }}')) return false;" href="index.php?{{ _p.web_cid_query }}&action=thematic_advance_delete&thematic_id={{ item.id }}&thematic_advance_id={{ advance.id }}" title="{{ 'Delete' |get_lang }}"> |
||||||
|
<i class="fa fa-trash" aria-hidden="true"></i> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endif %} |
||||||
|
</div |
||||||
|
</td> |
||||||
|
{% if advance.done_advance == 1 %} |
||||||
|
{% set color = "background-color:#E5EDF9;" %} |
||||||
|
{% else %} |
||||||
|
{% set color = "background-color:#FFFFFF;" %} |
||||||
|
{% endif %} |
||||||
|
<td style="width: 10%; {{ color }}" id="td_done_thematic_{{ advance.id }}"> |
||||||
|
{% if tutor %} |
||||||
|
<center> |
||||||
|
<input type="radio" class="done_thematic" id="done_thematic_{{ advance.id }}" name="done_thematic" value="{{ advance.id }}" onclick="update_done_thematic_advance(this.value)"> |
||||||
|
</center> |
||||||
|
{% endif %} |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
</table> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
|
||||||
|
</table> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|