Index: openacs-4/contrib/packages/survey/acs-templating/widget-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/survey/acs-templating/Attic/widget-procs.tcl,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/contrib/packages/survey/acs-templating/widget-procs.tcl 23 Oct 2003 06:37:42 -0000 1.1 @@ -0,0 +1,52 @@ +ad_proc -public template::widget::block { element_reference tag_attributes } { + widget for blocks of radio-buttoned questions +} { + upvar $element_reference element + + if { [info exists element(html)] } { + array set attributes $element(html) + } + + if { [info exists element(value)] } { + set value $element(value) + } else { + set value {} + } + + array set attributes $tag_attributes + + set output "" + set options $element(options) + set count 0 + foreach option $options { + if {$count == 0} { + append output "