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
# Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
18
# values: array of hashes having the following properties:
19
# - name: string; The value.
20
# - sortkey: number; The sortkey used to order the value when
21
# displayed to the user in a list.
23
# field: string; the name of the field we are editing values for.
24
# static: array; list of values which cannot be renamed nor deleted.
28
[% cgi = Bugzilla.cgi %]
30
[% PROCESS global/variables.none.tmpl %]
32
[% title = BLOCK %]Select value for the
33
'[% field FILTER html %]' field[% END %]
34
[% PROCESS global/header.html.tmpl
38
[% edit_contentlink = BLOCK %]editvalues.cgi?action=edit&field=
39
[%- field FILTER url_quote %]&value=%%name%%[% END %]
40
[% delete_contentlink = BLOCK %]editvalues.cgi?action=del&field=
41
[%- field FILTER url_quote %]&value=%%name%%[% END %]
47
heading => "Edit field value..."
48
contentlink => edit_contentlink
58
contentlink => delete_contentlink
62
[% IF default.defined %]
63
[% overrides.action = [ {
64
match_value => "$default"
67
content => "(Default value)"
68
override_contentlink => 1
75
[% UNLESS overrides.action.size %]
76
[% overrides.action = [] %]
79
[% FOREACH static_value = static %]
80
[% overrides.action.push({
81
match_value => "$static_value"
84
content => "(Non-deletable value)"
85
override_contentlink => 1
92
[% PROCESS admin/table.html.tmpl
98
[% PROCESS admin/fieldvalues/footer.html.tmpl
99
no_edit_other_link = 1
102
[% PROCESS global/footer.html.tmpl %]