[LON-CAPA-cvs] cvs: rat / lonratedt.pm
bisitz
bisitz@source.lon-capa.org
Fri, 04 Dec 2009 11:13:58 -0000
bisitz Fri Dec 4 11:13:58 2009 EDT
Modified files:
/rat lonratedt.pm
Log:
- Don't include breadcrumbs twice (change needed due to recent changes in loncommon::start_page)
- Optimized editor button spacing; code style
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.97 rat/lonratedt.pm:1.98
--- rat/lonratedt.pm:1.97 Tue Jun 9 15:01:28 2009
+++ rat/lonratedt.pm Fri Dec 4 11:13:58 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Edit Handler for RAT Maps
#
-# $Id: lonratedt.pm,v 1.97 2009/06/09 15:01:28 bisitz Exp $
+# $Id: lonratedt.pm,v 1.98 2009/12/04 11:13:58 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -78,15 +78,25 @@
my $adv=shift;
my $output='<form method="post">';
if ($adv==1) {
- $output.='<input type="submit" name="forceadv" value="'.&mt('Edit').'" />'.
- &Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation');
+ $output.=
+ '<input type="submit" name="forceadv"'
+ .' value="'.&mt('Edit').'" />'
+ .&Apache::loncommon::help_open_topic(
+ 'Sequence_Advanced_Editor_Creation');
} else {
unless ($adv==2) {
- $output.='<input type="submit" name="forcesmp" value="'.&mt('Simple Edit').'" />'.
- &Apache::loncommon::help_open_topic('Sequence_Simple_Editor_Creation');
+ $output.=
+ '<input type="submit" name="forcesmp"'
+ .' value="'.&mt('Simple Edit').'" />'
+ .&Apache::loncommon::help_open_topic(
+ 'Sequence_Simple_Editor_Creation')
+ .' ';
}
- $output.='<input type="submit" name="forceadv" value="'.&mt('Advanced Edit').'" />'.
- &Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation');
+ $output.=
+ '<input type="submit" name="forceadv"'
+ .' value="'.&mt('Advanced Edit').'" />'
+ .&Apache::loncommon::help_open_topic(
+ 'Sequence_Advanced_Editor_Creation');
}
return $output.'</form>';
}
@@ -556,8 +566,8 @@
title => 'Simple Editor',
href => '',});
+ # Breadcrumbs are included by &start_page
my $start_page = &Apache::loncommon::start_page('Construction Space',$js)
- .&Apache::lonhtmlcommon::breadcrumbs('')
.&Apache::loncommon::head_subbox(
&Apache::loncommon::CSTR_pageheader()
.&buttons(2));
@@ -673,8 +683,8 @@
title => 'Resource Assembly Tool',
href => '',});
+ # Breadcrumbs are included by &start_page
$r->print(&Apache::loncommon::start_page('Edit Content of a Map')
- .&Apache::lonhtmlcommon::breadcrumbs('')
.&Apache::loncommon::head_subbox(
&Apache::loncommon::CSTR_pageheader()
.&buttons($adv))