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

« back to all changes in this revision

Viewing changes to template/en/default/admin/fieldvalues/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): Max Kanat-Alexander <mkanat@bugzilla.org>
15
 
  #%]
16
 
 
17
 
[%# INTERFACE:
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.
22
 
  #
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.
25
 
  #%]
26
 
 
27
 
[% USE Bugzilla %]
28
 
[% cgi = Bugzilla.cgi %]
29
 
 
30
 
[% PROCESS global/variables.none.tmpl %]
31
 
 
32
 
[% title = BLOCK %]Select value for the
33
 
                   '[% field FILTER html %]' field[% END %]
34
 
[% PROCESS global/header.html.tmpl
35
 
  title = title
36
 
%]
37
 
 
38
 
[% edit_contentlink = BLOCK %]editvalues.cgi?action=edit&amp;field=
39
 
  [%- field FILTER url_quote %]&amp;value=%%name%%[% END %]
40
 
[% delete_contentlink = BLOCK %]editvalues.cgi?action=del&amp;field=
41
 
  [%- field FILTER url_quote %]&amp;value=%%name%%[% END %]
42
 
 
43
 
 
44
 
[% columns = [
45
 
     { 
46
 
       name => "name"
47
 
       heading => "Edit field value..."
48
 
       contentlink => edit_contentlink
49
 
     },
50
 
     { 
51
 
       name => "sortkey"
52
 
       heading => "Sortkey"
53
 
     },
54
 
     {
55
 
       name => "action"
56
 
       heading => "Action"
57
 
       content => "Delete"
58
 
       contentlink => delete_contentlink
59
 
     } ]
60
 
%]
61
 
 
62
 
[% IF default.defined %]
63
 
  [% overrides.action = [ {
64
 
       match_value => "$default"
65
 
       match_field => 'name'
66
 
       override_content => 1
67
 
       content => "(Default value)"
68
 
       override_contentlink => 1
69
 
       contentlink => undef
70
 
     } ]
71
 
  %]
72
 
[% END %]
73
 
 
74
 
[% IF static.size %]
75
 
  [% UNLESS overrides.action.size %]
76
 
    [% overrides.action = [] %]
77
 
  [% END %]
78
 
 
79
 
  [% FOREACH static_value = static %]
80
 
    [% overrides.action.push({
81
 
         match_value => "$static_value"
82
 
         match_field => 'name'
83
 
         override_content => 1
84
 
         content => "(Non-deletable value)"
85
 
         override_contentlink => 1
86
 
         contentlink => undef
87
 
       })
88
 
    %]
89
 
  [% END %]
90
 
[% END %]
91
 
 
92
 
[% PROCESS admin/table.html.tmpl
93
 
     columns = columns
94
 
     data = values
95
 
     overrides = overrides
96
 
%]
97
 
 
98
 
[% PROCESS admin/fieldvalues/footer.html.tmpl
99
 
  no_edit_other_link = 1
100
 
 %]
101
 
 
102
 
[% PROCESS global/footer.html.tmpl %]