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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 14 Jul 2006 18:17:59 -0000


albertel		Fri Jul 14 14:17:59 2006 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  
  - change the "Answer Submitted: Your final submission will be graded 
    after the due date." and "Your submission has been recorded.", to have 
    a yellow background
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.200 loncom/homework/inputtags.pm:1.201
--- loncom/homework/inputtags.pm:1.200	Fri Jul 14 14:12:16 2006
+++ loncom/homework/inputtags.pm	Fri Jul 14 14:17:58 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.200 2006/07/14 18:12:16 albertel Exp $
+# $Id: inputtags.pm,v 1.201 2006/07/14 18:17:58 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -541,10 +541,11 @@
     my $bgcolor='orange';
     my $added_computer_text=0;
     my %possiblecolors =
-	( 'correct' => '#aaffaa',
-	  'charged_try' => '#ffaaaa',
+	( 'correct'         => '#aaffaa',
+	  'charged_try'     => '#ffaaaa',
 	  'not_charged_try' => '#ffffaa',
-	  'no_message' => '#fffff',
+	  'no_grade'        => '#ffffaa',
+	  'no_message'      => '#ffffff',
 	  );
 
     my $part = $Apache::inputtags::part;
@@ -703,7 +704,7 @@
 	$button=1;
     } elsif ($award eq 'SUBMITTED') {
 	$message = &mt("Your submission has been recorded.");
-	$bgcolor=$possiblecolors{'correct'};
+	$bgcolor=$possiblecolors{'no_grade'};
 	$button=1;
     } elsif ($award eq 'DRAFT') {
 	$message = &mt("A draft copy has been saved.");
@@ -742,7 +743,7 @@
     if (lc($Apache::lonhomework::problemstatus) eq 'no'  && 
 	$Apache::inputtags::status[-1] ne 'SHOW_ANSWER') {
 	$message = &mt("Answer Submitted: Your final submission will be graded after the due date.");
-	$bgcolor=$possiblecolors{'correct'};
+	$bgcolor=$possiblecolors{'no_grade'};
 	$button=1;
     }
     if ($Apache::inputtags::status[-1] eq 'SHOW_ANSWER' &&