Competences+Heures
This commit is contained in:
parent
12ce9c7900
commit
29270557fe
6 changed files with 76 additions and 24 deletions
|
|
@ -22,6 +22,8 @@
|
|||
<li><a href="{% url 'processus-list' %}">Processus</a> </li>
|
||||
<li><a href="{% url 'module-list' %}">Modules</a> </li>
|
||||
<li><a href="{% url 'periodes' %}">Périodes</a> </li>
|
||||
<li><a href="{% url 'competences' %}">Compétences</a> </li>
|
||||
<li><a href="{% url 'travail' %}">Heures de formation</a> </li>
|
||||
|
||||
<!-- <li><a href="{% url 'evaluation' %}">Evaluation</a> </li> -->
|
||||
|
||||
|
|
|
|||
|
|
@ -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"> </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"> <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"> </th><td colspan="2"><a href=" {% url 'module-detail' c.module.id %}">{{ c.module }}</a></td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
|
||||
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ block.super }}{% endblock %}
|
||||
|
|
|
|||
36
templates/cms/travail_perso.html
Normal file
36
templates/cms/travail_perso.html
Normal 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 %} {% else %} {{ m.periode_presentiel|rjust:"3" }} h. {% endif %}</td>
|
||||
<td align="center">{% if m.travail_perso == 0 %} {% else %} {{ m.travail_perso|rjust:"3" }} h. {% endif %}</td>
|
||||
<td align="center">{% if m.pratique_prof == 0 %} {% 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue