From abee61762283ee141def5e9af1293d094d680b57 Mon Sep 17 00:00:00 2001 From: Lyla Fischer Date: Thu, 5 Apr 2012 14:18:22 -0400 Subject: [PATCH] check button and "we already started" announcement Changed the format of the check/submit button so that the exam submission makes more sense; added a disclaimer to the enrollment number so that new students know that they will be disadvantaged. --- djangoapps/courseware/modules/capa_module.py | 11 +++++------ templates/create_account.html | 7 +++++-- templates/problem.html | 9 +++++++-- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/djangoapps/courseware/modules/capa_module.py b/djangoapps/courseware/modules/capa_module.py index 7ec92ecd44..71f76fa66a 100644 --- a/djangoapps/courseware/modules/capa_module.py +++ b/djangoapps/courseware/modules/capa_module.py @@ -73,7 +73,9 @@ class Module(XModule): content={'name':self.name, 'html':html} - check_button = True + # We using strings as truthy values, because the terminology of the check button + # is context-specific. + check_button = "Grade" if self.max_attempts else "Check" reset_button = True save_button = True @@ -96,10 +98,6 @@ class Module(XModule): if not self.lcp.done: reset_button = False - attempts_str = "" - if self.max_attempts != None: - attempts_str = " ({a}/{m})".format(a=self.attempts, m=self.max_attempts) - # We don't need a "save" button if infinite number of attempts and non-randomized if self.max_attempts == None and self.rerandomize != "always": save_button = False @@ -122,7 +120,8 @@ class Module(XModule): 'save_button' : save_button, 'answer_available' : self.answer_available(), 'ajax_url' : self.ajax_url, - 'attempts': attempts_str, + 'attempts_used': self.attempts, + 'attempts_allowed': self.max_attempts, 'explain': explain }) if encapsulate: diff --git a/templates/create_account.html b/templates/create_account.html index 40cfaacd1c..3eee7a6bc1 100644 --- a/templates/create_account.html +++ b/templates/create_account.html @@ -5,7 +5,10 @@ - +

+ Please note that 6.002x has already started. + Several assignment due dates for 6.002x have already passed. It is now impossible for newly enrolled students to get 100% of the points in the course, although new students can still earn points for assignments whose due dates have not passed, and students have access to all of the course material that has been released for the course. +

<% if 'error' in locals(): e = error %> @@ -69,5 +72,5 @@ -
+ diff --git a/templates/problem.html b/templates/problem.html index 965f5a9c38..f332dda378 100644 --- a/templates/problem.html +++ b/templates/problem.html @@ -7,10 +7,10 @@ % if check_button: - + % endif % if reset_button: - + % endif % if save_button: @@ -21,5 +21,10 @@ % if explain : Explanation % endif + % if attempts_allowed : +
+ You have used ${ attempts_used } of ${ attempts_allowed } submissions +
+ % endif