summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-04-07 07:25:13 +0200
committerByron Jones <glob@mozilla.com>2015-04-07 07:25:13 +0200
commit2c9db0144d3b3816bbfbfd821657ff0daf3687d5 (patch)
treeac7b758b080e980138d6c869b7f24e7df475863b /extensions/BugModal/template/en/default/bug_modal/field.html.tmpl
parent280c184398d4e4de9c00c96ee9dff1d7e6724615 (diff)
downloadbugzilla-2c9db0144d3b3816bbfbfd821657ff0daf3687d5.tar.gz
bugzilla-2c9db0144d3b3816bbfbfd821657ff0daf3687d5.tar.xz
Bug 1149796: "Reset Assignee to default" and "Reset QA Contact to default" options missing when changing a bug's component
Diffstat (limited to 'extensions/BugModal/template/en/default/bug_modal/field.html.tmpl')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/field.html.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl
index 2d2cb56cf..787b8d9f1 100644
--- a/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/field.html.tmpl
@@ -22,6 +22,8 @@
# short_width: (boolean) the field shouldn't take up much space at all (default: false)
# hide_on_view: (boolean) hide field from read-only view (default: false)
# hide_on_edit: (boolean) hide content when in edit mode (default: false)
+ # append_content: (boolean) when called as a WRAPPER, the content will be appended to the
+ # edit html instead of replacing it. forces edit_only (default: false);
#%]
[%
@@ -43,6 +45,9 @@ END;
IF !editable.defined;
editable = bug.check_can_change_field(name, 0, 1);
END;
+IF append_content;
+ edit_only = 1;
+END;
IF inline && !label.defined;
no_label = 1;
END;
@@ -248,6 +253,10 @@ END;
('[% name FILTER html %]' [[% field_type FILTER html %])] not supported)
[% END %]
+
+ [% IF append_content && content.defined %]
+ [% content FILTER none %]
+ [% END %]
</div>
[% END %]
</div>