--- /dev/null
+{% extends "exam/scripts.html" %}
+{% load telemeta_utils %}
+{% load teleforma_tags %}
+{% load i18n %}
+
+{% block extra_javascript %}
+{% endblock extra_javascript %}
+
+{% block answers %}
+
+<div class="course_title">
+{% trans "Quotas and levels" %}
+</div>
+<br />
+
+<div id="users">
+ <table class="listing" width="100%">
+ <thead>
+ <tr>
+ <th>{% trans "Corrector"%}</th>
+ <th>{% trans "Course"%}</th>
+ <th>{% trans "date start"%}</th>
+ <th>{% trans "date end"%}</th>
+ <th>{% trans "Value"%}</th>
+ <th>{% trans "Level"%} (%)</th>
+ </tr>
+ </thead>
+ <tbody id="spacing" class="script-list">
+ {% for quota in object_list %}
+ <tr>
+ <td><a href="{% url teleforma-profile-detail quota.corrector.username %}">{{ quota.corrector.username }}</a></td>
+ <td>{{ quota.course.title }}</td>
+ <td>{{ quota.date_start }}</td>
+ <td>{{ quota.date_end }}</td>
+ <td>{{ quota.value }}</td>
+ <td>{{ quota.level }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+</div>
+
+
+{% endblock answers %}
url(r'^desk/periods/(?P<period_id>.*)/exam/scripts_treated/$', ScriptsTreatedView.as_view(), name="teleforma-exam-scripts-treated"),
url(r'^desk/periods/(?P<period_id>.*)/exam/scripts_rejected/$', ScriptsRejectedView.as_view(), name="teleforma-exam-scripts-rejected"),
+ url(r'^desk/periods/(?P<period_id>.*)/exam/quotas/$', QuotasView.as_view(), name="teleforma-exam-quotas"),
+
)
model = Script
fields = ['score']
+
+class QuotasView(ListView):
+
+ model = Quota
+ template_name='exam/quotas.html'
+
+ def get_context_data(self, **kwargs):
+ context = super(QuotasView, self).get_context_data(**kwargs)
+ context['period'] = Period.objects.get(id=self.kwargs['period_id'])
+ return context
+
+ @method_decorator(login_required)
+ def dispatch(self, *args, **kwargs):
+ return super(QuotasView, self).dispatch(*args, **kwargs)
\ No newline at end of file