[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 04 Jan 2006 05:56:16 -0000


albertel		Wed Jan  4 00:56:16 2006 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - BIUG#4538, blank feedback for handgraded problems in answer state, swtich ting to red backgrounds and adding feedback of 'Nothing submitted.'
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.185 loncom/homework/inputtags.pm:1.186
--- loncom/homework/inputtags.pm:1.185	Thu Dec  1 13:46:31 2005
+++ loncom/homework/inputtags.pm	Wed Jan  4 00:56:16 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.185 2005/12/01 18:46:31 albertel Exp $
+# $Id: inputtags.pm,v 1.186 2006/01/04 05:56:16 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -622,7 +622,12 @@
 	$bgcolor=$possiblecolors{'correct'};
 	$button=0;
     } elsif ($award eq '') {
-	$bgcolor=$possiblecolors{'not_charged_try'};
+	if ($handgrade && $Apache::inputtags::status[-1] eq 'SHOW_ANSWER') {
+	    $message = &mt("Nothing submitted.");
+	    $bgcolor=$possiblecolors{'charged_try'};
+	} else {
+	    $bgcolor=$possiblecolors{'not_charged_try'};
+	}
 	$button=1;
     } else {
 	$message = &mt("Unknown message").": $award";