templates/manager_offer_parameters_edit.html
{% extends "layout.html" %}
{% load static %}
{% load i18n %}
{% load format %}
{% 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 style %}
<link rel="stylesheet" href="{% static 'css/bootstrap-datepicker3.min.css' %}" type='text/css'>
{% endblock %}
{% 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_offer_parameters' %}" id="lnk_parameters">{% trans 'Settings' context 'dissertation' %}</a></li>
<li class="active">{{ offer_proposition.acronym }}</li>
{% endblock %}
{% block content %}
<div class="page-header">
<h2>{% trans 'Settings for' %}
{% for offer_prop in list_offer_proposition %}
{{offer_prop.acronym }}
{% if not forloop.last %} - {% endif %}
{% endfor %}</h2>
</div>
<div class="panel panel-default">
<div class="panel-body">
<form method="POST" class="post-form" action="{{ request.get_full_path }}" name="form_education_group">
{% csrf_token %}
<div class="row">
<div class="col-md-4">
{% trans 'Period of visibility for dissertation subjects'%}
</div>
<div class="col-md-2">
<div class="input-group">
<div class="input-group-addon">
<label for="txt_start_visibility_proposition"
{% if form.start_visibility_proposition.errors %} style="color:red;" {% endif %}>
{% trans 'from'%}
</label>
</div>
<input type="text" class="form-control datepicker"
value="{{ form.start_visibility_proposition.value| default_if_none:''| date_in_form_format }}"
name="start_visibility_proposition" id="txt_start_visibility_proposition">
</div>
</div>
<div class="col-md-2">
<div class="input-group">
<div class="input-group-addon">
<label for="txt_end_visibility_proposition"
{% if form.end_visibility_proposition.errors %} style="color:red;"{% endif %}>
{% trans 'to' context 'dissertation' %}
</label>
</div>
<input type="text" class="form-control datepicker"
value="{{ form.end_visibility_proposition.value| default_if_none:''| date_in_form_format }}"
name="end_visibility_proposition" id="txt_end_visibility_proposition">
</div>
</div>
<div class="col-md-4">
</div>
</div>
<div class="row">
<div class="col-md-4">
{% trans 'Period of possibility to create dissertations projects'%}
</div>
<div class="col-md-2">
<div class="input-group">
<div class="input-group-addon">
<label for="txt_start_visibility_dissertation"
{% if form.start_visibility_dissertation.errors %}style="color:red;" {% endif %}>
{% trans 'from'%}
</label>
</div>
<input type="text" class="form-control datepicker"
value="{{ form.start_visibility_dissertation.value| default_if_none:''| date_in_form_format }}"
name="start_visibility_dissertation" id="txt_start_visibility_dissertation">
</div>
</div>
<div class="col-md-2">
<div class="input-group">
<div class="input-group-addon">
<label for="txt_end_visibility_dissertation"
{% if form.end_visibility_dissertation.errors %} style="color:red;" {% endif %}>
{% trans 'to' context 'dissertation' %}
</label>
</div>
<input type="text" class="form-control datepicker"
value="{{ form.end_visibility_dissertation.value| default_if_none:''| date_in_form_format }}"
name="end_visibility_dissertation" id="txt_end_visibility_dissertation">
</div>
</div>
<div class="col-md-4">
</div>
</div>
<div class="row">
<div class="col-md-4">
{% trans 'Period of visibility for dissertation jurys'%}
</div>
<div class="col-md-2">
<div class="input-group">
<div class="input-group-addon">
<label for="txt_start_jury_visibility"
{% if form.start_jury_visibility.errors %} style="color:red;" {% endif %}>
{% trans 'from'%}
</label>
</div>
<input type="text" class="form-control datepicker"
value="{{ form.start_jury_visibility.value| default_if_none:''| date_in_form_format }}"
name="start_jury_visibility" id="txt_start_jury_visibility">
</div>
</div>
<div class="col-md-2">
<div class="input-group">
<div class="input-group-addon">
<label for="txt_end_jury_visibility"
{% if form.end_jury_visibility.errors %} style="color:red;" {% endif %}>
{% trans 'to' context 'dissertation' %}
</label>
</div>
<input type="text" class="form-control datepicker"
value="{{ form.end_jury_visibility.value| default_if_none:''| date_in_form_format }}"
name="end_jury_visibility" id="txt_end_jury_visibility">
</div>
</div>
<div class="col-md-4">
</div>
</div>
<div class="row">
<div class="col-md-4">
{% trans 'Period of possibility to edit dissertations titles'%}
</div>
<div class="col-md-2">
<div class="input-group">
<div class="input-group-addon">
<label for="txt_start_edit_title"
{% if form.start_edit_title.errors %} style="color:red;" {% endif %}>
{% trans 'from'%}
</label>
</div>
<input type="text" class="form-control datepicker"
value="{{ form.start_edit_title.value| default_if_none:''| date_in_form_format }}"
name="start_edit_title" id="txt_start_edit_title">
</div>
</div>
<div class="col-md-2">
<div class="input-group">
<div class="input-group-addon">
<label for="txt_end_edit_title"
{% if form.end_edit_title.errors %} style="color:red;" {% endif %}>
{% trans 'to' context 'dissertation' %}
</label>
</div>
<input type="text" class="form-control datepicker"
value="{{ form.end_edit_title.value| default_if_none:''| date_in_form_format }}"
name="end_edit_title" id="txt_end_edit_title">
</div>
</div>
</div>
<h3>{% trans 'Other settings'%}</h3>
<div class="checkbox">
<label>
<input id="txt_student_can_manage_readers" name="student_can_manage_readers"
type="checkbox" {% if form.student_can_manage_readers.value %} checked {% endif %}>
{% trans 'Students can manage readers' %}
</label>
</div>
<div class="checkbox">
<label>
<input id="txt_adviser_can_suggest_reader" name="adviser_can_suggest_reader"
type="checkbox" {% if form.adviser_can_suggest_reader.value %} checked {% endif %}>
{% trans 'Adviser can manage jury members' %}
</label>
</div>
<div class="checkbox">
<label>
<input id="txt_evaluation_first_year" name="evaluation_first_year"
type="checkbox" {% if form.evaluation_first_year.value %} checked {% endif %}>
{% trans 'First year evaluation' %}
</label>
</div>
<div class="checkbox">
<label>
<input id="txt_validation_commission_exists" name="validation_commission_exists"
type="checkbox" {% if form.validation_commission_exists.value %} checked {% endif %}>
{% trans 'Validation commission exists' %}
</label>
</div>
<div class="checkbox">
<label>
<input id="txt_global_email_to_commission" name="global_email_to_commission"
type="checkbox" {% if form.global_email_to_commission.value %} checked {% endif %}>
{% trans 'Send an email to reading commission when acceptation of evaluation commission' %}
</label>
</div>
<button type="submit" class="save btn btn-primary">{% trans 'Save' %}</button>
</form>
</div>
</div>
{% endblock %}
{% block script %}
<script src="{% static 'js/bootstrap-datepicker.min.js' %}"></script>
<script>
$(".datepicker").datepicker({
format: "dd/mm/yyyy",
autoclose: true,
orientation: "bottom auto"
});
</script>
{% endblock %}