Index: openacs-4/packages/attendance/www/admin/mark.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attendance/www/admin/mark.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/attendance/www/admin/mark.tcl 3 Aug 2005 09:29:29 -0000 1.6 +++ openacs-4/packages/attendance/www/admin/mark.tcl 3 Oct 2005 15:26:02 -0000 1.7 @@ -26,24 +26,36 @@ set message "
Mark the users who were present for $task_name on $cal_item_info(full_start_date)
" +set elements { + member_name { + label "Name" + } +} + +set custom_fields [parameter::get -package_id [apm_package_id_from_key dotlrn-ecommerce] -parameter CustomParticipantFields -default ""] + +if { [lsearch $custom_fields allergies] != -1 } { + lappend elements medical_needs { + label "Medical Needs" + } +} + +if { [lsearch $custom_fields special_needs] != -1 } { + lappend elements special_issues { + label "Special Issues" + } +} + +lappend elements present { + label "Present" + display_template { checked> } +} + + template::list::create \ -name eval_members \ -multirow eval_members \ - -elements { - member_name { - label "Name" - } - medical_needs { - label "Medical Needs" - } - special_issues { - label "Special Issues" - } - present { - label "Present" - display_template { checked> } - } - } + -elements $elements set users [dotlrn_community::list_users $community_id] Index: openacs-4/packages/attendance/www/admin/print.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attendance/www/admin/print.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/attendance/www/admin/print.tcl 17 Aug 2005 10:19:20 -0000 1.2 +++ openacs-4/packages/attendance/www/admin/print.tcl 3 Oct 2005 15:26:02 -0000 1.3 @@ -28,9 +28,20 @@ set elements {member_name {label "Member Name"}} -# append elements { medical_needs {label "Medical Needs"}} -# append elements { special_issues {label "Special Issues"}} +set custom_fields [parameter::get -package_id [apm_package_id_from_key dotlrn-ecommerce] -parameter CustomParticipantFields -default ""] +if { [lsearch $custom_fields allergies] != -1 } { + lappend elements medical_needs { + label "Medical Needs" + } +} + +if { [lsearch $custom_fields special_needs] != -1 } { + lappend elements special_issues { + label "Special Issues" + } +} + append elements { present { label "Present" display_template { checked> }