Index: openacs-4/packages/simulation/www/simbuild/template-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/www/simbuild/template-edit.tcl,v diff -u -N -r1.7 -r1.8 --- openacs-4/packages/simulation/www/simbuild/template-edit.tcl 9 Dec 2003 17:31:29 -0000 1.7 +++ openacs-4/packages/simulation/www/simbuild/template-edit.tcl 10 Dec 2003 13:51:06 -0000 1.8 @@ -39,10 +39,24 @@ {label "Template Name"} {html {size 40}} } - {template_ready_p:boolean(checkbox),optional - {label "Ready for use?
TODO: hide this in new mode"} - {options {{"Yes" t}}} +} + +if { ![ad_form_new_p -key workflow_id] } { + ad_form -extend -name sim_template -form { + {template_ready_p:boolean(checkbox),optional + {label "Ready for use?"} + {options {{"Yes" t}}} + } } +} else { + ad_form -extend -name sim_template -form { + {template_ready_p:boolean(hidden),optional + {value f} + } + } +} + +ad_form -extend -name sim_template -form { {suggested_duration:text,optional {label "Suggested Duration"} }