templates/manager_informations_add.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><a href="{% url 'manager_informations' %}" id="lnk_manager_informations">{% trans 'Teachers' %}</a></li>
<li class="active">{% trans 'Add teacher' %}</li>
{% endblock %}
{% block content %}
<div class="page-header">
<h2>{% trans 'Add teacher' %}</h2>
</div>
<div class="panel panel-default">
<div class="panel-body">
<form method="POST" class="post-form">
{% csrf_token %}
<div class="row">
<div class="col-md-9 col-md-offset-1">
<label for="person">{% trans 'Person to add' %} : </label>
<input type="hidden" name="person" id="person" value={{ pers.id }}>
{{ pers }}
</div>
</div>
<br>
<div class="row {% if field.errors %}error{% endif %}" style="padding-top: 4px;">
<div class="col-md-1" style="text-align: right;">
<input id="txt_available_by_email" name="available_by_email"
style="margin:-6px;" type="checkbox" {% if form.available_by_email.value %} checked {% endif %} >
</div>
<div class="col-md-9">
<label for="txt_available_by_email">{% trans 'Available by e-mail' %}</label>
</div>
</div>
<div class="row {% if field.errors %}error{% endif %}" style="padding-top: 4px;">
<div class="col-md-1" style="text-align: right;">
<input id="txt_available_by_phone" name="available_by_phone"
style="margin:-6px;" type="checkbox" {% if form.available_by_phone.value %} checked {% endif %} >
</div>
<div class="col-md-9">
<label for="txt_available_by_phone">{% trans 'Available by phone' %}</label>
</div>
</div>
<div class="row {% if field.errors %}error{% endif %}" style="padding-top: 4px;">
<div class="col-md-1" style="text-align: right;">
<input id="txt_available_at_office" name="available_at_office"
style="margin:-6px;" type="checkbox" {% if form.available_at_office.value %} checked {% endif %} >
</div>
<div class="col-md-9">
<label for="txt_available_at_office">{% trans 'Available at office' %}</label>
</div>
</div>
<br>
<div class="row {% if field.errors %}error{% endif %}">
<div class="col-md-9 col-lg-offset-1 form-group">
<label for="txt_comment">{% trans 'Comment' %}</label>
<textarea class="form-control" id="txt_comment" name="comment" rows="10">{{ form.comment.value }}</textarea>
</div>
</div>
<br>
<div style="text-align: right;">
<button type="submit" class="save btn btn-primary">{% trans 'Save' %}</button>
</div>
</form>
</div>
</div>
{% endblock %}