This commit is contained in:
root 2015-01-06 11:01:15 +01:00
parent 64b8ee4133
commit 182ba7f614
6 changed files with 31 additions and 34 deletions

View file

@ -19,8 +19,8 @@ OCCUPATION_CHOICES = (
)
TYPE_COTIZ_CHOICES = (
('etudiant', _(u"Étudiant")),
('normalien', _(u"Normalien")),
('etudiant', _(u"Normalien étudiant")),
('normalien', _(u"Normalien élève")),
('exterieur', _(u"Extérieur")),
)

View file

@ -21,6 +21,8 @@ from gestioncof.decorators import buro_required, cof_required
from gestioncof.widgets import TriStateCheckbox
from gestioncof.shared import lock_table, unlock_table, send_custom_mail
import re
@login_required
def home(request):
data = {"surveys": Survey.objects.filter(old = False).all(),
@ -94,6 +96,11 @@ class SurveyForm(forms.Form):
for name, value in self.cleaned_data.items():
if name.startswith('question_'):
yield (self.fields[name].question_id, value)
# Ajoute pour sondage pulms
def as_p_formate(self):
return 'Hello world !'
#return re.sub("[img (.+?)]", "<img src='$1' height='200'/>", self.as_p())
@login_required
def survey(request, survey_id):