templates/proposition_dissertation_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 'my_dissertation_propositions' %}" id="lnk_propositions">{% trans 'Dissertation subjects' %}</a></li>
<li class="active">{{ proposition_dissertation.title|truncatechars:24 }}</li>
{% endblock %}
{% block content %}
<div class="page-header">
<h2>{{ proposition_dissertation.title }}</h2>
</div>
{% if check_authorisation_of_proposition %}
<div style="text-align:right; margin-bottom: 5px;">
<a class="btn btn-default btn-primary"
href="{% url 'proposition_dissertation_edit' pk=proposition_dissertation.pk %}">
<span class="glyphicon glyphicon-edit"></span></a>
<a class="btn btn-default btn-warning"
href="{% url 'proposition_dissertation_delete' pk=proposition_dissertation.pk %}"
onclick="return confirm('{% trans 'You are ready to definitely delete this dissertation subject. Are you sure you want to continue ?' %}')">
<span class="glyphicon glyphicon-remove"></span></a>
</div>
{% endif %}
<input type="hidden" value="{{proposition_dissertation.pk | default_if_none:''}}" id="hdn_current_proposition_dissertation_id" name="proposition_dissertation_id" title="proposition_dissertation_id" >
<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-4" style="text-align: right">
<label>{% trans 'Promotor' %}</label>
</div>
<div class="col-md-8">
{{ proposition_dissertation.author }}
</div>
</div>
<div class="row">
<div class="col-md-4" style="text-align: right">
<label>{% trans 'Title' context 'dissertation' %}</label>
</div>
<div class="col-md-8">
{{ proposition_dissertation.title }}
</div>
</div>
<div class="row">
<div class="col-md-4" style="text-align:right">
<label>{% trans 'File' %}</label>
</div>
<div class="col-md-8">
<button class="btn btn-default" data-toggle="modal" data-target="#proposition_dissertation_file_upload">
<span class="glyphicon glyphicon-cloud-upload" aria-hidden="true"></span>
{% trans "Upload your file" %}
</button>
</div>
</div>
<br>
{% if document %}
<div class="row">
<div class="col-md-4" style="text-align:right">
</div>
<div class="col-md-4" style="text-align:right">
{% document_visualizer document %}
</div>
</div>
{% endif %}
<div class="row">
<div class="col-md-4" style="text-align: right">
<label>{% trans 'Visibility' %}</label>
</div>
<div class="col-md-8" style="text-align: justify">
{% if proposition_dissertation.visibility == True %}
<span class="label label-success">{% trans 'Visible' %}</span>
{% elif proposition_dissertation.visibility == False %}
<span class="label label-warning">{% trans 'Invisible' %}</span>
{% endif %}
</div>
</div>
<div class="row">
<div class="col-md-4" style="text-align: right">
<label>{% trans 'Creation date' %}</label>
</div>
<div class="col-md-8">
{{ proposition_dissertation.created_date }}
</div>
</div>
<div class="row">
<div class="col-md-4" style="text-align: right">
<label>{% trans 'Description' %}</label>
</div>
<div class="col-md-8" style="text-align: justify">
{{ proposition_dissertation.description|linebreaks }}
</div>
</div>
<div class="row">
<div class="col-md-4" style="text-align: right">
<label>{% trans 'Subject type' %}</label>
</div>
<div class="col-md-8" style="text-align: justify">
{{ proposition_dissertation.get_type_display }}
</div>
</div>
<div class="row">
<div class="col-md-4" style="text-align: right">
<label>{% trans 'Subject developement level' %}</label>
</div>
<div class="col-md-8" style="text-align: justify">
{{ proposition_dissertation.get_level_display }}
</div>
</div>
<div class="row">
<div class="col-md-4" style="text-align: right">
<label>{% trans 'Collaboration' %}</label>
</div>
<div class="col-md-8" style="text-align: justify">
{{ proposition_dissertation.get_collaboration_display }}
</div>
</div>
<div class="row">
<div class="col-md-4" style="text-align: right">
<label>{% trans 'Indicative number of places for this subject' %}</label>
</div>
<div class="col-md-8" style="text-align: justify">
{{ proposition_dissertation.max_number_student }}
</div>
</div>
<div class="row">
<div class="col-md-4" style="text-align: right">
<label>{% trans 'Taken places' %}</label>
</div>
<div class="col-md-8" style="text-align: justify">
{{ count_use }} {% trans 'of' %} {{ proposition_dissertation.max_number_student }} ({{ percent }}{% trans '%'%})
</div>
</div>
<div class="row">
<div class="col-md-4" style="text-align: right">
<label>{% trans 'Programs' %}</label>
</div>
<div class="col-md-8">
{% for offer_proposition in offer_propositions %}
<span class="label label-default">{{ offer_proposition.last_acronym }}</span>
{% endfor %}
</div>
</div>
{% if proposition_dissertation.creator %}
<div class="row">
<div class="col-md-4" style="text-align: right">
<label>{% trans 'Created by' %}</label>
</div>
<div class="col-md-8" style="text-align: justify">
{{ proposition_dissertation.creator }}
</div>
</div>
{% endif %}
</div>
</div>
{% if check_authorisation_of_proposition %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Dissertation subject jury' %}</h3>
</div>
<div class="panel-body">
<div class="well well-sm">
{% trans 'You can define a jury for the dissertation subject. This jury will automatically be defined for all dissertations created from this subject. There can be only one promotor, if you add one, this promotor will replace the existing one.' %}
</div>
{% for proposition_role in proposition_roles %}
<div class="row" style="margin: 10px;">
<div class="col-md-3" style="text-align: right">
<label>{{ proposition_role.get_status_display }}</label>
</div>
<div class="col-md-2">
{{ proposition_role.adviser }}
</div>
{% if proposition_role.status != 'PROMOTEUR' %}
<div class="col-md-1">
<a class="btn btn-warning"
href="{% url 'proposition_dissertations_role_delete' pk=proposition_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 %}
</div>
{% endfor %}
{% if count_proposition_role < 4 %}
<br>
<div class="row">
<div class="col-md-5 pull-right">
<a data-url="{% url 'manager_proposition_dissertations_jury_new' pk=proposition_dissertation.pk %}"
id="lnk_proposition_add_dissertation_jury_member" data-modal_class="modal-lg"
class="btn btn-default btn-sm trigger_modal"
role="button" title="{% trans 'Add jury member'%}"><span
class="glyphicon glyphicon-plus"
aria-hidden="true"></span> {% trans 'Add jury member'%}</a>
</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
<!-- Upload file modal -->
{% include 'file_upload_proposition_dissertaton_modal.html' with form=proposition_dissertation_file_form %}
{% endblock %}
{% block script %}
{{ proposition_dissertation_file_form.media }}
{% endblock script %}