templates/manager_informations_detail.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">{{ adviser.person.last_name }}, {{ adviser.person.first_name }}</li>
{% endblock %}
{% block content %}
<div class="page-header">
<h2>{{ adviser.person.last_name }}, {{ adviser.person.first_name }}</h2>
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="#">{% trans 'Teacher profile' %}</a></li>
<li><a href="{% url 'manager_informations_detail_list' pk=adviser.pk %}">{% trans 'Linked dissertations' %}</a></li>
<li><a href="{% url 'manager_informations_detail_list_wait' pk=adviser.pk %}">{% trans 'Waiting dissertations' %}</a></li>
<li><a href="{% url 'manager_informations_detail_stats' pk=adviser.pk %}">{% trans 'Teacher stats' %}</a></li>
</ul>
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Informations</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Name' %}</label>
</div>
<div class="col-md-4">
<span>{{ first_name }} {{ last_name }}</span>
</div>
</div>
{% if adviser.person.email %}
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'email' %}</label>
</div>
<div class="col-md-4">
{% if adviser.available_by_email %}
<span style="color:green">{{ adviser.person.email }}</span>
{% else %}
<span style="color:#C0C0C0">({{ adviser.person.email }})</span>
{% endif %}
</div>
<div class="col-md-1">
{% if adviser.available_by_email %}
<span class="glyphicon glyphicon-ok" style="color:green"></span>
{% else %}
<span class="glyphicon glyphicon-remove" style="color:red"></span>
{% endif %}
</div>
</div>
{% endif %}
{% if adviser.person.phone %}
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Phone' %}</label>
</div>
<div class="col-md-4">
{% if adviser.available_by_phone %}
<span style="color:green">{{ adviser.person.phone }}</span>
{% else %}
<span style="color:#C0C0C0">({{ adviser.person.phone }})</span>
{% endif %}
</div>
<div class="col-md-1">
{% if adviser.available_by_phone %}
<span class="glyphicon glyphicon-ok" style="color:green"></span>
{% else %}
<span class="glyphicon glyphicon-remove" style="color:red"></span>
{% endif %}
</div>
</div>
{% endif %}
{% if adviser.person.phone_mobile %}
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Mobile phone' %}</label>
</div>
<div class="col-md-4">
{% if adviser.available_by_phone %}
<span style="color:green">{{ adviser.person.phone_mobile }}</span>
{% else %}
<span style="color:#C0C0C0">({{ adviser.person.phone_mobile }})</span>
{% endif %}
</div>
<div class="col-md-1">
{% if adviser.available_by_phone %}
<span class="glyphicon glyphicon-ok" style="color:green"></span>
{% else %}
<span class="glyphicon glyphicon-remove" style="color:red"></span>
{% endif %}
</div>
</div>
{% endif %}
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Available at office' %}</label>
</div>
<div class="col-md-4">
{% if adviser.available_at_office %}
<span style="color:green">{% trans 'yes' %}</span>
{% else %}
<span style="color:red">{% trans 'no' %}</span>
{% endif %}
</div>
<div class="col-md-1">
{% if adviser.available_at_office %}
<span class="glyphicon glyphicon-ok" style="color:green"></span>
{% else %}
<span class="glyphicon glyphicon-remove" style="color:red"></span>
{% endif %}
</div>
</div>
<div class="row">
<div class="col-md-3" style="text-align: right">
<label>{% trans 'Comment' %}</label>
</div>
</div>
<div class="row">
<div class="col-md-10 col-lg-offset-1">
{{ adviser.comment|linebreaks }}
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Photo' %}</h3>
</div>
<div class="panel-body" style="text-align: center">
<img src="/my_osis/profile/{{ adviser.person.id }}" class="avatar img-responsive"
height="50%" width="50%"/>
</div>
</div>
</div>
</div>
<div class="panel-body">
<a href="{% url 'manager_informations_edit' pk=adviser.pk %}" id="lnk_manager_informations_edit"
class="btn btn-default btn-primary" role="button" title="{% trans 'Edit teacher'%}">
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
{% trans 'Edit teacher' %}
</a>
</div>
</div>
</div>
{% endblock %}