uclouvain/osis-dissertation

View on GitHub
templates/dissertations.html

Summary

Maintainability
Test Coverage
{% 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 class="active">{% trans 'Dissertations' %}</li>
{% endblock %}
{% block content %}
  <div class="page-header">
    <h2>{% trans 'Dissertations' %}</h2>
  </div>
      {% if adviser.type == 'PRF' %}
        {% if count_advisers_pro_request > 0 %}
        <div class="jumbotron">
            <h2>{% trans 'Action needed' %}</h2>
                <p>
                   {% trans 'You have' %}
                   <span style="font-weight: bold">{{ count_advisers_pro_request }}</span>
                   {% trans 'Dissertations waiting validation' %}
                </p>
                <p>
                    <a class="btn btn-primary btn-lg" href="{% url 'dissertations_wait_list' %}" role="button">
                        {% trans 'See my waiting dissertations' %}
                    </a>
                </p>
        </div>
        {% endif %}
  <div class="panel panel-default">
    <div class="panel-body">
        <div class="row">
          <div class="col-md-1"><i class="far fa-lightbulb" style="font-size: 400%; color: #6699FF;"></i></div>
          <div class="col-md-5">
            <h4 class="media-heading">
                <a href="{% url 'my_dissertation_propositions' %}" id="lnk_my_dissertation_propositions" >
                    {% trans 'Dissertation subjects' %}
                </a>
            </h4>
            <p>{% trans 'Dissertation subjects submitted by myself and others teachers' %}</p>
          </div>
          <div class="col-md-1"><i class="fa fa-cogs" style="font-size: 400%; color: #6699FF;"></i></div>
          <div class="col-md-5">
            <h4 class="media-heading">
                <a href="{% url 'informations' %}" id="lnk_informations" >
                    {% trans 'My informations' %}
                </a>
            </h4>
            <p>{% trans 'My settings for the Dissertation application.' %}</p>
          </div>
        </div>
        <br>
        <div class="row">
          <div class="col-md-1"><i class="far fa-edit" style="font-size: 400%; color: #6699FF;"></i></div>
          <div class="col-md-5">
            <h4 class="media-heading">
                <a href="{% url 'dissertations_list' %}" id="lnk_dissertations" >
                    {% trans 'Dissertations' %}
                </a>
            </h4>
            <p>{% trans 'List of dissertations which I am linked to' %}</p>
          </div>
        </div>
      {% elif adviser.type == 'MGR' %}
    <div class="panel panel-default">
    <div class="panel-body">
        <div class="row">
          <div class="col-md-1"><i class="far fa-lightbulb" style="font-size: 400%; color: #6699FF;"></i></div>
          <div class="col-md-5">
            <h4 class="media-heading">
                <a href="{% url 'manager_proposition_dissertations' %}" id="lnk_manager_proposition_dissertations" >
                    {% trans 'Dissertation subjects' %}
                </a>
            </h4>
            <p>{% trans 'Dissertation subjects submitted by teachers' %}</p>
          </div>
          <div class="col-md-1"><i class="fa fa-users" style="font-size: 400%; color: #6699FF;"></i></div>
          <div class="col-md-5">
            <h4 class="media-heading">
                <a href="{% url 'manager_informations' %}" id="lnk_manager_informations" >
                    {% trans 'Teachers' %}
                </a>
            </h4>
            <p>{% trans 'List of teachers linked to the Dissertation application' %}</p>
          </div>
        </div>
        <br>
        <div class="row">
          <div class="col-md-1"><i class="far fa-edit" style="font-size: 400%; color: #6699FF;"></i></div>
          <div class="col-md-5">
            <h4 class="media-heading">
                <a href="{% url 'manager_dissertations_list' %}" id="lnk_manager_dissertations" >
                    {% trans 'Dissertations' %}
                </a>
            </h4>
            <p>{% trans 'List of the dissertation subjects' %}</p>
          </div>
          <div class="col-md-1"><i class="fa fa-cog" style="font-size: 400%; color: #6699FF;"></i></div>
          <div class="col-md-5">
            <h4 class="media-heading">
                <a href="{% url 'manager_offer_parameters' %}" id="lnk_manager_offer_parameters" >
                    {% trans 'Settings' context 'dissertation' %}
                </a>
            </h4>
            <p>{% trans 'Settings of the Dissertation application' %}</p>
          </div>
        </div>
        <br>
        <div class="row">
            <div class="col-md-1"><i class="fa fa-graduation-cap" style="font-size: 400%; color: #6699FF;"></i></div>
            <div class="col-md-5">
                <h4 class="media-heading">
                    <a href="{% url 'manager_students_list' %}" id="lnk_manager_students_list" >
                        {% trans 'For students' %}
                        {{ students_title|title }}
                    </a>
                </h4>
                <p>{% trans 'List of students' %}</p>
            </div>
        </div>
      {% endif %}
    </div>
  </div>
 </div>
</div>
{% endblock %}