From 1ccc683d4d94ea70e763fbd4af9721cb4bca1c0d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 2 Feb 2015 12:38:16 +0800 Subject: Bug 1123769: add a "rank" field to bugzilla to track priority --- .../en/default/hook/bug/edit-after_importance.html.tmpl | 10 ++++++++++ .../template/en/default/hook/bug/edit-custom_field.html.tmpl | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl (limited to 'extensions/BMO/template') diff --git a/extensions/BMO/template/en/default/hook/bug/edit-after_importance.html.tmpl b/extensions/BMO/template/en/default/hook/bug/edit-after_importance.html.tmpl index d7c0d58a8..5260a6c7a 100644 --- a/extensions/BMO/template/en/default/hook/bug/edit-after_importance.html.tmpl +++ b/extensions/BMO/template/en/default/hook/bug/edit-after_importance.html.tmpl @@ -74,3 +74,13 @@ } }); + +[% UNLESS cf_hidden_in_product('cf_rank', bug.product, bug.component) %] + [% IF bug.check_can_change_field('cf_rank', 0, 1) %] + + + [% ELSIF bug.cf_rank != '' %] + + [% bug.cf_rank FILTER html %] + [% END %] +[% END %] diff --git a/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl b/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl new file mode 100644 index 000000000..6e871f731 --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl @@ -0,0 +1,11 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% IF field.name == 'cf_rank' %] + [% field.hidden = 1 %] +[% END %] -- cgit v1.2.3-24-g4f1b