templates/manager_informations_detail_list.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 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><a href="{% url 'manager_informations' %}" id="lnk_teachers">{% trans 'Teachers' %}</a></li>
<li class="active">{{ adv.person.last_name }}, {{ adv.person.first_name }}</li>
{% endblock %}
{% block content %}
<div class="page-header">
<h2>{{ adv.person.last_name }}, {{ adv.person.first_name }}</h2>
</div>
<ul class="nav nav-tabs">
<li><a href="{% url 'manager_informations_detail' pk=adv.pk %}">{% trans 'Teacher profile' %}</a></li>
<li class="active"><a href="{% url 'manager_informations_detail' pk=adv.pk %}">{% trans 'Linked dissertations' %}</a></li>
<li><a href="{% url 'manager_informations_detail_list_wait' pk=adv.pk %}">{% trans 'Waiting dissertations' %}</a></li>
<li><a href="{% url 'manager_informations_detail_stats' pk=adv.pk %}">{% trans 'Teacher stats' %}</a></li>
</ul>
<div class="panel panel-default">
<div class="panel-body">
{% if adv_list_disserts_pro %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Dissertations as promotor' %}</h3>
</div>
<table class="table table-hover">
<tr>
<th>{% trans 'Title' context 'dissertation' %}</th>
<th>{% trans 'Author'%}</th>
<th>{% trans 'Status' context 'dissertation' %}</th>
<th>{% trans 'Start Program/Year'%}</th>
</tr>
{% for adviser_list_dissertation in adv_list_disserts_pro %}
<tr>
<td><a href="{% url 'manager_dissertations_detail' pk=adviser_list_dissertation.dissertation.pk %}">{{ adviser_list_dissertation.dissertation.title }}</a></td>
<td>{{ adviser_list_dissertation.dissertation.author }}</td>
<td>{% if adviser_list_dissertation.dissertation.status == 'DRAFT' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_OK' %}
<span class="label label-success">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_KO' %}
<span class="label label-danger">
{% elif adviser_list_dissertation.dissertation.status == 'COM_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'COM_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'COM_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_RECEIVE' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_DEFEND' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DEFENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_WIN' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_LOS' %}
<span class="label label-default">
{% endif %}
{{ adviser_list_dissertation.dissertation.get_status_display }}
</span>
</td>
<td>{{ adviser_list_dissertation.dissertation.education_group_year }}</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
{% if adv_list_disserts_copro %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Dissertations as co-promotor' %}</h3>
</div>
<table class="table table-hover">
<tr>
<th>{% trans 'Title' context 'dissertation' %}</th>
<th>{% trans 'Author'%}</th>
<th>{% trans 'Status' context 'dissertation' %}</th>
<th>{% trans 'Start Program/Year'%}</th>
</tr>
{% for adviser_list_dissertation in adv_list_disserts_copro %}
<tr>
<td><a href="{% url 'manager_dissertations_detail' pk=adviser_list_dissertation.dissertation.pk %}">{{ adviser_list_dissertation.dissertation.title }}</a></td>
<td>{{ adviser_list_dissertation.dissertation.author }}</td>
<td>{% if adviser_list_dissertation.dissertation.status == 'DRAFT' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_OK' %}
<span class="label label-success">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_KO' %}
<span class="label label-danger">
{% elif adviser_list_dissertation.dissertation.status == 'COM_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'COM_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'COM_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_RECEIVE' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_DEFEND' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DEFENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_WIN' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_LOS' %}
<span class="label label-default">
{% endif %}
{{ adviser_list_dissertation.dissertation.get_status_display }}
</span>
</td>
<td>{{ adviser_list_dissertation.dissertation.education_group_year }}</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
{% if adv_list_disserts_reader %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Dissertations as reader' %}</h3>
</div>
<table class="table table-hover">
<tr>
<th>{% trans 'Title' context 'dissertation' %}</th>
<th>{% trans 'Author'%}</th>
<th>{% trans 'Status' context 'dissertation' %}</th>
<th>{% trans 'Start Program/Year'%}</th>
</tr>
{% for adviser_list_dissertation in adv_list_disserts_reader %}
<tr>
<td><a href="{% url 'manager_dissertations_detail' pk=adviser_list_dissertation.dissertation.pk %}">{{ adviser_list_dissertation.dissertation.title }}</a></td>
<td>{{ adviser_list_dissertation.dissertation.author }}</td>
<td>{% if adviser_list_dissertation.dissertation.status == 'DRAFT' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_OK' %}
<span class="label label-success">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_KO' %}
<span class="label label-danger">
{% elif adviser_list_dissertation.dissertation.status == 'COM_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'COM_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'COM_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_RECEIVE' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_DEFEND' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DEFENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_WIN' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_LOS' %}
<span class="label label-default">
{% endif %}
{{ adviser_list_dissertation.dissertation.get_status_display }}
</span>
</td>
<td>{{ adviser_list_dissertation.dissertation.education_group_year }}</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
{% if adv_list_disserts_accompanist %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Dissertations as accompanist' %}</h3>
</div>
<table class="table table-hover">
<tr>
<th>{% trans 'Title' context 'dissertation' %}</th>
<th>{% trans 'Author'%}</th>
<th>{% trans 'Status' context 'dissertation' %}</th>
<th>{% trans 'Start Program/Year'%}</th>
</tr>
{% for adviser_list_dissertation in adv_list_disserts_accompanist %}
<tr>
<td><a href="{% url 'manager_dissertations_detail' pk=adviser_list_dissertation.dissertation.pk %}">{{ adviser_list_dissertation.dissertation.title }}</a></td>
<td>{{ adviser_list_dissertation.dissertation.author }}</td>
<td>{% if adviser_list_dissertation.dissertation.status == 'DRAFT' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_OK' %}
<span class="label label-success">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_KO' %}
<span class="label label-danger">
{% elif adviser_list_dissertation.dissertation.status == 'COM_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'COM_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'COM_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_RECEIVE' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_DEFEND' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DEFENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_WIN' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_LOS' %}
<span class="label label-default">
{% endif %}
{{ adviser_list_dissertation.dissertation.get_status_display }}
</span>
</td>
<td>{{ adviser_list_dissertation.dissertation.education_group_year }}</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
{% if adv_list_disserts_internship %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Dissertations as internship master' %}</h3>
</div>
<table class="table table-hover">
<tr>
<th>{% trans 'Title' context 'dissertation' %}</th>
<th>{% trans 'Author'%}</th>
<th>{% trans 'Status' context 'dissertation' %}</th>
<th>{% trans 'Start Program/Year'%}</th>
</tr>
{% for adviser_list_dissertation in adv_list_disserts_internship %}
<tr>
<td><a href="{% url 'manager_dissertations_detail' pk=adviser_list_dissertation.dissertation.pk %}">{{ adviser_list_dissertation.dissertation.title }}</a></td>
<td>{{ adviser_list_dissertation.dissertation.author }}</td>
<td>{% if adviser_list_dissertation.dissertation.status == 'DRAFT' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_OK' %}
<span class="label label-success">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_KO' %}
<span class="label label-danger">
{% elif adviser_list_dissertation.dissertation.status == 'COM_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'COM_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'COM_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_RECEIVE' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_DEFEND' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DEFENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_WIN' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_LOS' %}
<span class="label label-default">
{% endif %}
{{ adviser_list_dissertation.dissertation.get_status_display }}
</span>
</td>
<td>{{ adviser_list_dissertation.dissertation.education_group_year }}</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
{% if adv_list_disserts_president %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Dissertations as president' %}</h3>
</div>
<table class="table table-hover">
<tr>
<th>{% trans 'Title' context 'dissertation' %}</th>
<th>{% trans 'Author'%}</th>
<th>{% trans 'Status' context 'dissertation' %}</th>
<th>{% trans 'Start Program/Year'%}</th>
</tr>
{% for adviser_list_dissertation in adv_list_disserts_president %}
<tr>
<td><a href="{% url 'manager_dissertations_detail' pk=adviser_list_dissertation.dissertation.pk %}">{{ adviser_list_dissertation.dissertation.title }}</a></td>
<td>{{ adviser_list_dissertation.dissertation.author }}</td>
<td>{% if adviser_list_dissertation.dissertation.status == 'DRAFT' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_OK' %}
<span class="label label-success">
{% elif adviser_list_dissertation.dissertation.status == 'DIR_KO' %}
<span class="label label-danger">
{% elif adviser_list_dissertation.dissertation.status == 'COM_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'COM_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'COM_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_SUBMIT' %}
<span class="label label-primary">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_OK' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'EVA_KO' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_RECEIVE' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'TO_DEFEND' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'DEFENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_WIN' %}
<span class="label label-default">
{% elif adviser_list_dissertation.dissertation.status == 'ENDED_LOS' %}
<span class="label label-default">
{% endif %}
{{ adviser_list_dissertation.dissertation.get_status_display }}
</span>
</td>
<td>{{ adviser_list_dissertation.dissertation.education_group_year }}</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
</div>
</div>
{% endblock %}