templates/informations.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 class="active">{% trans 'My informations' %}</li>
{% endblock %}
{% block content %}
<div class="page-header">
<h2>{% trans 'My informations' %} - {{ adviser.person.last_name }}, {{ adviser.person.first_name }}</h2>
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="#">{% trans 'My profile' %}</a></li>
<li><a href="{% url 'informations_detail_stats' %}">{% trans 'My stats' %}</a></li>
</ul>
<div class="panel panel-default">
<div class="panel-body">
<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-9">
<span>{{ first_name }} {{ last_name }}</span>
</div>
</div>
<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-5">
{% 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>
<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-5">
{% 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>
{% 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-5">
{% 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-5">
{% 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 class="col-md-9" style="text-align: justify">
{{ adviser.comment|linebreaks }}
</div>
</div>
</div>
</div>
<div>
<a href="{% url 'informations_edit' %}" id="lnk_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' %}
</a>
</div>
</div>
</div>
{% endblock %}