From 224ec4a14c01789a9f085075b92a48eec677c8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Tue, 11 Jul 2017 00:10:29 +0200 Subject: Replace the "Importance" field by two distinct "Priority" and "Severity" fields (mga#21221) This reverts what has been done upstream in Bugzilla 3.2 (bmo bug 374020) --- template/en/default/bug/edit.html.tmpl | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index b8abe6bc5..1e10d38e8 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -329,20 +329,25 @@ [%# Importance (priority and severity) #%] [%###############################################################%] - - [% can_edit_priority = bug.check_can_change_field('priority', 0, 1) %] - : - - - [% INCLUDE bug/field.html.tmpl + [% can_edit_priority = bug.check_can_change_field('priority', 0, 1) %] + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.priority + editable = can_edit_priority + %] + + [% INCLUDE bug/field.html.tmpl bug = bug, field = bug_fields.priority, no_tds = 1, value = bug.priority editable = can_edit_priority %] - [%+ INCLUDE bug/field.html.tmpl + + [% can_edit_severity = bug.check_can_change_field('bug_severity', 0, 1) %] + + [%+ INCLUDE bug/field.html.tmpl bug = bug, field = bug_fields.bug_severity, no_tds = 1, value = bug.bug_severity - editable = bug.check_can_change_field('bug_severity', 0, 1) %] + editable = can_edit_severity %] [% Hook.process('after_importance', 'bug/edit.html.tmpl') %] -- cgit v1.2.1