1
<!-- 1.0@bugzilla.org -->
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Myk Melez <myk@mozilla.org>
23
# form: hash; the form fields/values for which to generate hidden fields.
24
# mform: hash; the form fields/values with multiple values for which to
25
# generate hidden fields.
26
# exclude: string; a regular expression matching fields to exclude
27
# from the list of hidden fields generated by this template
30
[%# Generate hidden form fields for non-excluded fields. %]
31
[% FOREACH field = form %]
32
[% NEXT IF exclude && field.key.search(exclude) %]
33
[% IF mform.${field.key}.size > 1 %]
34
[% FOREACH mvalue = mform.${field.key} %]
35
<input type="hidden" name="[% field.key FILTER html %]"
36
value="[% mvalue | html | html_linebreak %]">
39
<input type="hidden" name="[% field.key FILTER html %]"
40
value="[% field.value | html | html_linebreak %]">