Competences+Heures

This commit is contained in:
alazo 2017-05-04 17:16:04 +02:00
parent 12ce9c7900
commit 29270557fe
6 changed files with 76 additions and 24 deletions

View file

@ -22,6 +22,8 @@
<li><a href="{% url 'processus-list' %}">Processus</a>&nbsp;&nbsp;</li>
<li><a href="{% url 'module-list' %}">Modules</a>&nbsp;&nbsp;</li>
<li><a href="{% url 'periodes' %}">Périodes</a>&nbsp;&nbsp;</li>
<li><a href="{% url 'competences' %}">Compétences</a>&nbsp;&nbsp;</li>
<li><a href="{% url 'travail' %}">Heures de formation</a>&nbsp;&nbsp;</li>
<!-- <li><a href="{% url 'evaluation' %}">Evaluation</a>&nbsp;&nbsp;</li> -->

View file

@ -8,16 +8,11 @@
{% block content %}
<div id="content-main">
<h1>Liste des compétences</h1>
<h1>Liste des compétences du PEC avec les modules correspondants</h1>
<table border="0">
{% for c in object_list %}
<tr><td colspan="3">{{c}}</td></td></tr>
{% for p in c.module_set.all %}
<tr><th width="10px">&nbsp;</th><td colspan="2"><a href=" {% url 'processus-detail' p.id %}">{{p}}</a></td></tr>
{% for m in p.module_set.all %}
<tr><th colspan="2" width="45px">&nbsp;<td><a href=" {% url 'module-detail' m.id %}">{{m}}</a></td></tr>
{% endfor %}
{% endfor %}
<tr><td colspan="3">{{ c }}</td></td></tr>
<tr><th width="10px">&nbsp;</th><td colspan="2"><a href=" {% url 'module-detail' c.module.id %}">{{ c.module }}</a></td></tr>
{% endfor %}
</table>

View file

@ -1,9 +1,6 @@
{% extends "./base_site.html" %}
{% load i18n static %}
{% block coltype %}colMS{% endblock %}
{% block bodyclass %}{{ block.super }}{% endblock %}

View file

@ -0,0 +1,36 @@
{% extends "./base_site.html" %}
{% load i18n static %}
{% block coltype %}colMS{% endblock %}
{% block bodyclass %}{{ block.super }}{% endblock %}
{% block content %}
<div id="content-main">
<h1>Répartion des heures de formation</h1>
<table border="0">
<tr><th>Module</th><th >Heures de cours</th><th>Travail perso.</th><th>Pratique prof.</th></tr>
{% for m in object_list %}
<tr>
<td >
{% if forloop.last %}
{{ m }} - Travail de diplôme
{% else %}
{{ m }}
{% endif %}
</td>
<td align="center">{% if m.periode_presentiel == 0 %} &nbsp; {% else %} {{ m.periode_presentiel|rjust:"3" }} h. {% endif %}</td>
<td align="center">{% if m.travail_perso == 0 %} &nbsp; {% else %} {{ m.travail_perso|rjust:"3" }} h. {% endif %}</td>
<td align="center">{% if m.pratique_prof == 0 %} &nbsp; {% else %} {{ m.pratique_prof|rjust:"3" }} h.{% endif %}</td>
</tr>
{% endfor %}
<tr>
<th >Total</th>
<th>{{ total_perso }} heures</th>
<th>{{ total_presentiel }} heures</th>
<th>{{ total_pratique }} heures</th>
</tr>
</table>
</div>
{% endblock %}