diff --git a/cms/views.py b/cms/views.py
index 6543383..8eb8681 100644
--- a/cms/views.py
+++ b/cms/views.py
@@ -217,6 +217,11 @@ class ModulePDF(DetailView):
if self.request.user.is_authenticated:
for sc in c.souscompetence_set.all():
str_comp += ' -- {0}\n'.format(sc.nom)
+
+ str_scom = ''
+ for c in m.competence_set.all():
+ for sc in c.souscompetence_set.all():
+ str_scom += '- {0}\n'.format(sc.nom)
str_res = ''
for c in m.ressource_set.all():
@@ -238,6 +243,7 @@ class ModulePDF(DetailView):
[Preformatted_left('Processus'), Preformatted_right(m.processus.__str__())],
[Preformatted_left('Situation emblématique'), Preformatted_right(m.situation)],
[Preformatted_left('Compétences visées'), Preformatted_right(str_comp)],
+ [Preformatted_left('Plus-value sur le CFC ASE'), Preformatted_right(str_scom)],
#[Preformatted_left('Ressources à acquérir'), Preformatted_right(str_res)],
[Preformatted_left('Objectifs à atteindre'), Preformatted_right(str_obj)],
[Preformatted_left('Didactique'), Preformatted_right(m.didactique)],
diff --git a/templates/cms/module_detail.html b/templates/cms/module_detail.html
index 9381379..daeec28 100644
--- a/templates/cms/module_detail.html
+++ b/templates/cms/module_detail.html
@@ -8,13 +8,20 @@
{{object}}
-| Domaine | {{object.processus.domaine.url|safe}} |
+| Domaine | {{object.processus.domaine.url|safe}} |
| Processus | {{object.processus.url|safe}} |
| Situation emblématique | {{object.situation|linebreaksbr}} |
| Compétences visées | L'éducateur social, l'éducatrice sociale:
-{% for c in object.competence_set.all %}- {{c.nom}} ({{c.code}})
-{% if user.is_authenticated %}
-{% for sc in c.souscompetence_set.all %} -- {{sc.nom}} {%endfor %}{% endif %}{% endfor %} |
+{% for c in object.competence_set.all %}- {{c.nom}} ({{c.code}})
{% endfor %}
+| Plus-value sur le CFC ASE |
+{% for c in object.competence_set.all %}
+{% for sc in c.souscompetence_set.all %}
+- {{sc.nom}}
+{%endfor %}
+{% endfor %}
+ |
+
+
| Objectifs à atteindre | {% for c in object.objectif_set.all %}- {{c}} {% endfor %} |
| Didactique | {{ object.didactique }} |
diff --git a/templates/cms/module_detail_old.html b/templates/cms/module_detail_old.html
new file mode 100644
index 0000000..9381379
--- /dev/null
+++ b/templates/cms/module_detail_old.html
@@ -0,0 +1,41 @@
+{% extends "./base_site.html" %}
+{% load i18n static %}
+
+{% block coltype %}colMS{% endblock %}
+
+{% block content %}
+
+
+
{{object}}
+
+| Domaine | {{object.processus.domaine.url|safe}} |
+| Processus | {{object.processus.url|safe}} |
+| Situation emblématique | {{object.situation|linebreaksbr}} |
+| Compétences visées | L'éducateur social, l'éducatrice sociale:
+{% for c in object.competence_set.all %}- {{c.nom}} ({{c.code}})
+{% if user.is_authenticated %}
+{% for sc in c.souscompetence_set.all %} -- {{sc.nom}} {%endfor %}{% endif %}{% endfor %} |
+
+| Objectifs à atteindre | {% for c in object.objectif_set.all %}- {{c}} {% endfor %} |
+| Didactique | {{ object.didactique }} |
+
+| Evaluation | {{object.evaluation|linebreaksbr}} |
+| Type | {{object.type}}, obligatoire |
+| Semestre | Sem. {{object.semestre}} |
+{% if object.periode_presentiel > 0 %}
+| Présentiel | {{object.periode_presentiel}} heures |
+{% endif %}
+{% if object.pratique_prof > 0 %}
+| Pratique prof. | {{object.pratique_prof}} heures |
+{% endif %}
+{% if object.travail_perso > 0 %}
+| Travail perso. | {{object.travail_perso}} heures |
+{% endif %}
+| Responsable | {{object.processus.domaine.responsable.descr|safe}} |
+
+
Imprimer en PDF
+
+
+{% endblock %}
+
+
diff --git a/templates/cms/processus_detail.html b/templates/cms/processus_detail.html
index abb8f71..0d37507 100644
--- a/templates/cms/processus_detail.html
+++ b/templates/cms/processus_detail.html
@@ -12,7 +12,7 @@
{{object}}
-| Description | {{object.description}} |
+| Description | {{object.description}} |
| Compétences visées | L'éducateur social, l'éducatrice sociale:
{% for m in object.module_set.all %}{% for c in m.competences.all %}
- {{c.libelle}} ({{c.code}}) {% endfor %}{% endfor %} |