Index: openacs-4/contrib/packages/simulation/lib/sim-template-tasks.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/sim-template-tasks.tcl,v
diff -u -r1.17 -r1.18
--- openacs-4/contrib/packages/simulation/lib/sim-template-tasks.tcl 6 Jan 2004 13:05:47 -0000 1.17
+++ openacs-4/contrib/packages/simulation/lib/sim-template-tasks.tcl 7 Jan 2004 13:27:09 -0000 1.18
@@ -81,6 +81,18 @@
link_url_col recipient_role_edit_url
}
+lappend elements state_spacer {
+ label " "
+ sub_class narrow
+ display_template " "
+}
+
+lappend elements state_spacer2 {
+ label "States:"
+ sub_class narrow
+ display_template " "
+}
+
set states [list]
db_foreach select_states {
@@ -93,12 +105,12 @@
} {
set "label_state_$state_id" $pretty_name
lappend elements state_$state_id \
- [list label " \${label_state_$state_id} " \
+ [list label "\${label_state_$state_id}
" \
html { align center } \
display_template "
- Enabled and Assigned
+ Assigned
Enabled
@@ -113,6 +125,12 @@
"]
lappend states $state_id
+} if_no_rows {
+ lappend elements state_spacer3 {
+ label "None. Template will not work until you add states."
+ sub_class narrow
+ display_template " "
+ }
}
# LARS: Add state button in header removed
Index: openacs-4/packages/simulation/lib/sim-template-tasks.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/lib/sim-template-tasks.tcl,v
diff -u -r1.17 -r1.18
--- openacs-4/packages/simulation/lib/sim-template-tasks.tcl 6 Jan 2004 13:05:47 -0000 1.17
+++ openacs-4/packages/simulation/lib/sim-template-tasks.tcl 7 Jan 2004 13:27:09 -0000 1.18
@@ -81,6 +81,18 @@
link_url_col recipient_role_edit_url
}
+lappend elements state_spacer {
+ label " "
+ sub_class narrow
+ display_template " "
+}
+
+lappend elements state_spacer2 {
+ label "States:"
+ sub_class narrow
+ display_template " "
+}
+
set states [list]
db_foreach select_states {
@@ -93,12 +105,12 @@
} {
set "label_state_$state_id" $pretty_name
lappend elements state_$state_id \
- [list label " \${label_state_$state_id} " \
+ [list label "\${label_state_$state_id}
" \
html { align center } \
display_template "
- Enabled and Assigned
+ Assigned
Enabled
@@ -113,6 +125,12 @@
"]
lappend states $state_id
+} if_no_rows {
+ lappend elements state_spacer3 {
+ label "None. Template will not work until you add states."
+ sub_class narrow
+ display_template " "
+ }
}
# LARS: Add state button in header removed