Index: openacs-4/contrib/packages/survey/www/admin/question-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/survey/www/admin/Attic/question-add.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/contrib/packages/survey/www/admin/question-add.tcl 14 Feb 2004 19:57:59 -0000 1.2 +++ openacs-4/contrib/packages/survey/www/admin/question-add.tcl 13 Jan 2005 13:54:40 -0000 1.3 @@ -12,6 +12,7 @@ } { section_id:integer {after:integer ""} + {return_url ""} } @@ -27,7 +28,7 @@ ad_script_abort } -ad_form -name create_question -action question-add-2 -export { after } -form { +ad_form -name create_question -action question-add-2 -export { after return_url } -form { question_id:key {section_id:text(hidden) {value $section_id}} {question_text:text(textarea) {label "[_ survey.Question]"} {html {rows 5 cols 70}}} @@ -41,6 +42,9 @@ { "[_ survey.lt_Multiple_Choice_Drop_]" "select" } { "[_ survey.lt_Multiple_Choice_Radio]" "radio" } { "[_ survey.lt_Multiple_Choice_Check]" "checkbox" } + { "[_ survey.lt_Multiple_Choice_Drop_text]" "select_text" } + { "[_ survey.lt_Multiple_Choice_Radio_text]" "radio_text" } + { "[_ survey.lt_Multiple_Choice_Check_text]" "checkbox_text" } { "[_ survey.Date]" "date" } { "[_ survey.File_Attachment]" "upload_file" } } } } } @@ -50,15 +54,15 @@ if {[ad_parameter allow_question_deactivation_p] == 1} { ad_form -extend -name create_question -form { - {active:text(radio) {label "[_ survey.Active]"} {options {{Yes t} {No f}}} {value t}} + {active:text(radio) {label "[_ survey.Active]"} {options {{[_ survey.Yes] t} {[_ survey.No] f}}} {value t}} } } else { ad_form -extend -name create_question -form { {active:text(hidden) {value t}} } } ad_form -extend -name create_question -form { - {required_p:text(radio) {label "[_ survey.Required]"} {options {{Yes t} {No f}}} {value t}} + {required_p:text(radio) {label "[_ survey.Required]"} {options {{[_ survey.Yes] t} {[_ survey.No] f}}} {value t}} } set catalogue_link "predefined-question?[export_url_vars section_id after]" ad_return_template