templates/manager_dissertations_edit.html
{% extends "layout.html" %}
{% load static bootstrap3 %}
{% 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_dissertations_list' %}" id="lnk_dissertations_list">{% trans 'Dissertations' %}</a></li>
<li><a href="{% url 'manager_dissertations_detail' pk=dissert.pk %}" id="lnk_dissertations_detail">
{{ dissert.title|truncatechars:24 }}
</a></li>
<li class="active">{% trans 'Edit' %}</li>
{% endblock %}
{% block content %}
<div class="page-header">
<h2>{% trans 'Edit' %}</h2>
</div>
<div class="panel panel-default">
<div class="panel-body">
<form method="POST" class="post-form">
{% csrf_token %}
<div class="form-group">
{% bootstrap_field form.author %}
</div>
<div class="form-group">
{% bootstrap_field form.title %}
</div>
<div class="row">
<div class="col-md-6 form-group" {% if form.education_group_year.errors %} style="color:red;" {% endif %}>
<div class="panel-group">
{% bootstrap_field form.education_group_year %}
</div>
</div>
<div class="col-md-6">
{% bootstrap_field form.proposition_dissertation %}
</div>
</div>
<div class="row">
<div class="col-md-6">
{% bootstrap_field form.defend_periode %}
</div>
<div class="col-md-6">
{% bootstrap_field form.defend_year %}
</div>
</div>
<div class="form-group">
{% bootstrap_field form.location %}
</div>
<div class="form-group {% if field.errors %}error{% endif %}">
{% bootstrap_field form.description %}
</div>
<div style="text-align:right">
<button type="submit" class="save btn btn-primary" onclick="return confirm('{% trans 'You are ready to save this dissertation. Continue ?' %}')">
{% trans 'Save' %}
</button>
</div>
</form>
</div>
</div>
{% endblock %}