--- loncom/interface/loncoursegroups.pm 2009/03/08 21:49:33 1.96 +++ loncom/interface/loncoursegroups.pm 2009/05/07 15:25:37 1.97 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: loncoursegroups.pm,v 1.96 2009/03/08 21:49:33 weissno Exp $ +# $Id: loncoursegroups.pm,v 1.97 2009/05/07 15:25:37 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1612,33 +1612,34 @@ sub groupsettings_options { 'lett' => 'Letters, numbers and underscore only', 'doyo' => 'Different subsets of the chosen collaborative tools '. 'for different group members?', + 'gran' => 'Granularity', + 'dquo' => 'Disk quota', ); my ($crsquota,$freespace,$maxposs) = &get_quota_constraints($action,$stored); - $r->print(&Apache::lonhtmlcommon::topic_bar($image,$lt{'gnde'}).' -
'.$lt{'gnam'}.': | --'); + $r->print(&Apache::lonhtmlcommon::topic_bar($image,$lt{'gnde'})); + + # Group Name + $r->print(&Apache::lonhtmlcommon::start_pick_box() + .&Apache::lonhtmlcommon::row_title($lt{'gnam'}) + ); if ($action eq 'create') { - $r->print(' ('. - $lt{'lett'}.')'); + $r->print('' + .' (' + .$lt{'lett'}.')' + ); } else { $r->print(''.$env{'form.groupname'}); } - $r->print(<<"END"); - | -||||||||||||||||
$lt{'desc'}: | -- | -||||||||||||||||
$lt{'func'}: | -END + $r->print(&Apache::lonhtmlcommon::row_closure()); + + # Group Title + $r->print(&Apache::lonhtmlcommon::row_title($lt{'desc'}) + .'' + .&Apache::lonhtmlcommon::row_closure() + ); + + # Collaborative Tools my $numitems = keys(%{$functions}); my $halfnum = int($numitems/2); my $remnum = $numitems%2; @@ -1646,48 +1647,61 @@ END $halfnum ++; } my @allfunctions = sort(keys (%{$functions})); - for (my $i=0; $i<$halfnum; $i++) { - $r->print('- | '); - } - $r->print(' | '. - ' | ||||||||||||||
'); - for (my $j=$halfnum; $j<@allfunctions; $j++) { - $r->print(' | - | '); - } - if ($remnum) { - $r->print(' | '); + + $r->print(&Apache::lonhtmlcommon::row_title($lt{'func'}) + .' |
' + ); + if ($i == $halfnum - 1) { + $r->print(' | ||||||||||
- - | -||||||||||
'.&mt('Granularity:').' | -'.$lt{'doyo'}.' '); + $r->print(' |