Index: openacs-4/packages/ecommerce/www/admin/templates/add-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/templates/add-2.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/ecommerce/www/admin/templates/add-2.tcl 9 Mar 2004 00:59:54 -0000 1.4
+++ openacs-4/packages/ecommerce/www/admin/templates/add-2.tcl 19 Aug 2008 02:46:21 -0000 1.5
@@ -10,79 +10,36 @@
} {
template_name
template:allhtml
-
}
ad_require_permission [ad_conn package_id] admin
set exception_count 0
set exception_text ""
-
if { ![info exists template] || [empty_string_p $template] } {
incr exception_count
- append exception_text "
You forgot to enter anything into the ADP template box.\n"
+ append exception_text "The ADP template is empty. Backup and try again."
}
set f [ec_adp_function_p $template]
if {$f != 0} {
incr exception_count
- append exception_text "
- We're sorry, but templates added here cannot
- have functions in them for security reasons. Only HTML and
- <%= \$variable %> style code may be used. We found $function in this template"
-
+ append exception_text "We found $function in this template.
+ For security reasons, the templates added here cannot
+ have functions in them. Only HTML and <%= \$variable %> style code may be used."
}
if { $exception_count > 0 } {
ad_return_complaint $exception_count $exception_text
return
}
-set page_html "[ad_admin_header "Confirm Template"]
+set title "Confirm Template"
+set context [list [list index "Product Templates"] $title]
-Confirm Template
-
-[ad_context_bar [list "../" "Ecommerce([ec_system_name])"] [list "index.tcl" "Product Templates"] "Confirm Template"]
-
-
-"
-
-
set template_id [db_nextval ec_template_id_sequence]
-append page_html "
-
-[ad_admin_footer]
-"
db_release_unused_handles
-doc_return 200 text/html $page_html