2012-11-06 17:54:33 +01:00
|
|
|
{% extends "admin/base_site.html" %}
|
2018-08-20 16:09:13 +02:00
|
|
|
{% load i18n static %}
|
2012-11-06 17:54:33 +01:00
|
|
|
|
2018-02-19 09:37:13 +01:00
|
|
|
{% block extrastyle %}{{ block.super }}
|
2012-11-06 17:54:33 +01:00
|
|
|
<style>
|
2012-11-07 17:45:53 +01:00
|
|
|
div#period_choice { margin: 0 auto; text-align: center; width: 60%; padding: 0.5em; margin-bottom: 1em; background-color: #EDF3FE;}
|
2012-11-06 17:54:33 +01:00
|
|
|
select#section_select { width: 8em; margin-right: 2em; }
|
|
|
|
|
select#period_select { width: 16em; }
|
|
|
|
|
|
2012-11-07 17:45:53 +01:00
|
|
|
div#student_choice { float: left; width: 18%; }
|
2016-01-13 20:25:37 +01:00
|
|
|
select#student_select, select#student_filter { width: 100%; height: auto; }
|
2012-11-06 17:54:33 +01:00
|
|
|
|
2012-11-07 17:45:53 +01:00
|
|
|
div#corp_choice { float: right; width: 18%; }
|
2016-01-13 20:25:37 +01:00
|
|
|
select#corp_select, select#corp_filter { width: 100%; height: auto; }
|
2016-01-19 12:07:14 +01:00
|
|
|
select#corp_select option.priority { font-weight: bold; }
|
2012-11-06 17:54:33 +01:00
|
|
|
|
2012-11-07 17:45:53 +01:00
|
|
|
div#student_detail { float:left; width: 40%; margin: 1em; padding: 0.5em; border: 3px solid red; min-height: 4em; border-radius: 8px; }
|
2012-11-30 14:33:37 +01:00
|
|
|
div#previous_stages { background-color: #EEE; border-radius: 4px; }
|
|
|
|
|
ul#previous_stages_list { display: none; padding-left: 1.5em;}
|
2016-01-20 18:00:05 +01:00
|
|
|
span.under_17 { color: red; }
|
2012-11-30 14:33:37 +01:00
|
|
|
|
2012-11-07 17:45:53 +01:00
|
|
|
div#corp_detail { float:right; width: 40%; margin: 1em; padding: 0.5em; border: 3px solid red; min-height: 4em; border-radius: 8px; }
|
2012-11-13 16:45:25 +01:00
|
|
|
div#corp_total, div#student_total { font-style: italic; color: gray; }
|
2012-11-07 17:45:53 +01:00
|
|
|
div.filled { border-color: green !important; }
|
2012-11-06 17:54:33 +01:00
|
|
|
|
|
|
|
|
div#training_form { text-align: center; }
|
2012-11-07 17:45:53 +01:00
|
|
|
div#buttons_div { margin-top: 1em; }
|
2012-11-06 17:54:33 +01:00
|
|
|
input#valid_training { display: none; }
|
2012-11-07 17:45:53 +01:00
|
|
|
|
|
|
|
|
div#trainings { clear: both; padding-top: 1em; }
|
2012-11-30 10:25:40 +01:00
|
|
|
input#export { display: none; margin-left: 2em; }
|
2012-11-09 15:32:00 +01:00
|
|
|
|
|
|
|
|
.missing { font-style: italic; color: red; }
|
2012-11-06 17:54:33 +01:00
|
|
|
</style>
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block extrahead %}
|
2016-01-15 17:48:08 +01:00
|
|
|
<script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.min.js' %}"></script>
|
|
|
|
|
<script type="text/javascript" src="{% static 'admin/js/jquery.init.js' %}"></script>
|
|
|
|
|
<script type="text/javascript" src="{% static 'admin/js/admin/RelatedObjectLookups.js' %}"></script>
|
|
|
|
|
<script type="text/javascript" src="{% static 'js/attribution.js' %}"></script>
|
|
|
|
|
<script type="text/javascript" src="{% static 'js/jquery.cookie.js' %}"></script>
|
2012-11-06 17:54:33 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
2012-11-07 17:45:53 +01:00
|
|
|
{% block breadcrumbs %}
|
|
|
|
|
<div class="breadcrumbs">
|
|
|
|
|
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
|
|
|
|
|
› Attributions
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
2012-11-06 17:54:33 +01:00
|
|
|
{% block content %}
|
|
|
|
|
<div id="period_choice">
|
|
|
|
|
<form>
|
|
|
|
|
<label for="section_select">Filière:</label>
|
|
|
|
|
<select id="section_select">{% for sect in sections %}<option value="{{ sect.id }}">{{ sect.name }}</option>{% endfor %}</select>
|
|
|
|
|
<label for="period_select">Période:</label>
|
|
|
|
|
<select id="period_select"></select>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="student_choice">
|
|
|
|
|
<form>
|
2012-11-13 14:08:34 +01:00
|
|
|
<select id="student_filter" size="1"></select>
|
2012-11-06 17:54:33 +01:00
|
|
|
<select id="student_select" size="15"></select>
|
2012-11-13 16:45:25 +01:00
|
|
|
<div id="student_total"></div>
|
2012-11-06 17:54:33 +01:00
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="corp_choice">
|
|
|
|
|
<form>
|
2012-11-13 16:02:51 +01:00
|
|
|
<select id="corp_filter" size="1"></select>
|
2012-11-06 17:54:33 +01:00
|
|
|
<select id="corp_select" size="15"></select>
|
2012-11-13 16:45:25 +01:00
|
|
|
<div id="corp_total"></div>
|
2012-11-06 17:54:33 +01:00
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="training_main">
|
2012-11-07 17:45:53 +01:00
|
|
|
|
|
|
|
|
<div style="overflow: auto;">
|
|
|
|
|
<div id="student_detail"></div>
|
|
|
|
|
<div id="corp_detail"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="training_form">
|
2012-11-13 15:02:03 +01:00
|
|
|
<form>{% csrf_token %}
|
2012-12-13 14:41:13 +01:00
|
|
|
<div id="referent_choice"><label for="referent_select">Référent école:</label>
|
2012-11-07 17:45:53 +01:00
|
|
|
<select id="referent_select"><option value="">-------</option>
|
2012-11-30 16:49:54 +01:00
|
|
|
{% for ref in referents %}<option value="{{ ref.id }}">{{ ref }} ({{ ref.num_refs }})</option>{% endfor %}</select>
|
2012-11-07 17:45:53 +01:00
|
|
|
</div>
|
2013-04-05 16:18:18 +02:00
|
|
|
<div id="contact_choice"><label for="contact_select">Contact institution:</label>
|
|
|
|
|
<select id="contact_select"><option value="">-------</option></select>
|
|
|
|
|
</div>
|
2019-02-01 14:24:32 +01:00
|
|
|
<div id="buttons_div"><input id="valid_training" type="button" value="Valider cette pratique professionnelle"></div>
|
2012-11-07 17:45:53 +01:00
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="trainings">
|
2019-02-01 14:24:32 +01:00
|
|
|
<h3>Pratiques professionnelles planifiées pour la période choisie</h3>
|
2012-11-07 17:45:53 +01:00
|
|
|
<ul id="training_list">-
|
|
|
|
|
</ul>
|
2012-12-13 00:14:44 +01:00
|
|
|
<form id="list_export" method="get" action="{% url 'stages_export' %}">{% csrf_token %}
|
2013-07-11 14:40:20 +02:00
|
|
|
<input id="period" name="period" type="hidden" value="">
|
|
|
|
|
<input id="non_attr" name="non_attr" type="hidden" value="0">
|
2012-11-30 10:25:40 +01:00
|
|
|
<input id="export" type="button" value="Exporter la liste">
|
2019-02-01 14:24:32 +01:00
|
|
|
<input id="export_non_attr" type="button" value="Exporter la liste des places de PP non attribuées">
|
2012-11-30 10:25:40 +01:00
|
|
|
</form>
|
2012-11-06 17:54:33 +01:00
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|