From 92c42f457c526f0d45ef6ce505cd89edbee9b14d Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Tue, 4 Jun 2002 05:31:08 +0000 Subject: Fix for bug 145030: Removes use of CGI.pm from Template Toolkit until problems with it can be investigated and resolved. r=jouni,gerv --- .../bug/process/verify-new-product.html.tmpl | 8 ++-- template/en/default/global/select-menu.html.tmpl | 56 ++++++++++++++++++++++ 2 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 template/en/default/global/select-menu.html.tmpl (limited to 'template/en') diff --git a/template/en/default/bug/process/verify-new-product.html.tmpl b/template/en/default/bug/process/verify-new-product.html.tmpl index 4facc45c8..8a934f8e7 100644 --- a/template/en/default/bug/process/verify-new-product.html.tmpl +++ b/template/en/default/bug/process/verify-new-product.html.tmpl @@ -32,8 +32,6 @@ # the target milestone field #%] -[% USE mycgi = CGI %] -
[% PROCESS "global/hidden-fields.html.tmpl" @@ -59,16 +57,16 @@ Version:
- [% mycgi.popup_menu(Name => "version" , Values => versions) %] + [% PROCESS "global/select-menu.html.tmpl" name="version" options=versions %] Component:
- [% mycgi.popup_menu(Name => "component" , Values => components) %] + [% PROCESS "global/select-menu.html.tmpl" name="component" options=components %] [% IF use_target_milestone %] Target Milestone:
- [% mycgi.popup_menu(Name => "target_milestone" , Values => milestones) %] + [% PROCESS "global/select-menu.html.tmpl" name="target_milestone" options=milestones %] [% END %] diff --git a/template/en/default/global/select-menu.html.tmpl b/template/en/default/global/select-menu.html.tmpl new file mode 100644 index 000000000..c27f60e8b --- /dev/null +++ b/template/en/default/global/select-menu.html.tmpl @@ -0,0 +1,56 @@ + +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Myk Melez + #%] + +[%# INTERFACE: + # name: string; the name of the menu. + # + # options: array or hash; the items with which to populate the array. + # If a hash is passed, the hash keys become the names displayed + # to the user while the hash values become the value of the item. + # + # default: string; the item selected in the menu by default. + # + #%] + +[%# Get the scalar representation of the options reference, + # which looks like "ARRAY(0xA352BA3F)" or "HASH(0xA352BA3F)", + # so we can figure out whether it is a reference to an array + # or a hash. + #%] +[% options_type = BLOCK %][% options %][% END %] + + -- cgit v1.2.3-24-g4f1b