From d0739c148411c6478c2f6579c34e6430a9441fa2 Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Mon, 15 Jan 2024 16:41:17 +0100 Subject: [PATCH] Fix missing quota view --- teleforma/exam/templates/exam/quotas.html | 33 +++++++++++++++++++++-- teleforma/exam/urls.py | 8 +++++- teleforma/forms.py | 1 - 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/teleforma/exam/templates/exam/quotas.html b/teleforma/exam/templates/exam/quotas.html index dedc3e16..46f740e7 100644 --- a/teleforma/exam/templates/exam/quotas.html +++ b/teleforma/exam/templates/exam/quotas.html @@ -12,31 +12,60 @@
+
+ + + + + + + +
+
+ + - + {% for quota in object_list %} + + - + {% endfor %} diff --git a/teleforma/exam/urls.py b/teleforma/exam/urls.py index d8977f19..64015b4f 100644 --- a/teleforma/exam/urls.py +++ b/teleforma/exam/urls.py @@ -32,7 +32,7 @@ # # Authors: Guillaume Pellerin -from teleforma.exam.views import MassScoreCreateView, ScoreCreateView, ScriptCreateView, ScriptView, ScriptsPendingView, ScriptsRejectedView, ScriptsScoreAllView, ScriptsScoreCourseView, ScriptsTreatedView, ScriptsView, get_correctors, get_mass_students +from teleforma.exam.views import MassScoreCreateView, ScoreCreateView, ScriptCreateView, ScriptView, ScriptsPendingView, ScriptsRejectedView, ScriptsScoreAllView, ScriptsScoreCourseView, ScriptsTreatedView, ScriptsView, QuotasView, get_correctors, get_mass_students from django.conf.urls import url @@ -51,4 +51,10 @@ urlpatterns = [ url(r'^scripts/get-correctors/$', get_correctors, name="teleforma-exam-get-correctors"), url(r'^scripts/get-mass-students/$', get_mass_students, name="teleforma-exam-get-mass-students"), + + + url(r'^quotas/periods/(?P.*)/list/$', + QuotasView.as_view(), + name="teleforma-exam-quotas"), + ] diff --git a/teleforma/forms.py b/teleforma/forms.py index 7cb8535f..7923269f 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -286,7 +286,6 @@ else: payment_schedule=data.get('payment_schedule'), subscription_fees=subscription_fees ) - import pdb;pdb.set_trace() student.save() student.courses.add(data.get('courses')) for course in Course.objects.filter(id__in=settings.TELEFORMA_REGISTER_COURSE_AUTOREGISTER): -- 2.39.5
{% trans "Corrector"%}{% trans "Period"%} {% trans "Course"%}{% trans "Session"%} {% trans "date start"%} {% trans "date end"%} {% trans "Pending"%} {% trans "Marked"%} {% trans "Value"%}{% trans "Level"%} (%){% trans "Level"%}
{{ quota.corrector.username }}{{ quota.period.name }} {{ quota.course.title }}{{ quota.session }} {{ quota.date_start }} {{ quota.date_end }} {{ quota.pending_script_count }} {{ quota.marked_script_count }} {{ quota.value }}{{ quota.level|floatformat }} 100 %}style="color:#FF5050"{% endif %}>{{ quota.level|floatformat }}%