summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-02-15 00:12:43 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-02-15 00:12:43 +0100
commit32dc6a903f57059af5afdce5b53d43d3fa166dc7 (patch)
tree49be29f1d1962e28da6e5547dae4ce481932b26c
parent14cc5bb30b5b1f339ec37b95e97fc17d6e852352 (diff)
downloadbugzilla-32dc6a903f57059af5afdce5b53d43d3fa166dc7.tar.gz
bugzilla-32dc6a903f57059af5afdce5b53d43d3fa166dc7.tar.xz
Bug 839811 - form.doc bug form: Can the summary look up possible duplicates?
-rw-r--r--extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl39
1 files changed, 37 insertions, 2 deletions
diff --git a/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl
index d71bfb3d2..7e1341882 100644
--- a/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl
+++ b/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl
@@ -38,8 +38,8 @@ function validateAndSubmit() {
style = inline_style
javascript = inline_javascript
javascript_urls = [ 'extensions/BMO/web/js/form_validate.js',
- 'js/field.js', 'js/util.js' ]
- yui = [ 'autocomplete' ]
+ 'js/field.js', 'js/util.js', 'js/bug.js' ]
+ yui = [ 'autocomplete', 'datatable', 'button' ]
%]
<h1>Developer Documentation Request</h1>
@@ -95,6 +95,41 @@ function validateAndSubmit() {
</td>
</tr>
+[% IF feature_enabled('jsonrpc') AND !cloned_bug_id %]
+ <tr id="possible_duplicates_container" class="bz_default_hidden">
+ <th>Possible<br>Duplicates:</th>
+ <td colspan="3">
+ <div id="possible_duplicates"></div>
+ <script type="text/javascript">
+ var dt_columns = [
+ { key: "id", label: "[% field_descs.bug_id FILTER js %]",
+ formatter: YAHOO.bugzilla.dupTable.formatBugLink },
+ { key: "summary",
+ label: "[% field_descs.short_desc FILTER js %]",
+ formatter: "text" },
+ { key: "status",
+ label: "[% field_descs.bug_status FILTER js %]",
+ formatter: YAHOO.bugzilla.dupTable.formatStatus },
+ { key: "update_token", label: '',
+ formatter: YAHOO.bugzilla.dupTable.formatCcButton }
+ ];
+ YAHOO.bugzilla.dupTable.addCcMessage = "Add Me to the CC List";
+ YAHOO.bugzilla.dupTable.init({
+ container: 'possible_duplicates',
+ columns: dt_columns,
+ product_name: '[% product.name FILTER js %]',
+ summary_field: 'short_desc',
+ options: {
+ MSG_LOADING: 'Searching for possible duplicates...',
+ MSG_EMPTY: 'No possible duplicates found.',
+ SUMMARY: 'Possible Duplicates'
+ }
+ });
+ </script>
+ </td>
+ </tr>
+[% END %]
+
<tr>
<th>Technical Contact</th>
<td>