~ubuntu-branches/ubuntu/hardy/bugzilla/hardy-security

« back to all changes in this revision

Viewing changes to template/en/default/global/hidden-fields.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Rémi Perrot
  • Date: 2004-04-02 01:13:32 UTC
  • Revision ID: james.westby@ubuntu.com-20040402011332-hxrg0n2szimd7d25
Tags: upstream-2.16.5
Import upstream version 2.16.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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/
 
6
  #
 
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.
 
11
  #
 
12
  # The Original Code is the Bugzilla Bug Tracking System.
 
13
  #
 
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
 
17
  # Rights Reserved.
 
18
  #
 
19
  # Contributor(s): Myk Melez <myk@mozilla.org>
 
20
  #%]
 
21
 
 
22
[%# INTERFACE:
 
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
 
28
  #%]
 
29
 
 
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 %]">
 
37
    [% END %]
 
38
  [% ELSE %]
 
39
    <input type="hidden" name="[% field.key FILTER html %]"
 
40
           value="[% field.value | html | html_linebreak %]">
 
41
  [% END %]
 
42
[% END %]