[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm
bisitz
bisitz@source.lon-capa.org
Thu, 27 Nov 2008 15:15:06 -0000
bisitz Thu Nov 27 15:15:06 2008 EDT
Modified files:
/loncom/interface loncreateuser.pm
Log:
Role Templates
- Wraped buttons in fieldset
- Added white space after each button
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.263 loncom/interface/loncreateuser.pm:1.264
--- loncom/interface/loncreateuser.pm:1.263 Tue Nov 18 19:14:22 2008
+++ loncom/interface/loncreateuser.pm Thu Nov 27 15:15:06 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.263 2008/11/18 19:14:22 jms Exp $
+# $Id: loncreateuser.pm,v 1.264 2008/11/27 15:15:06 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2607,7 +2607,7 @@
my @template_roles = ("cc","in","ta","ep","st");
foreach my $role (@template_roles) {
$head_script .= &make_script_template($role);
- $button_code .= &make_button_code($role);
+ $button_code .= &make_button_code($role).' ';
}
$head_script .= "\n".$jsback."\n".'</script>'."\n";
$r->print(&Apache::loncommon::start_page('Custom Role Editor',$head_script));
@@ -2627,10 +2627,15 @@
'crl' => "Course Level",
'dml' => "Domain Level",
'ssl' => "System Level");
- $r->print(&mt('Select a Template').'<br />');
- $r->print('<form action="">');
- $r->print($button_code);
- $r->print('</form>');
+
+ $r->print('<div>'
+ .'<form action=""><fieldset>'
+ .'<legend>'.&mt('Select a Template').'</legend>'
+ .$button_code
+ .'</fieldset></form>'
+ .'</div>'
+ );
+
$r->print(<<ENDCCF);
<form name="form1" method="post">
<input type="hidden" name="phase" value="set_custom_roles" />
@@ -2733,7 +2738,7 @@
sub make_button_code {
my ($role) = @_;
my $label = &Apache::lonnet::plaintext($role);
- my $button_code = '<input type="button" onClick="set_'.$role.'()" value="'.$label.'" />';
+ my $button_code = '<input type="button" onClick="set_'.$role.'()" value="'.$label.'" />';
return ($button_code);
}
# ---------------------------------------------------------- Call to definerole