Competences
This commit is contained in:
parent
e490cde92d
commit
12ce9c7900
3 changed files with 42 additions and 2 deletions
12
cms/admin.py
12
cms/admin.py
|
|
@ -35,6 +35,18 @@ class ModuleAdmin(admin.ModelAdmin):
|
|||
form = ModuleAdminForm
|
||||
inlines = [CompetenceInline,]
|
||||
extra = 0
|
||||
fields = (('nom'),
|
||||
('situation'),
|
||||
('contenu', 'contenu_published'),
|
||||
('didactique', 'didactique_published'),
|
||||
('evaluation', 'evaluation_published'),
|
||||
('periode_presentiel', 'travail_perso', 'pratique_prof'),
|
||||
('type', 'semestre'),
|
||||
('sem1', 'sem2'),
|
||||
('sem3', 'sem4'),
|
||||
('sem5', 'sem6'),
|
||||
('processus'),
|
||||
)
|
||||
|
||||
|
||||
class ProcessusAdmin(admin.ModelAdmin):
|
||||
|
|
|
|||
|
|
@ -120,9 +120,9 @@ class Module(models.Model):
|
|||
situation = models.TextField()
|
||||
evaluation = models.TextField()
|
||||
contenu = models.TextField()
|
||||
periode_presentiel = models.IntegerField(verbose_name='Période en présentiel')
|
||||
periode_presentiel = models.IntegerField(verbose_name='Présentiel')
|
||||
travail_perso = models.IntegerField(verbose_name = 'Travail personnel')
|
||||
pratique_prof = models.IntegerField(default=0, verbose_name='Pratique professionnelle')
|
||||
pratique_prof = models.IntegerField(default=0, verbose_name='Pratique prof.')
|
||||
didactique = models.TextField()
|
||||
evaluation = models.TextField()
|
||||
|
||||
|
|
|
|||
28
templates/cms/competence_list.html
Normal file
28
templates/cms/competence_list.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ block.super }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
<h1>Liste des compétences</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 %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue