--- loncom/interface/courseprefs.pm 2016/11/13 15:16:40 1.83
+++ loncom/interface/courseprefs.pm 2017/02/07 15:44:23 1.84
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set configuration settings for a course
#
-# $Id: courseprefs.pm,v 1.83 2016/11/13 15:16:40 raeburn Exp $
+# $Id: courseprefs.pm,v 1.84 2017/02/07 15:44:23 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2057,14 +2057,20 @@ sub print_courseinfo {
} else {
$replace = &mt('To replace the standard title for a course role, enter a title, otherwise leave blank');
}
+ my ($editmap,$editsyllabus);
+ unless ($noedit) {
+ $editmap = (' 'x2).
+ '".
+ &mt('Select Map').'
'.
+ &mt('Modification may make assessment data inaccessible!').
+ '';
+ $editsyllabus = &mt('[_1]Edit[_2]','',
+ '');
+ }
my %items = (
'url' => {
- text => ''.&mt($itemtext->{'url'}).''.(' 'x2).
- '".
- &mt('Select Map').'
'.
- &mt('Modification may make assessment data inaccessible!').
- '',
+ text => ''.&mt($itemtext->{'url'}).''.$editmap,
input => 'textbox',
size => '55',
advanced => 1
@@ -2109,8 +2115,7 @@ sub print_courseinfo {
'externalsyllabus' => {
text => ''.&mt($itemtext->{'externalsyllabus'}).'
'.
&mt('(Syllabus type in use)').(' ' x2).
- &mt('[_1]Edit[_2]','',
- ''),
+ $editsyllabus,
},
'hidefromcat' => {
text => ''.&mt($itemtext->{'hidefromcat'}).'
'.