uclouvain/osis-dissertation

View on GitHub
templates/dissertations_add_justification.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><a href="{% url 'dissertations' %}" id="lnk_dissertations">{% trans 'Dissertations' %}</a></li>
    <li><a href="{% url 'dissertations_list' %}" id="lnk_dissertations_list">{% trans 'Dissertations' %}</a></li>
    <li><a href="{% url 'dissertations_detail' pk=dissert.pk %}"
         id="lnk_dissertations_detail">{{ dissert.title|truncatechars:24 }}</a></li>
    <li class="active">{% trans 'Add justification' %}</li>
{% endblock %}
{% block content %}
  <div class="page-header">
    <h2>{% trans 'Add justification' %}</h2>
  </div>
  <div class="panel panel-default">
    <div class="panel-body">
      <form method="POST" class="post-form">
        {% csrf_token %}
        <div>
            {% trans 'The status update is nearly done. This update is detailed just after. Please add your explanation for this update.' %}
        </div>
        <br>
        <div class="row">
            <div class="col-md-4">
                {% trans 'Dissertation' %} :
            </div>
            <div class="col-md-8">
                {{ dissert.title }}
            </div>
        </div>
        <div class="row">
            <div class="col-md-4">
                {% trans 'Author' %} :
            </div>
            <div class="col-md-8">
                {{ dissert.author }}
            </div>
        </div>
        <br>
        <div class="row" style="margin:10px;">
            <div class="col-md-5 well">
                {% trans 'Current status' %} : {{ dissert.get_status_display }}
            </div>
            <div class="col-md-2" style="text-align: center; padding: 1em;">
                <span class="glyphicon glyphicon-arrow-right" aria-hidden="true"></span>
            </div>
            <div class="col-md-5 well">
                {% trans 'Next status' %} : {{ new_status_display }}
            </div>
        </div>
        <br>
        <div>
            <div class="form-group">
                <label>{% trans 'Add justification' %}</label>
                <textarea class="form-control" id="txt_justification"  name="justification" style=""></textarea>
            </div>
            <button type="submit" class="save btn btn-primary">
                {% trans 'Save' %}
            </button>
        </div>
      </form>
    </div>
  </div>
{% endblock %}