diff options
author | lpsolit%gmail.com <> | 2005-10-20 07:21:04 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-20 07:21:04 +0200 |
commit | c9e867f7b1b01aff688df7fcb7c37f48cf8a39ca (patch) | |
tree | ab8d1d386a101cafbc4960a0eabf50d4dce82cdf /template/en/default/admin/fieldvalues/list.html.tmpl | |
parent | b2966165174d850b13be0e25eba6e9053142ed00 (diff) | |
download | bugzilla-c9e867f7b1b01aff688df7fcb7c37f48cf8a39ca.tar.gz bugzilla-c9e867f7b1b01aff688df7fcb7c37f48cf8a39ca.tar.xz |
Bug 298688: Forbid the deletion of values used by default for the priority, severity, platform and OS and update data/params when editing them - Patch by Frédéric Buclin <LpSolit@gmail.com> r=GavinS a=justdave
Diffstat (limited to 'template/en/default/admin/fieldvalues/list.html.tmpl')
-rw-r--r-- | template/en/default/admin/fieldvalues/list.html.tmpl | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/template/en/default/admin/fieldvalues/list.html.tmpl b/template/en/default/admin/fieldvalues/list.html.tmpl index b661653de..d25adf2b1 100644 --- a/template/en/default/admin/fieldvalues/list.html.tmpl +++ b/template/en/default/admin/fieldvalues/list.html.tmpl @@ -50,18 +50,28 @@ name => "sortkey" heading => "Sortkey" }, - ] + { + name => "action" + heading => "Action" + content => "Delete" + contentlink => delete_contentlink + } ] %] -[% columns.push({ - heading => "Action" - content => "Delete" - contentlink => delete_contentlink - }) %] +[% overrides.action = [ { + match_value => "$default" + match_field => 'name' + override_content => 1 + content => "(Default value)" + override_contentlink => 1 + contentlink => undef + } ] +%] [% PROCESS admin/table.html.tmpl columns = columns data = values + overrides = overrides %] <p> |