[LON-CAPA-cvs] cvs: loncom /interface lonevaluate.pm

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Wed, 26 Nov 2008 10:51:36 -0000


bisitz		Wed Nov 26 10:51:36 2008 EDT

  Modified files:              
    /loncom/interface	lonevaluate.pm 
  Log:
  Get rid of hardcoded styles and use standard LON-CAPA styles for headline, warning and success messages
  
  
Index: loncom/interface/lonevaluate.pm
diff -u loncom/interface/lonevaluate.pm:1.26 loncom/interface/lonevaluate.pm:1.27
--- loncom/interface/lonevaluate.pm:1.26	Fri Nov 21 20:17:11 2008
+++ loncom/interface/lonevaluate.pm	Wed Nov 26 10:51:36 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Evaluate
 #
-# $Id: lonevaluate.pm,v 1.26 2008/11/21 20:17:11 jms Exp $
+# $Id: lonevaluate.pm,v 1.27 2008/11/26 10:51:36 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -100,14 +100,13 @@
 </script>
 ENDJS
 
-            my $start_page = 
-	        &Apache::loncommon::start_page('Evaluate Resource',$js);
-	    $r->print('
-'.$start_page.'
-<h1>'.&mt('Thank you for your input!').'</h1>
-');
-       $r->print(&mt('Saving feedback: [_1]',
-		     &Apache::lonnet::put('nohist_resevaldata',\%currenteval,$rdomain,$rauth)));
+           my $start_page = &Apache::loncommon::start_page('Evaluate Resource',$js);
+           $r->print($start_page
+                     .'<h1>'.&mt('Thank you for your input!').'</h1>');
+           $r->print('<div class="LC_success">'
+                     .&mt('Saving feedback: [_1]'
+                         ,&Apache::lonnet::put('nohist_resevaldata',\%currenteval,$rdomain,$rauth))
+                     .'</div>');
            unless ($already) {
 	       $r->print('<br />'.&mt('Logging first evaluation'));
            }
@@ -115,7 +114,7 @@
             '<script type="text/javascript">setTimeout("goback()",2000);</script>'.&Apache::loncommon::end_page());
            return OK;
         } else {
-	    $warning=&mt('Please fill out all fields below');
+	    $warning=&mt('Please fill out all fields below.');
         }
    
     }
@@ -167,8 +166,8 @@
     );
     $r->print(<<ENDDOCUMENT);
 $start_page
-<h2><tt>$title</tt></h2><br /><br />
-<h3><font color="red">$warning</font></h3>
+<h2>$title</h2>
+<p class="LC_warning">$warning</p>
 $lt{'pleaserank'}<br />
 <form method="post" name="evaluation" action="/adm/evaluate">
 <input type="hidden" name="submiteval" value="true" />