~ubuntu-branches/debian/sid/bugzilla/sid

« back to all changes in this revision

Viewing changes to template/en/default/admin/custom_fields/list.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

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
 
  # Contributor(s): Frédéric Buclin <LpSolit@gmail.com>
15
 
  #%]
16
 
 
17
 
[%# INTERFACE:
18
 
  # custom_fields: a list of Bugzilla::Field objects, representing custom fields.
19
 
  #%]
20
 
 
21
 
[% PROCESS "global/field-descs.none.tmpl" %]
22
 
 
23
 
[% PROCESS global/header.html.tmpl title = "Custom Fields" %]
24
 
 
25
 
[% columns = [
26
 
     {
27
 
       name => "name"
28
 
       heading => "Edit custom field..."
29
 
       contentlink => "editfields.cgi?action=edit&amp;name=%%name%%"
30
 
     },
31
 
     {
32
 
       name => "description"
33
 
       heading => "Description"
34
 
     },
35
 
     {
36
 
       name => "sortkey"
37
 
       heading => "Sortkey"
38
 
     },
39
 
     {
40
 
       name => "type"
41
 
       heading => "Type"
42
 
     },
43
 
     {
44
 
       name => "enter_bug"
45
 
       heading => "Editable on $terms.Bug Creation"
46
 
     },
47
 
     {
48
 
       name => "mailhead"
49
 
       heading => "In ${terms.Bug}mail on $terms.Bug Creation"
50
 
     },
51
 
     {
52
 
       name => "obsolete"
53
 
       heading => "Is Obsolete"
54
 
     }
55
 
   ]
56
 
%]
57
 
 
58
 
[% USE Bugzilla %]
59
 
[% custom_fields = Bugzilla.get_fields({ custom => 1 }) %]
60
 
 
61
 
[%# We want to display the type name of fields, not their type ID. %]
62
 
[% overrides.type = [] %]
63
 
 
64
 
[% FOREACH field_type = field_types.keys %]
65
 
  [% overrides.type.push({
66
 
       match_value => field_type
67
 
       match_field => 'type'
68
 
       override_content => 1
69
 
       content => field_types.${field_type}
70
 
    })
71
 
  %]
72
 
[% END %]
73
 
 
74
 
[% PROCESS admin/table.html.tmpl
75
 
     columns = columns
76
 
     overrides = overrides
77
 
     data = custom_fields
78
 
%]
79
 
 
80
 
<p>
81
 
  <a href="editfields.cgi?action=add">Add a new custom field</a>
82
 
</p>
83
 
 
84
 
[% PROCESS global/footer.html.tmpl %]