--- loncom/imspackages/imsimportdocs.pm 2009/11/20 14:39:32 1.26 +++ loncom/imspackages/imsimportdocs.pm 2009/11/20 18:25:34 1.29 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: imsimportdocs.pm,v 1.26 2009/11/20 14:39:32 bisitz Exp $ +# $Id: imsimportdocs.pm,v 1.29 2009/11/20 18:25:34 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -218,7 +218,11 @@ sub display_one { $r->print( '
' - .&Apache::lonhtmlcommon::topic_bar( + ); + + # Step 1 + $r->print( + &Apache::lonhtmlcommon::topic_bar( 1,&mt('Specify the Course Management system used to create the package')) .&mt('Please choose the CMS used to create your IMS content package:').' ' .'' ); + + # Step 2 $r->print( &Apache::lonhtmlcommon::topic_bar( 2,&mt('Locate the IMS content package you wish to upload')) @@ -237,6 +243,8 @@ sub display_one { .&mt('File:') .' ' ); + + # Buttons $r->print( '
' .'

' @@ -247,6 +255,8 @@ sub display_one { .' onclick="javascript:nextPage()" />' .'

' ); + + $r->print('
'); } @@ -338,7 +348,7 @@ sub display_two { # Start output: Step 3 and step 4 $r->print( - '
' + '' .&Apache::lonhtmlcommon::topic_bar( 3,&mt('Choose which content types you wish to import')) .'

' @@ -423,7 +433,7 @@ sub display_two { .' ' .'
' .'' ); @@ -609,47 +619,30 @@ sub display_three { if ($tempdir =~ m/^\/home\/httpd\/perl\/tmp\/$crs\/\d{10}/) { system("rm -r -f $tempdir"); } - $r->print(< - - - - - - - - - - - - - - - - - -
  -
5 -    - Your import is complete -
 
  -ENDBLOCK - my $initblock = qq| - - - -

Changes will become active for your current session after - - |; - $initblock .= ', '.&mt('or the next time you log in.'); - $initblock .= qq|

|; - $r->print($initblock); - $r->print(< -
-ENDBLOCKTWO + + # All done, display success message + $r->print( + '

' + .&mt('Your import is complete.') + .'

' + ); + # Re-initialize Button + my $initbutton = + ''; + $r->print( + '
' + .'' + .'' + .'' + .'

' + .&mt('Changes will become active for your current session after [_1]' + .', or the next time you log in.' + ,$initbutton) + .'

' + .'
' + ); } 1;