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

wenzelju wenzelju@source.lon-capa.org
Tue, 15 Dec 2009 14:52:00 -0000


wenzelju		Tue Dec 15 14:52:00 2009 EDT

  Modified files:              
    /loncom/interface	lonpreferences.pm 
  Log:
  Added headings and a pick_box for 'Recent Roles Hotlist'.
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.180 loncom/interface/lonpreferences.pm:1.181
--- loncom/interface/lonpreferences.pm:1.180	Tue Dec 15 13:15:32 2009
+++ loncom/interface/lonpreferences.pm	Tue Dec 15 14:52:00 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.180 2009/12/15 13:15:32 wenzelju Exp $
+# $Id: lonpreferences.pm,v 1.181 2009/12/15 14:52:00 wenzelju Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -399,13 +399,20 @@
 </p>
 <form name="prefs" action="/adm/preferences" method="post">
 <input type="hidden" name="action" value="verify_and_change_rolespref" />
-<br /><label>'.&mt('Enable Recent '.$role.'s Hotlist:').'
-<input type="checkbox"'.$checked.' name="recentroles" value="true" /></label>
-<br />'.&mt('Number of '.$role.'s in Hotlist:').'
-<select name="recentrolesn" size="1">
-'.$options.'
-</select>
-<p>'.&mt('This list below can be used to <q>freeze</q> '.$lc_role.'s on your screen. Those marked as frozen will not be removed from the list, even if they have not been used recently.').'
+<br />'.
+'<h2>'.&mt('Recent '.$role.'s Hotlist').'</h2>'.
+&Apache::lonhtmlcommon::start_pick_box().
+&Apache::lonhtmlcommon::row_title('<label for="Hotlist">'.&mt('Enable Recent '.$role.'s Hotlist').'</label>').
+'<input id="Hotlist" type="checkbox"'.$checked.' name="recentroles" value="true" />'.
+&Apache::lonhtmlcommon::row_closure().
+&Apache::lonhtmlcommon::row_title('<label for="NumberOfRoles">'.&mt('Number of '.$role.'s in Hotlist').'</label>').
+'<select name="recentrolesn" size="1" id ="NumberOfRoles">'.
+$options.
+'</select>'.
+&Apache::lonhtmlcommon::row_closure(1).
+&Apache::lonhtmlcommon::end_pick_box().
+'<br/><h2>'.&mt('Freeze Roles').'</h2>'.
+'<p>'.&mt('This list below can be used to <q>freeze</q> '.$lc_role.'s on your screen. Those marked as frozen will not be removed from the list, even if they have not been used recently.').'
 </p>
 '.$roles_check_list.'
 <br />