[LON-CAPA-cvs] cvs: loncom /interface lonmeta.pm
banghart
lon-capa-cvs@mail.lon-capa.org
Thu, 10 Aug 2006 21:14:13 -0000
banghart Thu Aug 10 17:14:13 2006 EDT
Modified files:
/loncom/interface lonmeta.pm
Log:
eliminate group field in absence of group
close some input tags
change POST to post on form tag
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.166 loncom/interface/lonmeta.pm:1.167
--- loncom/interface/lonmeta.pm:1.166 Tue Aug 8 17:32:36 2006
+++ loncom/interface/lonmeta.pm Thu Aug 10 17:14:10 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Metadata display handler
#
-# $Id: lonmeta.pm,v 1.166 2006/08/08 21:32:36 banghart Exp $
+# $Id: lonmeta.pm,v 1.167 2006/08/10 21:14:10 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -365,14 +365,20 @@
$r->print('<p>'.&mt('If you would like to associate this resource ([_1]) with a current or previous course, please select one from the list below, otherwise select, \'None\'','<tt>'.$res_uri.'</tt>').'</p>');
$output = &select_course();
$r->print($output.'<br /><input type="submit" name="store" value="'.
- &mt('Associate Resource With Selected Course').'">');
+ &mt('Associate Resource With Selected Course').'" />');
$r->print('</form>');
my ($port_path,$group) = &get_port_path_and_group($uri);
- $r->print('<br /><br /><form method="POST" action="'.$port_path.'">'.
+ my $group_input;
+ if ($group) {
+ $group_input = '<input type="hidden" name="group" value="'.$group.'" />'
+ } else {
+ $group_input = "";
+ }
+ $r->print('<br /><br /><form method="post" action="'.$port_path.'">'.
'<input type="hidden" name="currentpath" value="'.$path.'" />'.
- '<input type="hidden" name="group" value="'.$group.'" />'.
- '<input type="submit" name="cancel" value="'.&mt('Cancel').'">'.
+ $group_input.
+ '<input type="submit" name="cancel" value="'.&mt('Cancel').'" />'.
'</form>');
return;