Index: openacs-4/contrib/packages/simulation/www/role-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/www/Attic/role-edit.tcl,v diff -u -N -r1.4 -r1.5 --- openacs-4/contrib/packages/simulation/www/role-edit.tcl 6 Nov 2003 15:35:47 -0000 1.4 +++ openacs-4/contrib/packages/simulation/www/role-edit.tcl 12 Nov 2003 14:51:16 -0000 1.5 @@ -6,7 +6,6 @@ } { workflow_id:optional role_id:optional - {limit_characters_p "0"} } -validate { workflow_id_or_role_id { if { ![exists_and_not_null workflow_id] && @@ -31,41 +30,14 @@ # deliberately not checking to see if character is already cast in sim # because no reason not to have same character in multiple roles (?) -# if we are limiting to only characters already in the sim, -# create the sql filter and generate a link to end the filter -# if not, create the opposite filter and link - -if { $limit_characters_p } { - set char_options [db_list_of_lists character_option_list { +set char_options [db_list_of_lists character_option_list { select ci.name, ci.item_id - from cr_items ci, - sim_workflow_object_map swom - where ci.content_type = 'sim_character' - and ci.item_id = swom.object_id - and swom.workflow_id = :workflow_id - order by upper(ci.name) - }] - set toggle_text "show all" -} else { - set char_options [db_list_of_lists character_option_list { - select ci.name, - ci.item_id from cr_items ci where ci.content_type = 'sim_character' order by upper(ci.name) }] - set toggle_text "(limit to characters
in template
)" -} - -set character_filter_html "$toggle_text" - - ###################################################################### # # role @@ -84,7 +56,7 @@ {role_id:key} {workflow_id:integer(hidden),optional} {character_id:text(select) - {label "Character
$character_filter_html"} + {label "Character"} {options $char_options} } {name:text