</div>
<br />
+{% if messages %}
+ <div class="messages">
+ {% for message in messages %}
+ <div{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</div>
+ {% endfor %}
+ </div>
+{% endif %}
+<br />
+
{% include_container data.chartcontainer 500 '100%' %}
{% endblock answers %}
template_name='exam/scores.html'
def score_data_setup(self, x, y):
+ if not x['x']:
+ messages.warning(self.request, _("You must add one new score at least to access to the statistics."))
+
chartdata = x
i = 1
for data in y:
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-07-29 10:41+0200\n"
+"POT-Creation-Date: 2015-08-04 22:52+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Guillaume Pellerin <yomguy@parisson.com>\n"
"Language-Team: LANGUAGE <lists@parisson.com>\n"
"Il y a une une erreur lors de votre soumission de copie. Merci de vérifier "
"votre fichier ou de réessayer plus tard."
-#: exam/views.py:279
+#: exam/views.py:217
+msgid "You must add one new score at least to access to the statistics."
+msgstr ""
+
+#: exam/views.py:282
msgid "all courses"
msgstr "toutes les matières"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-07-29 10:41+0200\n"
+"POT-Creation-Date: 2015-08-04 22:52+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Guillaume Pellerin <yomguy@parisson.com>\n"
"Language-Team: LANGUAGE <lists@parisson.com>\n"
"Il y a une une erreur lors de votre soumission de copie. Merci de vérifier "
"votre fichier ou de réessayer plus tard."
-#: exam/views.py:279
+#: exam/views.py:217
+msgid "You must add one new score at least to access to the statistics."
+msgstr ""
+"Vous devez ajouter au moins une nouvelle note pour accéder aux statistiques."
+
+#: exam/views.py:282
msgid "all courses"
msgstr "toutes les matières"