Module_didactic_pub

This commit is contained in:
alazo 2017-05-03 20:37:06 +02:00
parent 5221b2b068
commit e4faab1cd5
3 changed files with 25 additions and 12 deletions

View file

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-05-03 18:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cms', '0003_auto_20170419_1409'),
]
operations = [
migrations.AlterModelOptions(
name='uploaddoc',
options={'verbose_name': 'UploadDoc'},
),
migrations.AddField(
model_name='module',
name='didactique_published',
field=models.BooleanField(default=False),
),
]

View file

@ -125,6 +125,7 @@ class Module(models.Model):
pratique_prof = models.IntegerField(default=0, verbose_name='Pratique professionnelle') pratique_prof = models.IntegerField(default=0, verbose_name='Pratique professionnelle')
didactique = models.TextField() didactique = models.TextField()
evaluation = models.TextField() evaluation = models.TextField()
didactique_published = models.BooleanField(default=False)
sem1 = models.IntegerField(default=0) sem1 = models.IntegerField(default=0)
sem2 = models.IntegerField(default=0) sem2 = models.IntegerField(default=0)
sem3 = models.IntegerField(default=0) sem3 = models.IntegerField(default=0)

View file

@ -1,9 +1,5 @@
{% extends "./base_site.html" %} {% extends "./base_site.html" %}
{% load i18n static %} {% load i18n static %}
{% block coltype %}colMS{% endblock %} {% block coltype %}colMS{% endblock %}
{% block bodyclass %}{{ block.super }}{% endblock %} {% block bodyclass %}{{ block.super }}{% endblock %}
@ -20,14 +16,6 @@
{% for fic in upload %} {% for fic in upload %}
<li><a href="{% url 'upload-detail' fic.id %}">{{ fic.titre }}</a></li> <li><a href="{% url 'upload-detail' fic.id %}">{{ fic.titre }}</a></li>
{% endfor %} {% endfor %}
</ol> </ol>
</div> </div>
{% endblock %} {% endblock %}