summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-02-02 05:38:16 +0100
committerByron Jones <glob@mozilla.com>2015-02-02 05:38:16 +0100
commit1ccc683d4d94ea70e763fbd4af9721cb4bca1c0d (patch)
tree90ec8af17c49c130b0e817d2ef00c8c667dcb764 /extensions/BMO/template/en/default
parente62f3072492aa55e626325e8889365b23c25892f (diff)
downloadbugzilla-1ccc683d4d94ea70e763fbd4af9721cb4bca1c0d.tar.gz
bugzilla-1ccc683d4d94ea70e763fbd4af9721cb4bca1c0d.tar.xz
Bug 1123769: add a "rank" field to bugzilla to track priority
Diffstat (limited to 'extensions/BMO/template/en/default')
-rw-r--r--extensions/BMO/template/en/default/hook/bug/edit-after_importance.html.tmpl10
-rw-r--r--extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl11
2 files changed, 21 insertions, 0 deletions
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 @@
}
});
</script>
+
+[% UNLESS cf_hidden_in_product('cf_rank', bug.product, bug.component) %]
+ [% IF bug.check_can_change_field('cf_rank', 0, 1) %]
+ <label class="field_label" id="rank_label" for="cf_rank">Rank:</label>
+ <input type="number" id="cf_rank" name="cf_rank" size="3" value="[% bug.cf_rank FILTER html %]">
+ [% ELSIF bug.cf_rank != '' %]
+ <label class="field_label" id="rank_label" for="cf_rank">Rank:</label>
+ <span id="cf_rank">[% bug.cf_rank FILTER html %]</span>
+ [% 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 %]