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

bisitz bisitz@source.lon-capa.org
Wed, 17 Jun 2009 13:00:38 -0000


bisitz		Wed Jun 17 13:00:38 2009 EDT

  Modified files:              
    /loncom/interface	lonpdfupload.pm 
  Log:
  - Added breadcrumbs
  - Wrap Upload button in <p>aragraph (padding)
  
  
Index: loncom/interface/lonpdfupload.pm
diff -u loncom/interface/lonpdfupload.pm:1.12 loncom/interface/lonpdfupload.pm:1.13
--- loncom/interface/lonpdfupload.pm:1.12	Mon May 25 12:54:18 2009
+++ loncom/interface/lonpdfupload.pm	Wed Jun 17 13:00:38 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # PDF Form Upload Handler
 #
-# $Id: lonpdfupload.pm,v 1.12 2009/05/25 12:54:18 bisitz Exp $
+# $Id: lonpdfupload.pm,v 1.13 2009/06/17 13:00:38 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -65,7 +65,15 @@
     $env{'request.uri'}=$r->uri;
     $r->content_type('text/html');
     $r->send_http_header();
-    $r->print(&Apache::loncommon::start_page('Upload PDF Form'));
+
+    # Breadcrumbs
+    my $brcrum = [{'href' => '/pdfupload',
+                   'text' => 'Upload PDF Form'}];
+
+    $r->print(&Apache::loncommon::start_page('Upload PDF Form',
+                                             undef,
+                                             {'bread_crumbs' => $brcrum,})
+    );
 
     #load post data into environment
     &Apache::lonacc::get_posted_cgi($r);
@@ -164,7 +172,9 @@
        .'<input type="file" name="file" id="filename" />'
        .&Apache::lonhtmlcommon::row_closure(1)
        .&Apache::lonhtmlcommon::end_pick_box()
+       .'<p>'
        .'<input type="submit" name="Uploaded" value="'.$lt{'submit'}.'" />'
+       .'</p>'
        .'</form>'
        .'<br />';