blob: 3b8a3fe6740b42427d03c6444d5bc31a9bee1c6f (
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
|
[%# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#%]
[% PROCESS global/variables.none.tmpl %]
[% phones = [
'ZTE Open',
'Alcatel One Touch',
'LG'
] %]
[% inline_css = BLOCK %]
#dogfood {
margin: 0 5em 0 2em;
}
#dogfood th {
text-align: left;
padding-top: 1em;
}
[% END %]
[% inline_js = BLOCK %]
function onSubmit() {
var alert_text = '';
var phone = false;
[% FOREACH phone = phones %]
if (document.getElementById('phone-cb-[% phone FILTER js %]').checked)
phone = true;
[% END %]
if (document.getElementById('phone-cb-other').checked && isFilledOut('phone-other'))
phone = true;
if (!phone)
alert_text += "Please select the type of phone you have.\n";
if (!isFilledOut('fxos-version'))
alert_text += "Please provide the version of Firefox OS you are running.\n";
if (!isFilledOut('short_desc'))
alert_text += "Please enter a value for the summary.\n";
if (!isFilledOut('details'))
alert_text += "Please describe your issue in more detail.\n";
if (alert_text != '') {
alert(alert_text);
return false;
}
return true;
}
[% END %]
[% PROCESS global/header.html.tmpl
title = "Firefox OS Beta Program $terms.Bug Submission"
generate_api_token = 1
style = inline_css
style_urls = [ 'skins/standard/enter_bug.css' ]
javascript = inline_js
javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', 'js/field.js', 'js/util.js' ]
%]
<h2>Firefox OS Beta Program [% terms.Bug %] Submission</h2>
<div id="public_place">
As [% terms.Bugzilla %] is a public place, don't include any private or
personally identifying content.
</div>
<form method="post" action="post_bug.cgi" id="bug_form" class="enter_bug_form"
enctype="multipart/form-data" onsubmit="return onSubmit();">
<input type="hidden" name="format" value="fxos-betaprogram">
<input type="hidden" name="created-format" value="fxos-betaprogram">
<input type="hidden" name="product" value="Firefox OS">
<input type="hidden" name="component" value="BetaTriage">
<input type="hidden" name="rep_platform" value="ARM">
<input type="hidden" name="op_sys" value="Gonk (Firefox OS)">
<input type="hidden" name="priority" value="--">
<input type="hidden" name="version" value="unspecified">
<input type="hidden" name="bug_severity" id="bug_severity" value="normal">
<input type="hidden" name="comment" id="comment" value="">
<input type="hidden" name="status_whiteboard" id="status_whiteboard" value="[dogfood]">
<input type="hidden" name="token" value="[% token FILTER html %]">
<table id="dogfood">
<tr>
<th>
What phone do you have?
</th>
</tr>
<tr>
<td>
[% FOREACH phone = phones %]
<input type="radio" name="phone" id="phone-cb-[% phone FILTER html %]"
value="[% phone FILTER html %]">
<label for="phone-cb-[% phone FILTER html %]">[% phone FILTER html %]</label><br>
[% END %]
<input type="radio" name="phone" id="phone-cb-other" value="Other">
<input type="text" name="phone_other" id="phone-other" placeholder="Other" size="20"
onfocus="document.getElementById('phone-cb-other').checked = true">
</td>
</tr>
<tr>
<th>
What version of Firefox OS are you running?
</th>
</tr>
<tr>
<td>
<i>
Please check settings > device information > more information > OS version<br>
</i>
<input type="text" name="fxos_version" id="fxos-version" size="20">
</td>
</tr>
<tr>
<th>
Please summarize your issue in one sentence:
</th>
</tr>
<tr>
<td>
<input type="text" name="short_desc" id="short_desc" size="60">
</td>
</tr>
<tr>
<th>
Please describe your issue in more detail. If you have steps to
reproduce the problem, please include them here:
</th>
</tr>
<tr>
<td>
<textarea id="details" name="details" rows="5" cols="60"></textarea>
</td>
</tr>
<tr>
<th>
If your issue is associated with a specific app, which one
</th>
</tr>
<tr>
<td>
<input type="text" name="app" id="app" size="60">
</td>
</tr>
<tr>
<th>Security:</th>
</tr>
<tr>
<td>
<input type="checkbox" name="groups" id="default_security_group"
value="[% product.default_security_group FILTER html %]">
<label for="default_security_group">
Many users could be harmed by this security problem:
it should be kept hidden from the public until it is resolved.
</label>
</td>
</tr>
<tr>
<td>
<input type="submit" id="commit" value="Submit Request">
</td>
</tr>
</table>
</form>
[% PROCESS global/footer.html.tmpl %]
|