Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/public/main/template/default/admin/career_dashboard.html.twig

78 lines
4.1 KiB

{% extends "@ChamiloCore/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}
{{ form_filter }}
{% for item in data %}
<div id="career-{{ item.id }}" class="career panel panel-default">
<div class="panel-heading">
<h4>
{% if is_granted('ROLE_ADMIN') %}
<a href="{{ url('legacy_main', { 'name' : 'admin/careers.php', 'action' : 'edit', 'id' : item.id }) }}">
{{ item.title }}
</a>
{% else %}
{{ item.title }}
{% endif %}
</h4>
</div>
<div class="panel-body">
{{ item.description }}
<table class="table promotions">
<thead class="title">
<th>{{ 'Promotions' | get_lang }}</th>
<th>{{ 'Semester' | get_lang }} </th>
<th>{{ 'Courses' | get_lang }} </th>
</thead>
{% for promotions in item.career %}
{% for prom in promotions %}
{% set line = prom.sessions|length + 1 %}
<tr>
<td class="promo" rowspan="{{ line }}">
<h4 id="promotion-id-{{ prom.id }}">
<a title="{{ prom.title }}"
href="{{ url('legacy_main', { 'name' : 'admin/promotions.php', 'action' : 'edit', 'id' : prom.id }) }}"
>
{{ prom.title }}
</a>
</h4>
</td>
{% if line == 1 %}
<td>&nbsp;</td>
<td>&nbsp;</td>
{% endif %}
</tr>
{% for session in prom.sessions %}
{% set sessionid = session.data.id %}
<tr>
<td class="cycles">
<h4 id="session-id-{{ sessionid }}">
<a title="{{ session.data.title }}"
href="{{ _p.web }}main/session/resume_session.php?id_session={{ sessionid }}">
{{ session.data.title }}
</a>
</h4>
</td>
<td class="courses">
<ul>
{% for course in session.courses %}
<li>
<a href="{{ _p.web }}courses/{{ course.directory }}/index.php?sid={{ sessionid }}"
title="{{ course.title }}">
{{ course.title }}
</a>
</li>
{% endfor %}
</ul>
</td>
</tr>
{% endfor %}
{% endfor %}
{% endfor %}
</table>
</div>
</div>
{% endfor %}
{% endautoescape %}
{% endblock %}