From 622c4e3427e442dfb2f91f40409fe2aa67635123 Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Sun, 19 Feb 2012 17:27:21 -0500 Subject: [PATCH] Eliminated save button where not relevant --HG-- branch : pmitros-capa-fixes --- courseware/modules/capa_module.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/courseware/modules/capa_module.py b/courseware/modules/capa_module.py index 08cb81d7bd..366d0463e4 100644 --- a/courseware/modules/capa_module.py +++ b/courseware/modules/capa_module.py @@ -94,6 +94,10 @@ class Module(XModule): 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 == False: + save_button = False + # Check if explanation is available, and if so, give a link explain="" if self.lcp.done and self.explain_available=='attempted':