Index: openacs-4/packages/dotlrn/www/admin/clubs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/clubs.tcl,v diff -u -r1.13.6.1 -r1.13.6.2 --- openacs-4/packages/dotlrn/www/admin/clubs.tcl 25 Aug 2004 15:50:58 -0000 1.13.6.1 +++ openacs-4/packages/dotlrn/www/admin/clubs.tcl 30 Sep 2004 17:14:09 -0000 1.13.6.2 @@ -23,6 +23,8 @@ @creation-date 2001-12-03 @version $Id$ } -query { + {orderby "pretty_name,asc"} + page:optional } -properties { title:onevalue context_bar:onevalue @@ -35,12 +37,51 @@ set title [parameter::get -localize -parameter clubs_pretty_plural] set context_bar [list $title] -db_multirow clubs select_clubs {} { - set description [ad_quotehtml $description] -} - # Some of the en_US messages in the adp use these variables set clubs_pretty_name [parameter::get -localize -parameter clubs_pretty_name] set clubs_pretty_plural [parameter::get -localize -parameter clubs_pretty_plural] +set actions [list "[_ dotlrn.new_community]" "club-new"] + +template::list::create \ + -name clubs \ + -multirow clubs \ + -actions $actions \ + -key community_id \ + -page_size 50 \ + -page_query_name clubs_pagination \ + -elements { + pretty_name { + label "[_ dotlrn.community_header_name]" + orderby_asc {pretty_name asc} + orderby_desc {pretty_name desc} + link_url_col url + } + description { + label "[_ dotlrn.Description]" + } + n_members { + label "[_ dotlrn.Members]" + orderby_asc {n_members asc} + orderby_desc {n_members desc} + } + actions { + label "[_ dotlrn.Actions]" + display_template { +
+ + + #dotlrn.administer_link# + + +
+ } + } + + } + +db_multirow clubs select_clubs {} { + set description [ad_quotehtml $description] +} + ad_return_template