From 790525c8a77fc1ec171c2befcfbcaec99f666c0e Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 18 Jul 2014 08:54:11 +0200 Subject: [PATCH] display submitted scripts, add help --- teleforma/exam/templates/exam/inc/script_list.html | 2 +- teleforma/exam/templates/exam/script_form.html | 6 ++++-- teleforma/exam/views.py | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/teleforma/exam/templates/exam/inc/script_list.html b/teleforma/exam/templates/exam/inc/script_list.html index 7b72c1c5..1a8bf9dd 100644 --- a/teleforma/exam/templates/exam/inc/script_list.html +++ b/teleforma/exam/templates/exam/inc/script_list.html @@ -33,7 +33,7 @@ $(document).ready(function(){ {% for script in object_list %} - + {{ script.course.title }} {{ script.session }} {{ script.type }} diff --git a/teleforma/exam/templates/exam/script_form.html b/teleforma/exam/templates/exam/script_form.html index 8a3c467e..7e3a3593 100644 --- a/teleforma/exam/templates/exam/script_form.html +++ b/teleforma/exam/templates/exam/script_form.html @@ -33,7 +33,9 @@
-
Merci de fournir des fichiers au format PDF uniquement et nommés sans accents ni caractères spéciaux.
+
Merci de fournir un seul fichier au format PDF uniquement et nommés sans accents ni caractères spéciaux.
+ +
Pour fusionner des fichiers PDF, vous pouvez utiliser un éditeur PDF ou bien ce service en ligne gratuit.
{% csrf_token %} @@ -60,4 +62,4 @@
-{% endblock answers %} \ No newline at end of file +{% endblock answers %} diff --git a/teleforma/exam/views.py b/teleforma/exam/views.py index 7dd8bfb5..4296e13b 100644 --- a/teleforma/exam/views.py +++ b/teleforma/exam/views.py @@ -73,8 +73,9 @@ class ScriptsPendingView(ScriptsView): user = self.request.user period = Period.objects.get(id=self.kwargs['period_id']) Q1 = Q(status=3, author=user, period=period) - Q2 = Q(status=3, corrector=user, period=period) - scripts = Script.objects.filter(Q1 | Q2) + Q2 = Q(status=2, author=user, period=period) + Q3 = Q(status=3, corrector=user, period=period) + scripts = Script.objects.filter(Q1 | Q2 | Q3) return scripts def get_context_data(self, **kwargs): -- 2.39.5