templates/dissertations_detail.html
{% extends "layout.html" %}
{% load i18n static osis_document %}
{% 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 'dissertations_list' %}" id="lnk_propositions">{% trans 'Dissertations' %}</a></li>
<li class="active">{{ dissertation.title|truncatechars:24 }}</li>
{% endblock %}
{% block content %}
<div class="page-header">
<h2>{{ dissertation.title }}</h2>
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="#">{% trans 'main' %}</a></li>
<li>
<a href="{% url 'dissertations_detail_updates' pk=dissertation.pk %}">
{% trans 'Dissertation updates' %}
</a>
</li>
</ul>
<input type="hidden" value="{{dissertation.pk | default_if_none:''}}" id="hdn_current_dissertation_id" name="dissertation_id" title="dissertation_id" >
<div class="panel panel-default">
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Informations about the dissertation' %}</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Author' %}</label>
</div>
<div class="col-md-9">
{{ dissertation.author }}
</div>
</div>
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Title' context 'dissertation' %}</label>
</div>
<div class="col-md-9">
{{ dissertation.title }}
</div>
</div>
{% if dissertation_file %}
<div class="row">
<div class="col-md-3" style="text-align:right">
<label>{% trans 'File' %}</label>
</div>
<div class="col-md-4" style="text-align:right">
{% document_visualizer dissertation_file %}
</div>
</div>
{% endif %}
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Status' context 'dissertation' %}</label>
</div>
<div class="col-md-9">
{% with st=dissertation.status %}
{% if st == 'DIR_OK' or st == 'ENDED_WIN' %}
<span class="label label-success">
{% elif st == 'DIR_SUBMIT' or st == 'COM_SUBMIT' or st == 'EVA_SUBMIT' %}
<span class="label label-primary">
{% elif st == 'DIR_KO' or st == 'ENDED_LOS' or st == 'COM_KO' or st == 'EVA_KO' %}
<span class="label label-danger">
{% else %}
<span class="label label-default">
{% endif %}
{{ dissertation.get_status_display }}
</span>
{% endwith %}
</div>
</div>
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Description' %}</label>
</div>
<div class="col-md-9" style="text-align: justify">
{{ dissertation.description|linebreaks }}
</div>
</div>
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Defense period' %}</label>
</div>
<div class="col-md-9">
{{ dissertation.defend_periode|default_if_none:_("Undefined") }}
</div>
</div>
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Defense year' %}</label>
</div>
<div class="col-md-9">
{{ dissertation.defend_year|default_if_none:_("Undefined") }}
</div>
</div>
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Dissertation location' %}</label>
</div>
<div class="col-md-9">
{{ dissertation.location|default_if_none:_("Undefined") }}
</div>
</div>
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Start Program/Year' %}</label>
</div>
<div class="col-md-9">
{{ dissertation.education_group_year }}
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Dissertation jury' %}</h3>
</div>
<div class="panel-body">
{% for dissertation_role in dissertation_roles %}
<div class="row" style="margin: 10px;">
<div class="col-md-3" style="text-align: right">
<label>{{ dissertation_role.get_status_display }}</label>
</div>
<div class="col-md-2">
{{ dissertation_role.adviser }}
</div>
{% if offer_prop.adviser_can_suggest_reader and teacher_is_promotor %}
{% if promotors_count > 1 or dissertation_role.status != 'PROMOTEUR' %}
<div class="col-md-1">
<a class="btn btn-warning"
href="{% url 'dissertations_role_delete' pk=dissertation_role.pk %}"
onclick="return confirm('{% trans 'You are ready to delete this jury member. Are you sure you want to continue?' %}')">
<span class="glyphicon glyphicon-remove span2"></span></a>
</div>
{% endif %}
{% endif %}
</div>
{% endfor %}
{% if count_dissertation_role < 4 and offer_prop.adviser_can_suggest_reader and teacher_is_promotor %}
<br>
<div class="row">
<div class="col-md-3 pull-right" style="text-align: right">
<a data-url="{% url 'dissertations_jury_new' pk=dissertation.pk %}"
id="lnk_add_dissertation_jury_member" data-modal_class="modal-lg"
class="btn btn-default btn-sm trigger_modal"
role="button" title="{% trans 'Add a jury member'%}"><span
class="glyphicon glyphicon-plus"
aria-hidden="true"></span> {% trans 'Add a jury member'%}</a>
</div>
</div>
{% endif %}
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Informations about the dissertation subject' %}</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Promotor' %}</label>
</div>
<div class="col-md-9">
{{ dissertation.proposition_dissertation.author }}
</div>
</div>
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Title' context 'dissertation' %}</label>
</div>
<div class="col-md-9">
{{ dissertation.proposition_dissertation.title }}
</div>
</div>
{% if proposition_dissertation_file %}
<div class="row">
<div class="col-md-3" style="text-align:right">
<label>{% trans 'File' %}</label>
</div>
<div class="col-md-4" style="text-align:right">
{% document_visualizer proposition_dissertation_file %}
</div>
</div>
{% endif %}
</div>
</div>
{% if dissertation.status == 'DIR_SUBMIT' and teacher_is_promotor %}
<div style="text-align: right;">
<a href="{% url 'dissertations_to_dir_ok' pk=dissertation.pk %}"
id="lnk_dissertations_to_dir_ok" class="btn btn-success"
role="button" title="{% trans 'Accept this dissertation project'%}"><span
class="glyphicon glyphicon-ok-circle"
aria-hidden="true"></span> {% trans 'Accept this dissertation project'%}</a>
<a href="{% url 'dissertations_to_dir_ko' pk=dissertation.pk %}"
id="lnk_dissertations_to_dir_ko" class="btn btn-warning"
role="button" title="{% trans 'Refuse this dissertation project'%}"><span
class="glyphicon glyphicon-remove-circle"
aria-hidden="true"></span> {% trans 'Refuse this dissertation project'%}</a>
</div>
{% endif %}
</div>
</div>
{% endblock %}
{% block script %}
{{ dissertation_file_form.media }}
{{ proposition_dissertation_file_form.media }}
{% endblock script %}