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

bisitz bisitz at source.lon-capa.org
Wed Jan 15 13:48:35 EST 2014


bisitz		Wed Jan 15 18:48:35 2014 EDT

  Modified files:              
    /loncom/interface	lonsupportreq.pm lonparmset.pm 
  Log:
  Improved and consistent navigation and layout by using actionbox and confirm_success
  
  
  
Index: loncom/interface/lonsupportreq.pm
diff -u loncom/interface/lonsupportreq.pm:1.74 loncom/interface/lonsupportreq.pm:1.75
--- loncom/interface/lonsupportreq.pm:1.74	Tue Nov 26 03:17:06 2013
+++ loncom/interface/lonsupportreq.pm	Wed Jan 15 18:48:35 2014
@@ -1,5 +1,5 @@
 #
-# $Id: lonsupportreq.pm,v 1.74 2013/11/26 03:17:06 raeburn Exp $
+# $Id: lonsupportreq.pm,v 1.75 2014/01/15 18:48:35 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -555,9 +555,14 @@
             if ($r->uri eq '/adm/helpdesk') {
                 &print_header($r,$url,'process');
             }
-            $r->print('<h3>'.&mt('Support request failed').'</h3>'.
-                      '<span class="LC_error">'.
-                      &mt('Validation of the code you entered failed.').
+            $r->print(
+                '<h2>'.&mt('Support request failed').'</h2>'.
+                      &Apache::lonhtmlcommon::confirm_success(
+                        &mt('Validation of the code you entered failed.'),1).
+                '<br /><br />'.
+                &Apache::lonhtmlcommon::actionbox([
+                    &mt('[_1]Go back[_2] and try again',
+                        '<a href="javascript:history.go(-1)">','</a>')]).
                       &Apache::loncommon::end_page());
             return;
         }
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.542 loncom/interface/lonparmset.pm:1.543
--- loncom/interface/lonparmset.pm:1.542	Thu Dec  5 16:08:40 2013
+++ loncom/interface/lonparmset.pm	Wed Jan 15 18:48:35 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.542 2013/12/05 16:08:40 raeburn Exp $
+# $Id: lonparmset.pm,v 1.543 2014/01/15 18:48:35 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3678,11 +3678,17 @@
     $r->print($start_page.$breadcrumbs);
     &startSettingsScreen($r,'parmset',$crstype);
     my $timeshifted=&Apache::lonhtmlcommon::get_date_from_form('timeshifted');
-    $r->print(&mt('Shifting all dates such that [_1] becomes [_2]',
+    $r->print('<h2>'.&mt('Shift Dates').'</h2>'.
+              '<p>'.&mt('Shifting all dates such that [_1] becomes [_2]',
               &Apache::lonlocal::locallocaltime($env{'form.timebase'}),
-              &Apache::lonlocal::locallocaltime($timeshifted)));
+              &Apache::lonlocal::locallocaltime($timeshifted)).'</p>');
     my $delta=$timeshifted-$env{'form.timebase'};
     &dateshift($delta);
+    $r->print(
+        &Apache::lonhtmlcommon::confirm_success(&mt('Done')).
+        '<br /><br />'.
+        &Apache::lonhtmlcommon::actionbox(
+            ['<a href="/adm/parmset">'.&mt('Content and Problem Settings').'</a>']));
     &endSettingsScreen($r);
     $r->print(&Apache::loncommon::end_page());
 }




More information about the LON-CAPA-cvs mailing list