templates/manager_informations_list_request.html
{% extends "layout.html" %}
{% load static %}
{% load i18n %}
{% comment "License" %}
* OSIS stands for Open Student Information System. It's an application
* designed to manage the core business of higher education institutions,
* such as universities, faculties, institutes and professional schools.
* The core business involves the administration of students, teachers,
* courses, programs and so on.
*
* Copyright (C) 2015-2019 Université catholique de Louvain (http://www.uclouvain.be)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* A copy of this license - GNU General Public License - is available
* at the root of the source code of this program. If not,
* see http://www.gnu.org/licenses/.
{% endcomment %}
{% block style %}
<link rel="stylesheet" href="{% static 'css/dataTables.bootstrap.min.css' %}">
{% endblock %}
{% block breadcrumb %}
<li><a href="{% url 'studies' %}" id="lnk_studies">{% trans "Students' path" %}</a></li>
<li id="lnk_cohorts_management"><a href="{% url 'cohorts_management' %}">{% trans "Cohorts management" %}</a></li>
<li><a href="{% url 'dissertations' %}" id="lnk_dissertations">{% trans 'Dissertations' %}</a></li>
<li class="active">{% trans 'Teachers' %}</li>
{% endblock %}
{% block content %}
<div class="page-header">
<h2>{% trans 'Teachers not responding to requests' %}</h2>
</div>
<ul class="nav nav-tabs">
<li><a href={% url 'manager_informations' %}>{% trans 'All teachers' %}</a></li>
<li class="active"><a href="{% url 'manager_informations_list_request' %}">{% trans 'Teachers having to answer request' %}</a></li>
</ul>
<div class="panel panel-default">
<table class="table table-hover" id="table-advisers">
<thead>
<tr>
<th>{% trans 'Teachers' %}</th>
<th>{% trans 'How many dissertations need answer' %}</th>
</tr>
</thead>
{% for adviser_need_request in advisers_need_request %}
<tbody>
<tr>
<td>
<a href="{% url 'manager_informations_detail_list_wait' pk=adviser_need_request.pk %}">
{{ adviser_need_request }}
</a>
</td>
<td>{{ adviser_need_request.dissertations_count_need_to_respond_actif }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
{% block script %}
<script type="text/javascript" src="{% static 'js/jquery.dataTables.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/dataTables.bootstrap.min.js' %}"></script>
<script>
$(document).ready(function()
{
$('#table-advisers').DataTable(
{
"pageLength": 50,
"paging" : true,
"ordering" : true,
"info" : false,
"searching" : true,
"language":
{
"sProcessing": "{% trans 'Processing...'%}",
"sSearch": "{% trans 'Search:'%}",
"sLengthMenu": " _MENU_ éléments",
"sInfo": "{% trans 'Showing _START_ to _END_ of _TOTAL_ entries'%}",
"sInfoEmpty": "{% trans 'Showing 0 to 0 of 0 entries'%}",
"sInfoFiltered": "{% trans '(filtered from _MAX_ total entries)'%}",
"sInfoPostFix": "{% trans 'datatable_infopostfix'%}",
"sLoadingRecords": "{% trans 'Loading...'%}",
"sZeroRecords": "{% trans 'No matching records found'%}",
"sEmptyTable": "{% trans 'No data available in table'%}",
"oPaginate":
{
"sFirst": "{% trans 'First'%}",
"sPrevious": "{% trans 'Previous'%}",
"sNext": "{% trans 'Next'%}",
"sLast": "{% trans 'Last'%}"
},
"oAria":
{
"sSortAscending": "{% trans ': activate to sort column ascending'%}",
"sSortDescending": "{% trans ': activate to sort column descending'%}",
}
},
"columns": [
null,
{ "orderable": true }
]
});
});
</script>
{% endblock %}