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.9 -r1.10 --- openacs-4/packages/acs-admin/www/apm/parameter-add.tcl 4 Oct 2010 21:59:20 -0000 1.9 +++ openacs-4/packages/acs-admin/www/apm/parameter-add.tcl 27 Oct 2014 16:38:52 -0000 1.10 @@ -8,20 +8,27 @@ {section_name ""} } -set user_id [ad_get_user_id] +set user_id [ad_conn user_id] set parameter_id [db_nextval acs_object_id_seq] -db_1row apm_get_name {} -db_release_unused_handles +db_1row apm_get_name { + select package_key, pretty_name, version_name + from apm_package_version_info + where version_id = :version_id +} -set page_title "Add Parameter" -set context [list [list "." "Package Manager"] [list [export_vars -base version-view { version_id }] "$pretty_name $version_name"] [list [export_vars -base version-parameters { version_id }] "Parameters"] $page_title] +set title "Add Parameter" +set context [list \ + [list "." "Package Manager"] \ + [list [export_vars -base version-view { version_id }] "$pretty_name $version_name"] \ + [list [export_vars -base version-parameters { version_id }] "Parameters"] \ + $title] -append body " -
+append body [subst { +
-[export_form_vars package_key parameter_id version_id] +[export_vars -form {package_key parameter_id version_id}] @@ -32,8 +39,8 @@ - - + + @@ -42,33 +49,35 @@ - - + - - - - + + - - - + @@ -80,8 +89,8 @@ - - + @@ -96,15 +105,15 @@ - + - +
Parameter Name:Parameter Name:

Description:
+
Description:
You may enter a section name to identify the parameter. For example, the ACS Kernel has a \"security\" section -to indicate which parameters pertain to security. + You may enter a section name to identify the parameter. + For example, the ACS Kernel has a "security" section + to indicate which parameters pertain to security.

Section Name:

+

Section Name:

Please indicate if the parameter is of \"global\" (has one system-wide value) or \"instance\" (a vlue for each package instance) scope.
+
Please indicate if the parameter is of "global" (has one system-wide value) + or "instance" (a value for each package instance) scope.
Scope:Scope:
Type:Type:
Default:
-" +}] +ad_return_template apm -