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

bisitz bisitz@source.lon-capa.org
Thu, 14 Jan 2010 18:06:14 -0000


bisitz		Thu Jan 14 18:06:14 2010 EDT

  Modified files:              
    /loncom/interface	lonuserutils.pm 
  Log:
  - Optimized floating of classlist options in header
  - "Update Display" button in separate paragraph -> always left aligned / same place
  
  
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.110 loncom/interface/lonuserutils.pm:1.111
--- loncom/interface/lonuserutils.pm:1.110	Thu Jan 14 17:02:49 2010
+++ loncom/interface/lonuserutils.pm	Thu Jan 14 18:06:14 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA user accounts
 #
-# $Id: lonuserutils.pm,v 1.110 2010/01/14 17:02:49 bisitz Exp $
+# $Id: lonuserutils.pm,v 1.111 2010/01/14 18:06:14 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1448,8 +1448,12 @@
     }
     if (!(($context eq 'domain') && 
           (($env{'form.roletype'} eq 'course') || ($env{'form.roletype'} eq 'community')))) {
-        $r->print(' '.&list_submit_button(&mt('Update Display')).
-                  "\n</p>\n");
+        $r->print(
+            "\n</p>\n"
+           .'<p>'
+           .&list_submit_button(&mt('Update Display'))
+           ."</p>\n"
+        );
     }
     my ($indexhash,$keylist) = &make_keylist_array();
     my (%userlist,%userinfo,$clearcoursepick);
@@ -1688,7 +1692,7 @@
         $role_select .= '</select>';
         $output = '<label><span class="LC_nobreak">'
                  .&mt('Role: [_1]',$role_select)
-                 .'</span></label>';
+                 .'</span></label> ';
     }
     return $output;
 }
@@ -1743,7 +1747,9 @@
                 $markup .= '</option>'."\n";
             }
             $markup .= '</select>'."\n";
-            $output .= ('&nbsp;'x3).'<label>'.$title{$item}.': '.$markup.'</label>';
+            $output .= ('&nbsp;'x3).'<span class="LC_nobreak">'
+                      .'<label>'.$title{$item}.': '.$markup.'</label>'
+                      .'</span> ';
         }
     }
     return $output;