From e394756f42902de5eade4f6738127c25fa2bcef7 Mon Sep 17 00:00:00 2001 From: "ghendricks%novell.com" <> Date: Fri, 17 Jul 2009 22:40:09 +0000 Subject: Bug 456743 - Add the ability to disable field values (mark them as inactive) patch by ghendricks@novell.com r=LpSolit, a=LpSolit --- template/en/default/admin/fieldvalues/edit.html.tmpl | 13 ++++++++++++- template/en/default/admin/fieldvalues/list.html.tmpl | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'template/en/default/admin/fieldvalues') diff --git a/template/en/default/admin/fieldvalues/edit.html.tmpl b/template/en/default/admin/fieldvalues/edit.html.tmpl index b01415577..5650ee87b 100644 --- a/template/en/default/admin/fieldvalues/edit.html.tmpl +++ b/template/en/default/admin/fieldvalues/edit.html.tmpl @@ -81,8 +81,19 @@ [% END %] + + + + [% IF value.is_default %] + This value is selected as default in the parameters for this field. It cannot be disabled. + [% ELSIF value.is_static %] + This value is non-deletable and cannot be disabled. + [% END %] + + - diff --git a/template/en/default/admin/fieldvalues/list.html.tmpl b/template/en/default/admin/fieldvalues/list.html.tmpl index fdc22d912..3f750ebca 100644 --- a/template/en/default/admin/fieldvalues/list.html.tmpl +++ b/template/en/default/admin/fieldvalues/list.html.tmpl @@ -50,6 +50,11 @@ name => "sortkey" heading => "Sortkey" }, + { + name => "isactive" + heading => "Enabled for $terms.bugs" + yesno_field => 1 + }, { name => "action" heading => "Action" -- cgit v1.2.3-24-g4f1b