Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(920)

Side by Side Diff: chrome/browser/resources/bug_report.html

Issue 3061044: HTML UI implementation for the Google Feedback client for Chrome/ChromeOS.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/bug_report.css ('k') | chrome/browser/resources/bug_report.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html i18n-values="dir:textdirection;">
3 <head>
4 <meta charset="utf-8"/>
5 <title i18n-content="title"></title>
6 <link rel="stylesheet" href="bug_report.css"/>
7
8 <script src="shared/js/local_strings.js"></script>
9 <script src="shared/js/util.js"></script>
10 <script src="bug_report.js"></script>
11 <script>
12
13 ///////////////////////////////////////////////////////////////////////////////
14 // Document Functions:
15 /**
16 * Window onload handler, sets up the page.
17 */
18 function load() {
19 // textContent on description-text textarea seems to default
20 // to several spaces, this resets it to empty.
21 $('description-text').textContent = '';
22
23 $('current-screenshot').nextSibling.textContent =
24 localStrings.getString('currentscreenshots');
25 $('no-screenshot').nextSibling.textContent =
26 localStrings.getString('noscreenshot');
27
28 // Get a list of issues that we allow the user to select from.
29 // Note, the order and the issues types themselves are different
30 // between Chromium and Chromium OS, so this code needs to be
31 // maintained individually between the bug_report.html and
32 // bug_report_cros.html files.
33 var issueTypeText = [];
34 issueTypeText[0] = localStrings.getString('issue-choose');
35 issueTypeText[1] = localStrings.getString('issue-page-formatting');
36 issueTypeText[2] = localStrings.getString('issue-page-load');
37 issueTypeText[3] = localStrings.getString('issue-plugins');
38 issueTypeText[4] = localStrings.getString('issue-tabs');
39 issueTypeText[5] = localStrings.getString('issue-sync');
40 issueTypeText[6] = localStrings.getString('issue-crashes');
41 issueTypeText[7] = localStrings.getString('issue-extensions');
42 issueTypeText[8] = localStrings.getString('issue-phishing');
43 issueTypeText[9] = localStrings.getString('issue-other');
44
45 // Add all the issues to the selection box.
46 for (var i = 0; i < issueTypeText.length; i++) {
47 var option = document.createElement('option');
48 option.className = 'bug-report-text';
49 option.textContent = issueTypeText[i];
50 $('issue-with-combo').add(option);
51 }
52
53 chrome.send('getDialogDefaults', []);
54 chrome.send('refreshScreenshots', []);
55 };
56
57 function setupScreenshots(screenshots) {
58 if (screenshots.length > 0)
59 addScreenshot('current-screenshots', screenshots[0]);
60 }
61
62 function setupDialogDefaults(defaults) {
63 if (defaults.length > 0)
64 $('page-url-text').value = defaults[0];
65 }
66
67 window.addEventListener('DOMContentLoaded', load);
68 </script>
69 </head>
70 <body>
71 <table>
72 <!-- Issue type dropdown -->
73 <tr>
74 <th id="issue-with" class="bug-report-label" i18n-content="issue-with">
75 </th>
76 </tr>
77 <tr>
78 <td>
79 <select id="issue-with-combo" class="bug-report-text">
80 </select>
81 </td>
82 </tr>
83 <!-- Page URL text box -->
84 <tr>
85 <th colspan="2" id="page-url" class="bug-report-label"
86 i18n-content="page-url">
87 </th>
88 </tr>
89 <tr>
90 <td colspan="2">
91 <input id='page-url-text' maxlength=200 class="bug-report-text">
92 </td>
93 </tr>
94 <!-- Description -->
95 <tr>
96 <th id="description" colspan="2" class="bug-report-label"
97 i18n-content="description">
98 </th>
99 </tr>
100 <tr>
101 <td colspan="2">
102 <textarea id='description-text' rows="10" class="bug-report-text">
103 </textarea>
104 </td>
105 </tr>
106 <!-- Screenshot radio buttons -->
107 <tr>
108 <th id="screenshot" class="bug-report-label" i18n-content="screenshot">
109 </th>
110 </tr>
111 <tr>
112 <td>
113 <input id="no-screenshot" type="radio" name="screenshot-group"
114 value="none" onclick="noneSelected()">
115 <br>
116 <input id="current-screenshot" type="radio" name="screenshot-group"
117 value="current" checked onclick="currentSelected()">
118 <br>
119 <div id="current-screenshots" class="thumbnail-list">
120 </div>
121 </td>
122 </tr>
123 <!-- Buttons -->
124 <tr>
125 <td>
126 <hr>
127 <input id='send-report-button' type="submit" class="bug-report-button"
128 i18n-values="value:send-report" onclick="sendReport()">
129 <input id='cancel-button' type="submit" class="bug-report-button"
130 i18n-values="value:cancel" onclick="cancel()">
131 </td>
132 </tr>
133 </table>
134 </body>
135 </html>
OLDNEW
« no previous file with comments | « chrome/browser/resources/bug_report.css ('k') | chrome/browser/resources/bug_report.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698