summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/bug_report.html
blob: 040566374e69e5150b0555969df972fcd392b19e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE HTML>
<html i18n-values="dir:textdirection;">
<head>
<meta charset="utf-8"/>
<include src="content_security_policy.html"/>
<title i18n-content="page-title"></title>
<!-- We want to keep our style in sync with the options page. -->
<link rel="stylesheet" href="chrome://resources/css/button.css">
<link rel="stylesheet" href="chrome://resources/css/select.css">
<link rel="stylesheet" href="webui.css">
<link rel="stylesheet" href="chrome://resources/css/chrome_shared.css">
<link rel="stylesheet" href="bug_report.css">

<script src="chrome://resources/js/local_strings.js"></script>
<script src="chrome://resources/js/util.js"></script>
<script src="chrome://bugreport/bug_report.js"></script>
<script src="chrome://bugreport/strings.js"></script>
</head>
<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
<div id="main-content">
  <div id="navbar-container">
    <h1 id="navbar-content-title" i18n-content="page-title">
    </h1>
  </div>
  <div id="mainview" class>
    <!-- Even though we really don't need these many nested DIV's, we're staying
    as close to the settings page layout as possible, re-using all our styles
    from options_page.css -->
    <div id="mainview-content">
      <div id="page-container">
        <div id="feedback-page" class="page">
          <h1 i18n-content="title"></h1>
          <table id="main-table">
            <!--  Issue type dropdown -->
            <tbody>
              <tr>
                <th id="issue-with" class="bug-report-label"
                    i18n-content="issue-with"></th>
              </tr>
              <tr>
                <td>
                  <select id="issue-with-combo" class="bug-report-text">
                  </select>
                </td>
              </tr>
              <!--  Description -->
              <tr>
                <th id="description" colspan="2" class="bug-report-label"
                    i18n-content="description"></th>
              </tr>
              <tr>
                <td colspan="2">
                  <textarea id="description-text" rows="10"
                      class="bug-report-text"></textarea>
                </td>
              </tr>
              <tr>
                <td>
                  <table style="-webkit-border-vertical-spacing: 0px;">
                    <!--  Page URL -->
                    <tr>
                      <td>
                        <table class="bug-report-table">
                          <tr>
                            <td class="bug-report-fieldlabel">
                              <input id="page-url-checkbox" type="checkbox"
                                  value="pageurl" checked>
                              <span id="page-url-label" i18n-content="page-url">
                              </span>
                            </td>
                            <td>
                              <input id="page-url-text" class="bug-report-field"
                                  maxlength="200">
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
<if expr="pp_ifdef('chromeos')">
                    <!--  User e-mail -->
                    <tr>
                      <td>
                        <table id="user-email-table" class="bug-report-table">
                          <tr>
                            <td class="bug-report-fieldlabel">
                              <input id="user-email-checkbox" type="checkbox"
                                  checked>
                              <span id="user-email-label"
                                  i18n-content="user-email"></span>
                            </td>
                            <td>
                              <label id="user-email-text"
                                  class="bug-report-field"></label>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <!--  System Information -->
                    <tr>
                      <td>
                        <table class="bug-report-table">
                          <tr>
                            <td class="bug-report-fieldlabel">
                              <input id="sys-info-checkbox" type="checkbox"
                                  checked>
                              <span id="sysinfo-label">
                                <a id="sysinfo-url" href="#"
                                    i18n-content="sysinfo"></a>
                              </span>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
</if>
                    <!--  Screenshot -->
                    <tr>
                      <td>
                        <table class="bug-report-table">
                          <tr>
                            <td class="bug-report-fieldlabel">
                              <input id="screenshot-checkbox" type="checkbox">
                              <span id="screenshot-label-current"
                                  i18n-content="current-screenshot">
                              </span>
<if expr="pp_ifdef('chromeos')">
                              <span id="screenshot-label-saved"
                                  style="display: none;"
                                  i18n-content="saved-screenshot">
                              </span>
                              <a id="screenshot-link-tosaved" href="#"
                                  i18n-content="choose-different-screenshot">
                              </a>
                              <a id="screenshot-link-tocurrent" href="#"
                                  style="display: none;"
                                  i18n-content="choose-original-screenshot">
                              </a>
</if>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td>
<if expr="pp_ifdef('chromeos')">
                        <div id="saved-screenshots" style="display: none;"
                            class="thumbnail-list"></div>
</if>
                        <div id="current-screenshots" class="thumbnail-list">
                        </div>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>
                  <div id="buttons-pane">
                    <!--  Buttons -->
                    <input id="send-report-button" type="submit"
                        class="bug-report-button"
                        i18n-values="value:send-report">
                    <input id="cancel-button" type="submit"
                        class="bug-report-button" i18n-values="value:cancel">
                  </div>
                  <div id="privacy-note" i18n-values=".innerHTML:privacy-note">
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="chrome://resources/js/i18n_template.js"></script>
<script src="chrome://resources/js/i18n_process.js"></script>
</body>
</html>