[LON-CAPA-cvs] cvs: loncom /interface lonmanagekeys.pm
bisitz
bisitz@source.lon-capa.org
Wed, 15 Apr 2009 11:16:44 -0000
bisitz Wed Apr 15 11:16:44 2009 EDT
Modified files:
/loncom/interface lonmanagekeys.pm
Log:
Optimized course/domain selection screen:
Replaced hardcoded table (rev 1.23) by standard pickbox
Index: loncom/interface/lonmanagekeys.pm
diff -u loncom/interface/lonmanagekeys.pm:1.23 loncom/interface/lonmanagekeys.pm:1.24
--- loncom/interface/lonmanagekeys.pm:1.23 Thu Feb 19 22:11:53 2009
+++ loncom/interface/lonmanagekeys.pm Wed Apr 15 11:16:44 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to manage course access keys
#
-# $Id: lonmanagekeys.pm,v 1.23 2009/02/19 22:11:53 schafran Exp $
+# $Id: lonmanagekeys.pm,v 1.24 2009/04/15 11:16:44 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -272,16 +272,22 @@
&Apache::loncommon::content_type($r,'text/html');
$r->send_http_header;
$r->print(&header().&Apache::loncommon::coursebrowser_javascript());
- $r->print('<table><tr><td>'
- .&mt('Course ID of Key Authority').':</td><td> <input input type="text" size="25" name="course" value="" />');
- $r->print(&Apache::loncommon::selectcourse_link(
- 'keyform','course','domain',
- undef,undef,undef,'Course'));
- $r->print('</td></tr>');
- $r->print('<tr><td>'.&mt('Domain').':</td><td> '.&Apache::loncommon::select_dom_form(
- $env{'request.role.domain'},'domain'));
- $r->print('</td></tr></table><input type="submit" value="'.&mt('Next').'" />');
- $r->print('</form>'.&Apache::loncommon::end_page());
+ $r->print(&Apache::lonhtmlcommon::start_pick_box()
+ .&Apache::lonhtmlcommon::row_title(&mt('Course ID of Key Authority'))
+ .'<input input type="text" size="25" name="course" value="" />'
+ .' '.&Apache::loncommon::selectcourse_link(
+ 'keyform','course','domain',
+ undef,undef,undef,'Course')
+ .&Apache::lonhtmlcommon::row_closure()
+ .&Apache::lonhtmlcommon::row_title(&mt('Domain'))
+ .&Apache::loncommon::select_dom_form($env{'request.role.domain'},'domain')
+ .&Apache::lonhtmlcommon::row_closure(1)
+ .&Apache::lonhtmlcommon::end_pick_box()
+ );
+ $r->print('<input type="submit" value="'.&mt('Next').'" />'
+ .'</form>'
+ .&Apache::loncommon::end_page()
+ );
}
return OK;
}