Index: openacs-4/packages/dotlrn-ecommerce/lib/section.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/lib/section.tcl,v
diff -u -r1.38 -r1.39
--- openacs-4/packages/dotlrn-ecommerce/lib/section.tcl 17 Jan 2007 04:14:17 -0000 1.38
+++ openacs-4/packages/dotlrn-ecommerce/lib/section.tcl 26 Jan 2007 14:10:45 -0000 1.39
@@ -335,11 +335,23 @@
# allow setting start/end date if there aren't sessions predefined
# DAVEB 20070112 Adding active_state_date and active_end_date
- ad_form -extend -name add_section -form {
- {active_start_date:date(date),to_sql(ansi),from_sql(ansi),optional {label "[_ dotlrn.Start_Date]"}}
- {active_end_date:date(date),to_sql(ansi),from_sql(ansi),optional {label "[_ dotlrn.End_Date]"}}
- }
-
+ if { $mode == "edit" } {
+ ad_form -extend -name add_section -form {
+ {active_start_date:date(date),to_sql(ansi),from_sql(ansi),optional
+ {label "[_ dotlrn.Start_Date]"}
+ {html {id active_start_date} }
+ {after_html { \[d-m-y\] } } }
+ {active_end_date:date(date),to_sql(ansi),from_sql(ansi),optional
+ {label "[_ dotlrn.End_Date]"}
+ {html {id active_end_date} }
+ {after_html { \[d-m-y\] } } }
+ }
+ } else {
+ ad_form -extend -name add_section -form {
+ {active_start_date:date(date),to_sql(ansi),from_sql(ansi),optional {label "[_ dotlrn.Start_Date]"}}
+ {active_end_date:date(date),to_sql(ansi),from_sql(ansi),optional {label "[_ dotlrn.End_Date]"}}
+ }
+ }
}
foreach s $sessions_list {
array set session $s