[LON-CAPA-cvs] cvs: loncom /interface lonsyllabus.pm
bisitz
bisitz@source.lon-capa.org
Fri, 04 Sep 2009 16:51:11 -0000
bisitz Fri Sep 4 16:51:11 2009 EDT
Modified files:
/loncom/interface lonsyllabus.pm
Log:
Corrected output for syllabus in edit mode:
- Removed unbalanced and unnecessary <p> tags
- XHTML: Added dummy action to <form>
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.94 loncom/interface/lonsyllabus.pm:1.95
--- loncom/interface/lonsyllabus.pm:1.94 Wed Sep 2 12:39:26 2009
+++ loncom/interface/lonsyllabus.pm Fri Sep 4 16:51:11 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Syllabus
#
-# $Id: lonsyllabus.pm,v 1.94 2009/09/02 12:39:26 droeschl Exp $
+# $Id: lonsyllabus.pm,v 1.95 2009/09/04 16:51:11 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -363,7 +363,7 @@
# ---------------------------------------------------------------- Get syllabus
if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) {
if ($allowed) {
- $r->print('<form method="post">'.
+ $r->print('<form method="post" action="">'.
'<input type="hidden" name="forceedit" value="edit" />');
}
my @htmlids=();
@@ -406,9 +406,6 @@
}
$message=&Apache::lontexconvert::msgtexconverted($message);
if ($target ne 'tex') {
- if ($allowed) {
- $r->print('<p>');
- }
&Apache::lontemplate::print_template($r, $syllabusfields{$field}, $message,$allowed,'LC_Box');
} else {
$r->print('\\\\\textbf{'.$syllabusfields{$field}.'}\\\\'.
@@ -418,7 +415,6 @@
}
if ($allowed) {
if ($target ne 'tex') {
- $r->print('</p>');
&Apache::lontemplate::print_editbox_template($r, $syllabus{$field}, $field);
}
}