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

bisitz bisitz@source.lon-capa.org
Mon, 10 Aug 2009 16:32:33 -0000


bisitz		Mon Aug 10 16:32:33 2009 EDT

  Modified files:              
    /loncom/interface/statistics	lonstudentassessment.pm 
  Log:
  - Moved "Generate Chart" button to last position at screen header
  - Moved status bar between options and buttons
  - Exclude status bar from &mt call
  - Added error style to error message about missing navmap
  - Localized time output in chart headline
  
  
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.155 loncom/interface/statistics/lonstudentassessment.pm:1.156
--- loncom/interface/statistics/lonstudentassessment.pm:1.155	Sun May 17 23:13:49 2009
+++ loncom/interface/statistics/lonstudentassessment.pm	Mon Aug 10 16:32:32 2009
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstudentassessment.pm,v 1.155 2009/05/17 23:13:49 bisitz Exp $
+# $Id: lonstudentassessment.pm,v 1.156 2009/08/10 16:32:32 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -361,19 +361,19 @@
     $Str .= &CreateAndParseOutputDataSelector();
     $Str .= '</td></tr>'."\n";
     $Str .= '</table>'."\n";
-    $Str .= '<input type="submit" name="Generate Chart" value="'.
-        &mt('Generate Chart').'" />';
-    $Str .= '&nbsp;'x5;
+    $Str .= '<p>'
+           .&mt('Status:').' '
+           .'<input type="text" name="stats_status" size="60" value="" readonly="readonly" />'
+           .'</p>';
     $Str .= '<input type="submit" name="selectstudent" value="'.
         &mt('Select One Student').'" />';
     $Str .= '&nbsp;'x5;
     $Str .= '<input type="submit" name="ClearCache" value="'.
         &mt('Clear Caches').'" />';
-    $Str .= '<p>';
-    $Str .= 
-        &mt('Status [_1]',
-            '<input type="text" name="stats_status" size="60" value="" readonly="readonly" />');
-    $Str .= '</p>';
+    $Str .= '<p>'
+           .'<input type="submit" name="Generate Chart"'
+           .' value="'.&mt('Generate Chart').'" />'
+           .'</p>';
     return $Str;
 }
 
@@ -663,9 +663,9 @@
         &Apache::lonstatistics::selected_sequences_with_assessments();
     if (! ref($navmap)) {
         # Unable to get data, so bail out
-        $r->print("<h3>".
-                  &mt('Unable to retrieve course information.').
-                  '</h3>');
+        $r->print('<p class="LC_error">'
+                 .&mt('Unable to retrieve course information.')
+                 .'</p>');
     }
 
     # If we're showing links, show a checkbox to open in new
@@ -682,7 +682,7 @@
 
     #
     $r->print("<h3>".$env{'course.'.$env{'request.course.id'}.'.description'}.
-              "&nbsp;&nbsp;".localtime(time)."</h3>");
+              "&nbsp;&nbsp;".&Apache::lonlocal::locallocaltime(time)."</h3>");
     #
     if ($chosen_output->{'base'} !~ /^final table/) {
         $r->print("<h3>".&mt($chosen_output->{'shortdesc'})."</h3>");