]> git.parisson.com Git - teleforma.git/commitdiff
Reactivate answers message when seminar is complete but answers not validated yet
authorYoan Le Clanche <yoanl@pilotsystems.net>
Wed, 23 Dec 2020 10:44:07 +0000 (11:44 +0100)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Wed, 23 Dec 2020 10:44:07 +0000 (11:44 +0100)
teleforma/views/pro.py

index 29b089bfd4241ddd3590ca4a1c1ddbee8e183a8d..0edbf4ffaa011a6614e6d0285221bc77e0929be7 100644 (file)
@@ -243,14 +243,13 @@ class SeminarView(SeminarAccessMixin, DetailView):
         context['seminar_validated'] = validated
         delta_sec = context['delta_sec']
         if progress == 100 and not validated and self.template_name == 'teleforma/seminar_detail.html':
-            # Temporarily disabled due to free seminars
-            pass
-            #messages.info(self.request, _("You have successfully terminated your e-learning seminar. A training testimonial will be available as soon as the pedagogical team validate all your answers (48h maximum)."))
+            messages.info(self.request, _("You have successfully terminated your e-learning seminar. A training testimonial will be available as soon as the pedagogical team validate all your answers (48h maximum)."))
         elif progress < 100 and validated and self.template_name == 'teleforma/seminar_detail.html' and missing_steps == set('5'):
             messages.info(self.request, _("All your answers have been validated. You can now read the corrected documents (step 5)."))
         elif progress == 100 and validated and delta_sec >= 0 and self.template_name == 'teleforma/seminar_detail.html':
             messages.info(self.request, _("You have successfully terminated all steps of your e-learning seminar. You can now download your training testimonial below."))
         elif len(missing_steps) == 1:
+            
             if missing_steps == set(['4.5']):
                 messages.warning(self.request,
                                  _("Yours submissions have been submitted. They will be processed within 48 hours."))