[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm
raeburn
raeburn@source.lon-capa.org
Mon, 11 Oct 2010 14:36:04 -0000
raeburn Mon Oct 11 14:36:04 2010 EDT
Modified files:
/loncom/interface loncreateuser.pm
Log:
- user modification form needs closing </form> tag (omitted in 1.351 changes).
- Custom Role Edit result - breadcrumbe pushed into $brcrum array ref.
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.351 loncom/interface/loncreateuser.pm:1.352
--- loncom/interface/loncreateuser.pm:1.351 Fri Oct 8 01:59:39 2010
+++ loncom/interface/loncreateuser.pm Mon Oct 11 14:36:04 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.351 2010/10/08 01:59:39 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.352 2010/10/11 14:36:04 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1346,7 +1346,7 @@
}
$r->print(&Apache::lonhtmlcommon::echo_form_input(['phase','userrole','ccdomain','prevphase','currstate','ccuname','ccdomain']));
$r->print('<input type="hidden" name="currstate" value="" />');
- $r->print('<input type="hidden" name="prevphase" value="'.$env{'form.phase'}.'" />');
+ $r->print('<input type="hidden" name="prevphase" value="'.$env{'form.phase'}.'" /></form>');
return;
}
@@ -3929,21 +3929,22 @@
.$jsback."\n"
.'// ]]>'."\n"
.'</script>'."\n";
- my $brcrum = [{href => "javascript:backPage(document.customresult,'pickrole','')",
- text => "Pick custom role",
- faq => 282,
- bug => 'Instructor Interface',},
- {href => "javascript:backPage(document.customresult,'selected_custom_edit','')",
- text => "Edit custom role",
- faq => 282,
- bug => 'Instructor Interface',},
- {href => "javascript:backPage(document.customresult,'set_custom_roles','')",
- text => "Result",
- faq => 282,
- bug => 'Instructor Interface',
- help => 'Course_Editing_Custom_Roles'},
- ];
- my $args = { bread_crumbs => $brcrum,
+ push(@{$brcrum},
+ {href => "javascript:backPage(document.customresult,'pickrole','')",
+ text => "Pick custom role",
+ faq => 282,
+ bug => 'Instructor Interface',},
+ {href => "javascript:backPage(document.customresult,'selected_custom_edit','')",
+ text => "Edit custom role",
+ faq => 282,
+ bug => 'Instructor Interface',},
+ {href => "javascript:backPage(document.customresult,'set_custom_roles','')",
+ text => "Result",
+ faq => 282,
+ bug => 'Instructor Interface',
+ help => 'Course_Editing_Custom_Roles'},
+ );
+ my $args = { bread_crumbs => $brcrum,
bread_crumbs_component => 'User Management'};
$r->print(&Apache::loncommon::start_page('Save Custom Role',$jscript,$args));