- No attendance tasks for this class. Please create a session.
+
+
+
+
+ No attendance tasks for this class. Please create a session.
+
Index: openacs-4/packages/attendance/www/admin/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/attendance/www/admin/index.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/attendance/www/admin/index.tcl 19 Jun 2005 06:05:05 -0000 1.3
+++ openacs-4/packages/attendance/www/admin/index.tcl 28 Dec 2005 01:31:24 -0000 1.4
@@ -15,65 +15,74 @@
set page_title "Attendance Tasks"
set context $page_title
set community_id [dotlrn_community::get_community_id]
+set calendar_id [dotlrn_calendar::get_group_calendar_id -community_id $community_id]
+set return_url [ad_return_url]
set package_id [ad_conn package_id]
# get grade info
attendance::get_grade_info -package_id $package_id
-ns_log Notice " -- Attendance Package ID : $package_id, Grade Item : $grade_item_id --"
+# ns_log Notice " -- Attendance Package ID : $package_id, Grade Item : $grade_item_id --"
# check calendar items for session and turn them into attendance tasks
-attendance::add_sessions -community_id $community_id -grade_item_id $grade_item_id -package_id $package_id
-set elements [list task_name \
- [list label "Task Name" \
- link_url_col task_url \
- orderby_asc {task_name asc} \
- orderby_desc {task_name desc}] \
- due_date_pretty \
- [list label "Date" \
- orderby_asc {due_date_ansi asc} \
- orderby_desc {due_date_ansi desc}] \
- action \
- [list label "Actions" \
- display_template {