Index: openacs-4/packages/acs-admin/www/apm/parameter-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/parameter-add.tcl,v diff -u -r1.12 -r1.13 --- openacs-4/packages/acs-admin/www/apm/parameter-add.tcl 16 May 2018 17:08:51 -0000 1.12 +++ openacs-4/packages/acs-admin/www/apm/parameter-add.tcl 3 Sep 2024 15:37:29 -0000 1.13 @@ -6,6 +6,12 @@ } { version_id:naturalnum,notnull {section_name ""} + {parameter_name ""} + {description ""} + {default_value ""} + {scope ""} + {return_url ""} + {update_info_file:boolean true} } set user_id [ad_conn user_id] @@ -20,9 +26,9 @@ # This to filter out sections such as "all" and $package_key, which # have special meaning and are not supposed to be created. if {![db_string get_section { - select exists (select 1 from apm_parameters - where section_name = :section_name - and package_key = :package_key) from dual}]} { + select case when exists (select 1 from apm_parameters + where section_name = :section_name + and package_key = :package_key) then 1 else 0 end from dual}]} { set section_name "" } @@ -33,11 +39,14 @@ [list [export_vars -base version-parameters { version_id }] "Parameters"] \ $title] +# +# GN: The code below should be replaced by ad_form +# append body [subst {
-[export_vars -form {package_key parameter_id version_id}] +[export_vars -form {package_key parameter_id version_id return_url update_info_file}] @@ -49,17 +58,17 @@ - + - - + - @@ -87,7 +96,7 @@ @@ -100,7 +109,7 @@ @@ -114,7 +123,7 @@ - +
Parameter Name:
Type a description of your parameter. + Description of the new parameter.

Description:
+
Scope:
Type:
Default: