[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
raeburn
raeburn at source.lon-capa.org
Tue Jul 11 15:33:02 EDT 2023
raeburn Tue Jul 11 19:33:02 2023 EDT
Modified files:
/loncom/interface londocs.pm
Log:
- Satisfy w3c HTML validation
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.700 loncom/interface/londocs.pm:1.701
--- loncom/interface/londocs.pm:1.700 Tue Jul 11 12:44:18 2023
+++ loncom/interface/londocs.pm Tue Jul 11 19:33:02 2023
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.700 2023/07/11 12:44:18 raeburn Exp $
+# $Id: londocs.pm,v 1.701 2023/07/11 19:33:02 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4554,7 +4554,7 @@
} else {
$reinit = &mt('(re-initialize course to access)');
}
- $line.='<td class="LC_docs_entry_commands"'.$tdalign.'><span class="LC_nobreak">'.$editlink.$renamelink;
+ $line.='<td class="LC_docs_entry_commands"'.$tdalign.'><span class="LC_nobreak">'.$editlink.$renamelink.'</span>';;
if ($orig_url =~ /$LONCAPA::assess_re/) {
$line.= '<br />';
if ($curralias ne '') {
@@ -4565,7 +4565,7 @@
$lt{'sa'}.'</a></span>';
}
}
- $line.='</td><td>';
+ $line.='</td><td><span class="LC_nobreak">';
my ($link,$nolink);
if (($url=~m{/adm/(coursedocs|supplemental)}) || (!$allowed && $url)) {
if ($allowed && !$env{'request.role.adv'} && !$isfolder && !$ispage) {
@@ -6565,7 +6565,7 @@
$help{'Web_Page'}
</form>
NWEBFORM
-
+ my $showpath = &HTML::Entities::encode($env{'form.folderpath'},'<>&"');
my @ids=&Apache::lonnet::current_machine_ids();
my $machines_str = "'".join("','", at ids)."'";
my (%is_home,%toppath,$rolehomes);
@@ -6663,7 +6663,7 @@
"resize_scrollbox('contentscroll','1','0');",
"toggleExampleText();",'template').'<br />';
my $templatepreview = '<a href="#" target="sample" onclick="javascript:getExample(600,420,\'yes\',true); return false;">'.
- '<span id="newresexample">'.&mt('Example').'<span></a>';
+ '<span id="newresexample">'.&mt('Example').'</span></a>';
my $crsresform=(<<RESFORM);
<a class="LC_menubuttons_link" href="javascript:toggleCrsRes('res');">
$lt{'stpr'}</a>$help{'Course_Resource'}
@@ -6673,19 +6673,21 @@
<input type="hidden" name="active" value="bb" />
<p>
$pickdir
+ </p>
<div id="newstdproblem" style="display:none;">
+ <p>
<span class="LC_nobreak">$lt{'news'}?
<label><input type="radio" name="newsubdir" value="0" onclick="toggleNewsubdir(this.form);" checked="checked" $disabled />No</label>
<label><input type="radio" name="newsubdir" value="1" onclick="toggleNewsubdir(this.form);" $disabled />Yes</label>
</span><span id="newsubdir"></span>
<input type="hidden" name="newsubdirname" id="newsubdirname" value="" autocomplete="off" />
- </div>
</p>
+ </div>
$lt{'fnam'}
<input type="text" size="20" name="newresourcename" autocomplete="off" $disabled />
- <p>
<div id="newresource" style="display:none">
+ <p>
$lt{'addp'}
<label><input type="radio" name="newresourceadd" value="0" checked="checked" onclick="toggleNewInCourse(this.form);" $disabled />
$lt{'no'}</label>
@@ -6693,24 +6695,23 @@
$lt{'yes'}</label>
<span id="newrestitle"></span>
<input type="hidden" size="20" name="newresourcetitle" id="newresourcetitle" autocomplete="off" $disabled />
- </div>
</p>
+ </div>
<p>
$lt{'uste'}
<label><input type="radio" name="newresusetemp" value="0" checked="checked" onclick="toggleWithTemplate(this.form);" $disabled />
$lt{'no'}</label>
<label><input type="radio" name="newresusetemp" value="1" onclick="toggleWithTemplate(this.form);" $disabled />
$lt{'yes'}</label>
+ </p>
<div id="newrestemplate" style="display:none">
$templates
$templatepreview
</div>
- </p>
<span class="LC_nobreak">
- <input type="hidden" name="folderpath" value="$env{'form.folderpath'}" />
+ <input type="hidden" name="folderpath" value="$showpath" />
<input type="submit" name="newcrs" value="$lt{'crpr'}" $disabled />
</span>
- </div>
<div id="stdprobswitch" style="display:none;">
$rolehomes
<input type="button" name="switchfornewprob" value="$lt{'swit'}" onclick="switchForProb();" />
@@ -6830,7 +6831,7 @@
'aa' => ['Upload',$fileuploadform],
'bb' => ['Import',$importpubform],
'cc' => ['External',$externalform],
- 'dd' => ['Grading',$gradingform],
+ 'dd' => ['Assessment',$gradingform],
'ff' => ['Other',$specialdocumentsform],
);
unless ($container eq 'page') {
More information about the LON-CAPA-cvs
mailing list