diff options
author | lpsolit%gmail.com <> | 2006-07-14 03:00:40 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-07-14 03:00:40 +0200 |
commit | 12b3b674e4dac42707c39ce2389907f2e4e6a74c (patch) | |
tree | 1c2d6e6de10015c50dccf315dd578d9e34c42f57 /template/en/default/admin/fieldvalues/list.html.tmpl | |
parent | 8eadcd8aa1b2bdcab8f6d26c97d3cd9eeed252e2 (diff) | |
download | bugzilla-12b3b674e4dac42707c39ce2389907f2e4e6a74c.tar.gz bugzilla-12b3b674e4dac42707c39ce2389907f2e4e6a74c.tar.xz |
Bug 94534: Customised resolutions - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'template/en/default/admin/fieldvalues/list.html.tmpl')
-rw-r--r-- | template/en/default/admin/fieldvalues/list.html.tmpl | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/template/en/default/admin/fieldvalues/list.html.tmpl b/template/en/default/admin/fieldvalues/list.html.tmpl index d25adf2b1..f446d0f96 100644 --- a/template/en/default/admin/fieldvalues/list.html.tmpl +++ b/template/en/default/admin/fieldvalues/list.html.tmpl @@ -21,6 +21,7 @@ # displayed to the user in a list. # # field: string; the name of the field we are editing values for. + # static: array; list of values which cannot be renamed nor deleted. #%] [% USE Bugzilla %] @@ -58,15 +59,35 @@ } ] %] -[% overrides.action = [ { - match_value => "$default" - match_field => 'name' - override_content => 1 - content => "(Default value)" - override_contentlink => 1 - contentlink => undef - } ] -%] +[% IF default.defined %] + [% overrides.action = [ { + match_value => "$default" + match_field => 'name' + override_content => 1 + content => "(Default value)" + override_contentlink => 1 + contentlink => undef + } ] + %] +[% END %] + +[% IF static.size %] + [% UNLESS overrides.action.size %] + [% overrides.action = [] %] + [% END %] + + [% FOREACH static_value = static %] + [% overrides.action.push({ + match_value => "$static_value" + match_field => 'name' + override_content => 1 + content => "(Non deletable value)" + override_contentlink => 1 + contentlink => undef + }) + %] + [% END %] +[% END %] [% PROCESS admin/table.html.tmpl columns = columns |