Actualización
This commit is contained in:
66
main/template/default/agenda/event_list.tpl
Normal file
66
main/template/default/agenda/event_list.tpl
Normal file
@@ -0,0 +1,66 @@
|
||||
{{ agenda_actions }}
|
||||
|
||||
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
||||
{% for event in agenda_events %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading" role="tab" id="heading-{{ event.id }}">
|
||||
{% if is_allowed_to_edit and show_action %}
|
||||
<div class="pull-right">
|
||||
{% if event.visibility == 1 %}
|
||||
<a class="btn btn-default btn-xs"
|
||||
href="{% if url %}{{ url }}{% else %}{{ event.url }}{% endif %}&action=change_visibility&visibility=0&id={{ event.real_id }}&type={{ event.type }}">
|
||||
<img title="{{ 'Invisible' }}" src="{{ 'visible.png'|icon(22) }}">
|
||||
</a>
|
||||
{% else %}
|
||||
{% if event.type == 'course' or event.type == 'session' %}
|
||||
<a class="btn btn-default btn-xs"
|
||||
href="{% if url %}{{ url }}{% else %}{{ event.url }}{% endif %}&action=change_visibility&visibility=1&id={{ event.real_id }}&type={{ event.type }}">
|
||||
<img title="{{ 'Visible' }}" src="{{ 'invisible.png'|icon(22) }}">
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<h4 class="panel-title">
|
||||
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
||||
href="#collapse-{{ event.id }}" aria-expanded="false" aria-controls="collapse-{{ event.id }}">
|
||||
{{ event.title }}
|
||||
<br>
|
||||
<small>
|
||||
{{ event.start_date_localtime }}
|
||||
|
||||
‐
|
||||
|
||||
{% if event.allDay %}
|
||||
{{ 'AllDay' | get_lang }}
|
||||
{% else %}
|
||||
{{ event.end_date_localtime }}
|
||||
{% endif %}
|
||||
</small>
|
||||
</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="collapse-{{ event.id }}" class="panel-collapse collapse" role="tabpanel"
|
||||
aria-labelledby="heading-{{ event.id }}">
|
||||
<ul class="list-group">
|
||||
{% if event.description %}
|
||||
<li class="list-group-item">
|
||||
{{ event.description }}
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if event.comment %}
|
||||
<li class="list-group-item">
|
||||
{{ event.comment }}
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if event.attachment %}
|
||||
<li class="list-group-item">{{ event.attachment }}</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
1255
main/template/default/agenda/month.tpl
Normal file
1255
main/template/default/agenda/month.tpl
Normal file
File diff suppressed because it is too large
Load Diff
70
main/template/default/agenda/planification.tpl
Normal file
70
main/template/default/agenda/planification.tpl
Normal file
@@ -0,0 +1,70 @@
|
||||
{% extends 'layout/layout_1_col.tpl'|get_template %}
|
||||
|
||||
{% set user_id = student_id == _u.id ? 0 : student_id %}
|
||||
|
||||
{% block content %}
|
||||
{{ toolbar }}
|
||||
|
||||
<nav aria-label="...">
|
||||
<ul class="pager">
|
||||
<li class="previous">
|
||||
<a href="{{ _p.web_self ~ '?' ~ {"year": search_year - 1, "user": user_id }|url_encode }}">
|
||||
<span aria-hidden="true">←</span> {{ search_year - 1 }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="current">
|
||||
{{ search_year }}
|
||||
</li>
|
||||
<li class="next">
|
||||
<a href="{{ _p.web_self ~ '?' ~ {"year": search_year + 1, "user": user_id }|url_encode }}">
|
||||
{{ search_year + 1 }} <span aria-hidden="true">→</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
{% if sessions|length > 0 %}
|
||||
<div class="table-responsive" id="calendar-session-planification">
|
||||
<table class="table table-hover table-bordered table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-session">{{ 'Session'|get_lang }}</th>
|
||||
{% for i in 1..52 %}
|
||||
<th class="col-week text-center" title="{{ 'WeekX'|get_lang|format(i) }}"><span>{{ i }}</span></th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for session in sessions %}
|
||||
<tr>
|
||||
<td class="col-session" title="{{ session.name }}">
|
||||
<a href="{{ _p.web ~ 'session/' ~ session.id ~ '/about/' }}">
|
||||
{{ session.name }}
|
||||
</a>
|
||||
</td>
|
||||
|
||||
{% if session.start > 0 %}
|
||||
<td class="col-week" colspan="{{ session.start }}"> </td>
|
||||
{% endif %}
|
||||
|
||||
<td class="col-week text-center {{ session.start_in_last_year or session.no_start ? 'in_last_year' : '' }} {{ session.end_in_next_year or session.no_end ? 'in_next_year' : '' }}"
|
||||
colspan="{{ session.duration }}" title="{{ session.human_date }}"
|
||||
style="background-color: {{ colors[loop.index0] }}">
|
||||
<span>
|
||||
<span class="sr-only">{{ session.human_date }}</span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
{% if session.duration + session.start < 52 %}
|
||||
<td class="col-week" colspan="{{ 52 - session.duration - session.start }}"> </td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-warning">
|
||||
{{ 'ThereIsNotStillASession'|get_lang }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
82
main/template/default/agenda/student_boss_planification.tpl
Normal file
82
main/template/default/agenda/student_boss_planification.tpl
Normal file
@@ -0,0 +1,82 @@
|
||||
{% extends 'layout/layout_1_col.tpl'|get_template %}
|
||||
|
||||
{% set user_id = student_id == _u.id ? 0 : student_id %}
|
||||
|
||||
{% block content %}
|
||||
{{ toolbar }}
|
||||
<nav aria-label="...">
|
||||
<ul class="pager">
|
||||
<li class="previous">
|
||||
<a href="{{ _p.web_self ~ '?' ~ {"year": search_year - 1, "user": user_id, "order": current_order } |url_encode }}">
|
||||
<span aria-hidden="true">←</span> {{ search_year - 1 }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="current">
|
||||
{{ search_year }}
|
||||
</li>
|
||||
<li class="next">
|
||||
<a href="{{ _p.web_self ~ '?' ~ {"year": search_year + 1, "user": user_id, "order": current_order }|url_encode }}">
|
||||
{{ search_year + 1 }} <span aria-hidden="true">→</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
{% if students|length > 0 %}
|
||||
<div class="table-responsive" id="calendar-session-planification">
|
||||
<table class="table table-bordered table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-session">
|
||||
<a href=" {{ _p.web_self ~ '?' ~ {"year": search_year, "user": user_id, "order": order }|url_encode }} ">
|
||||
{{ 'Student'|get_lang }}
|
||||
</a>
|
||||
</th>
|
||||
<th>{{ 'Session'|get_lang }}</th>
|
||||
{% for i in 1..52 %}
|
||||
<th class="col-week text-center" title="{{ 'WeekX'|get_lang|format(i) }}"><span>{{ i }}</span></th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for student in students %}
|
||||
{% for session in student.sessions %}
|
||||
<tr>
|
||||
<td class="col-session">
|
||||
{% if loop.index0 == 0 %}
|
||||
{{ student.complete_name }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td >
|
||||
{% if loop.index0 == 0 %}
|
||||
{{ student.sessions | length }}
|
||||
{% endif %}
|
||||
</td>
|
||||
{% if session.start > 0 %}
|
||||
<td class="col-week" colspan="{{ session.start }}"> </td>
|
||||
{% endif %}
|
||||
|
||||
<td class="col-week text-center {{ session.start_in_last_year or session.no_start ? 'in_last_year' : '' }} {{ session.end_in_next_year or session.no_end ? 'in_next_year' : '' }}"
|
||||
colspan="{{ session.duration }}" title="{{ session.name | e('html') }} - {{ session.human_date }}"
|
||||
style="background-color: {{ session.color }}">
|
||||
<span>
|
||||
<span class="sr-only">{{ session.name | e('html') }} - {{ session.human_date }}</span>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
{% if session.duration + session.start < 52 %}
|
||||
<td class="col-week" colspan="{{ 52 - session.duration - session.start }}"> </td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{ legend }}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-warning">
|
||||
{{ 'ThereIsNotStillASession'|get_lang }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user